summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2017-12-07 16:31:17 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-12-14 23:59:21 +0000
commit5e1549b0563902b501afff8009834e5b8186ae33 (patch)
tree8f52176cabbe33002b21f36d0e8d1755f51d4977 /test
parent72e8efccc918e87e5e202bfbbcbdcf31707963c3 (diff)
downloadpodman-5e1549b0563902b501afff8009834e5b8186ae33.tar.gz
podman-5e1549b0563902b501afff8009834e5b8186ae33.tar.bz2
podman-5e1549b0563902b501afff8009834e5b8186ae33.zip
Prepare network configs when setting up tests
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #109 Approved by: mheon
Diffstat (limited to 'test')
-rw-r--r--test/kpod_attach.bats1
-rw-r--r--test/kpod_create.bats1
-rw-r--r--test/kpod_diff.bats1
-rw-r--r--test/kpod_export.bats1
-rw-r--r--test/kpod_history.bats1
-rw-r--r--test/kpod_import.bats1
-rw-r--r--test/kpod_inspect.bats1
-rw-r--r--test/kpod_kill.bats1
-rw-r--r--test/kpod_load.bats1
-rw-r--r--test/kpod_logs.bats1
-rw-r--r--test/kpod_mount.bats1
-rw-r--r--test/kpod_pause.bats1
-rw-r--r--test/kpod_ps.bats1
-rw-r--r--test/kpod_push.bats1
-rw-r--r--test/kpod_rm.bats1
-rw-r--r--test/kpod_run.bats1
-rw-r--r--test/kpod_run_ns.bats1
-rw-r--r--test/kpod_save.bats1
-rw-r--r--test/kpod_start.bats1
-rw-r--r--test/kpod_stats.bats1
-rw-r--r--test/kpod_stop.bats1
-rw-r--r--test/kpod_wait.bats5
22 files changed, 26 insertions, 0 deletions
diff --git a/test/kpod_attach.bats b/test/kpod_attach.bats
index 968795935..fe2781f8d 100644
--- a/test/kpod_attach.bats
+++ b/test/kpod_attach.bats
@@ -7,6 +7,7 @@ function teardown() {
}
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_create.bats b/test/kpod_create.bats
index e1a187332..e4903f6aa 100644
--- a/test/kpod_create.bats
+++ b/test/kpod_create.bats
@@ -3,6 +3,7 @@
load helpers
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_diff.bats b/test/kpod_diff.bats
index d73f462f6..5b71dfd48 100644
--- a/test/kpod_diff.bats
+++ b/test/kpod_diff.bats
@@ -3,6 +3,7 @@
load helpers
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_export.bats b/test/kpod_export.bats
index 5b8517afc..59942ea57 100644
--- a/test/kpod_export.bats
+++ b/test/kpod_export.bats
@@ -7,6 +7,7 @@ function teardown() {
}
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_history.bats b/test/kpod_history.bats
index 5e99696b2..466b977db 100644
--- a/test/kpod_history.bats
+++ b/test/kpod_history.bats
@@ -7,6 +7,7 @@ function teardown() {
}
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_import.bats b/test/kpod_import.bats
index 204cf2963..7348a3c82 100644
--- a/test/kpod_import.bats
+++ b/test/kpod_import.bats
@@ -9,6 +9,7 @@ function teardown() {
}
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_inspect.bats b/test/kpod_inspect.bats
index 86a4e7698..7a63208e9 100644
--- a/test/kpod_inspect.bats
+++ b/test/kpod_inspect.bats
@@ -7,6 +7,7 @@ function teardown() {
}
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_kill.bats b/test/kpod_kill.bats
index 6f4f2e268..2bd749239 100644
--- a/test/kpod_kill.bats
+++ b/test/kpod_kill.bats
@@ -7,6 +7,7 @@ function teardown() {
}
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_load.bats b/test/kpod_load.bats
index abbe8ee5d..59b4a4e50 100644
--- a/test/kpod_load.bats
+++ b/test/kpod_load.bats
@@ -3,6 +3,7 @@
load helpers
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_logs.bats b/test/kpod_logs.bats
index d5dc8622e..719dd6b06 100644
--- a/test/kpod_logs.bats
+++ b/test/kpod_logs.bats
@@ -7,6 +7,7 @@ function teardown() {
}
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_mount.bats b/test/kpod_mount.bats
index aced0858d..12c41c071 100644
--- a/test/kpod_mount.bats
+++ b/test/kpod_mount.bats
@@ -9,6 +9,7 @@ function teardown() {
}
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_pause.bats b/test/kpod_pause.bats
index d26f0e4e1..1a9bd7dda 100644
--- a/test/kpod_pause.bats
+++ b/test/kpod_pause.bats
@@ -3,6 +3,7 @@
load helpers
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_ps.bats b/test/kpod_ps.bats
index 977266f59..3f4758f59 100644
--- a/test/kpod_ps.bats
+++ b/test/kpod_ps.bats
@@ -4,6 +4,7 @@ load helpers
IMAGE="redis:alpine"
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_push.bats b/test/kpod_push.bats
index dee29a64c..967aa6da3 100644
--- a/test/kpod_push.bats
+++ b/test/kpod_push.bats
@@ -7,6 +7,7 @@ function teardown() {
}
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_rm.bats b/test/kpod_rm.bats
index 3a7821b56..02e184f4c 100644
--- a/test/kpod_rm.bats
+++ b/test/kpod_rm.bats
@@ -3,6 +3,7 @@
load helpers
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_run.bats b/test/kpod_run.bats
index ccbeaac6c..f01d254cc 100644
--- a/test/kpod_run.bats
+++ b/test/kpod_run.bats
@@ -7,6 +7,7 @@ function teardown() {
}
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_run_ns.bats b/test/kpod_run_ns.bats
index c1b269587..a1b364f8b 100644
--- a/test/kpod_run_ns.bats
+++ b/test/kpod_run_ns.bats
@@ -7,6 +7,7 @@ function teardown() {
}
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_save.bats b/test/kpod_save.bats
index 56f23db91..03d24ed86 100644
--- a/test/kpod_save.bats
+++ b/test/kpod_save.bats
@@ -7,6 +7,7 @@ function teardown() {
}
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_start.bats b/test/kpod_start.bats
index 74a7d7edf..999b29982 100644
--- a/test/kpod_start.bats
+++ b/test/kpod_start.bats
@@ -3,6 +3,7 @@
load helpers
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_stats.bats b/test/kpod_stats.bats
index 8eb112496..b4c879c46 100644
--- a/test/kpod_stats.bats
+++ b/test/kpod_stats.bats
@@ -7,6 +7,7 @@ function teardown() {
}
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_stop.bats b/test/kpod_stop.bats
index 3804147fd..0822d88f5 100644
--- a/test/kpod_stop.bats
+++ b/test/kpod_stop.bats
@@ -7,6 +7,7 @@ function teardown() {
}
function setup() {
+ prepare_network_conf
copy_images
}
diff --git a/test/kpod_wait.bats b/test/kpod_wait.bats
index b7bcb072c..871c9f5bf 100644
--- a/test/kpod_wait.bats
+++ b/test/kpod_wait.bats
@@ -3,9 +3,14 @@
load helpers
function setup() {
+ prepare_network_conf
copy_images
}
+function teardown() {
+ cleanup_test
+}
+
@test "wait on a bogus container" {
run ${KPOD_BINARY} ${KPOD_OPTIONS} wait 12343
echo $output