diff options
author | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2016-11-04 18:30:34 +0100 |
---|---|---|
committer | Luke Meyer <lmeyer@redhat.com> | 2017-04-25 12:16:19 -0400 |
commit | 634a8957e1cc29374a170aaa8c2113b8fbbfe7e4 (patch) | |
tree | 77259f14c2dad7c14e6571de1dfe6dd7e51f74a7 /test/integration/openshift_health_checker/preflight/playbooks | |
parent | ff8356b9266a4a6ec216e3aa31e6ff0408212975 (diff) | |
download | openshift-634a8957e1cc29374a170aaa8c2113b8fbbfe7e4.tar.gz openshift-634a8957e1cc29374a170aaa8c2113b8fbbfe7e4.tar.bz2 openshift-634a8957e1cc29374a170aaa8c2113b8fbbfe7e4.tar.xz openshift-634a8957e1cc29374a170aaa8c2113b8fbbfe7e4.zip |
Add stub of preflight integration tests
Diffstat (limited to 'test/integration/openshift_health_checker/preflight/playbooks')
-rw-r--r-- | test/integration/openshift_health_checker/preflight/playbooks/preflight_fail_all.yml | 11 | ||||
-rw-r--r-- | test/integration/openshift_health_checker/preflight/playbooks/setup_container.yml | 23 |
2 files changed, 34 insertions, 0 deletions
diff --git a/test/integration/openshift_health_checker/preflight/playbooks/preflight_fail_all.yml b/test/integration/openshift_health_checker/preflight/playbooks/preflight_fail_all.yml new file mode 100644 index 000000000..e7790a0d4 --- /dev/null +++ b/test/integration/openshift_health_checker/preflight/playbooks/preflight_fail_all.yml @@ -0,0 +1,11 @@ +--- +- include: setup_container.yml + vars: + name: preflight_fail_all + +- name: Run preflight checks + include: ../../../../../playbooks/byo/openshift-preflight/check.yml + +# - include: tasks/teardown_container.yml +# vars: +# name: preflight_fail_all diff --git a/test/integration/openshift_health_checker/preflight/playbooks/setup_container.yml b/test/integration/openshift_health_checker/preflight/playbooks/setup_container.yml new file mode 100644 index 000000000..fff797c27 --- /dev/null +++ b/test/integration/openshift_health_checker/preflight/playbooks/setup_container.yml @@ -0,0 +1,23 @@ +--- +# Required vars: +# * name = name of the container to be started + +- name: Start CentOS 7 container + gather_facts: no + hosts: localhost + connection: local + vars: + container_name: openshift_ansible_test_{{ name }} + tasks: + - name: start container + docker_container: + name: "{{ container_name }}" + image: centos:7 + command: sleep infinity + recreate: yes + - name: add host + add_host: + name: "{{ container_name }}" + ansible_connection: docker + groups: OSEv3,masters,nodes + deployment_type: origin |