Adding xos container sanity tests
- validates xos core and synchronizer processes are started successfully
Change-Id: Id3a678c3ee60bd222b1cf8787f9501e826fb287e
Relates-to: CORD-1035
diff --git a/roles/xos-container-test-postgres/tasks/main.yml b/roles/xos-container-test-postgres/tasks/main.yml
new file mode 100644
index 0000000..f024261
--- /dev/null
+++ b/roles/xos-container-test-postgres/tasks/main.yml
@@ -0,0 +1,14 @@
+#xos-postgres tests
+
+- name: Check PSQL Service
+ shell: service postgresql status | grep "{{ item }}"
+ register: result
+ until: result | success
+ retries: 10
+ delay: 5
+ with_items:
+ - 9.3/main
+ - port 5432
+ - online
+ tags:
+ - skip_ansible_lint # running a sub job