summaryrefslogtreecommitdiff
path: root/test/compose/two_networks/tests.sh
diff options
context:
space:
mode:
authorPaul Holzinger <paul.holzinger@web.de>2021-03-21 18:23:31 +0100
committerPaul Holzinger <paul.holzinger@web.de>2021-04-01 17:27:03 +0200
commit676fcb722f31f3f8eedb017bee828002d23b68f8 (patch)
tree15a1f683b172d47074c5592f9c214d45b5905acc /test/compose/two_networks/tests.sh
parent954d92082534ac775761558b455408aca2246e36 (diff)
downloadpodman-676fcb722f31f3f8eedb017bee828002d23b68f8.tar.gz
podman-676fcb722f31f3f8eedb017bee828002d23b68f8.tar.bz2
podman-676fcb722f31f3f8eedb017bee828002d23b68f8.zip
Add new docker-compose test for two networks
Also fix the tests so we can use the podman function with the output. Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'test/compose/two_networks/tests.sh')
-rw-r--r--test/compose/two_networks/tests.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/compose/two_networks/tests.sh b/test/compose/two_networks/tests.sh
new file mode 100644
index 000000000..1cc88aa5f
--- /dev/null
+++ b/test/compose/two_networks/tests.sh
@@ -0,0 +1,7 @@
+# -*- bash -*-
+
+podman container inspect two_networks_con1_1 --format '{{len .NetworkSettings.Networks}}'
+is "$output" "2" "$testname : Container is connected to both networks"
+podman container inspect two_networks_con1_1 --format '{{.NetworkSettings.Networks}}'
+like "$output" "two_networks_net1" "$testname : First network name exists"
+like "$output" "two_networks_net2" "$testname : Second network name exists"