summaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/asserts
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/vagrant-onap/lib/asserts')
-rwxr-xr-xbootstrap/vagrant-onap/lib/asserts11
1 files changed, 11 insertions, 0 deletions
diff --git a/bootstrap/vagrant-onap/lib/asserts b/bootstrap/vagrant-onap/lib/asserts
new file mode 100755
index 000000000..0e455382a
--- /dev/null
+++ b/bootstrap/vagrant-onap/lib/asserts
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+set -o xtrace
+
+# asserts_image() - Function that verifies if a specific image was created
+function asserts_image {
+ if [[ "$(docker images -q $1 2> /dev/null)" == "" ]]; then
+ echo "There is no $1 image"
+ exit 1
+ fi
+}