mirror of
https://github.com/clearlinux/libnetwork.git
synced 2026-09-01 19:31:37 +00:00
- Create a wrapper script to run intergation tests
so that setups and teardowns happen in more
optimal manner
- Add traps to cleanup containers on failure or
user interrupt
- Introduce basic multi-node integration tests
- Removed default network, default driver tests
as they may not be useful in the near future
Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
32 lines
651 B
Bash
32 lines
651 B
Bash
#!/usr/bin/env bats
|
|
|
|
load helpers
|
|
|
|
@test "Test dnet custom port" {
|
|
start_dnet 1 a 4567
|
|
dnet_cmd 4567 network ls
|
|
stop_dnet 1 a
|
|
}
|
|
|
|
@test "Test dnet invalid custom port" {
|
|
start_dnet 1 b 4567
|
|
run dnet_cmd 4568 network ls
|
|
echo ${output}
|
|
[ "$status" -ne 0 ]
|
|
stop_dnet 1 b
|
|
}
|
|
|
|
@test "Test dnet invalid params" {
|
|
start_dnet 1 c
|
|
run dnet_cmd 8080 network ls
|
|
echo ${output}
|
|
[ "$status" -ne 0 ]
|
|
run ./cmd/dnet/dnet -H=unix://var/run/dnet.sock network ls
|
|
echo ${output}
|
|
[ "$status" -ne 0 ]
|
|
run ./cmd/dnet/dnet -H= -l=invalid network ls
|
|
echo ${output}
|
|
[ "$status" -ne 0 ]
|
|
stop_dnet 1 c
|
|
}
|