diff options
author | OpenShift Bot <eparis+openshiftbot@redhat.com> | 2017-04-26 01:23:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-26 01:23:28 -0500 |
commit | c12b00944940cd7f425323e1598a4b7683ddaf75 (patch) | |
tree | d1cb21b763579a5c5a2fa5dd0c30078b7383bbe7 /test/integration/openshift_health_checker/preflight/playbooks/package_update_repo_broken.yml | |
parent | 760bdbc78081d9780d2618c422f31913dd9d38c7 (diff) | |
parent | e5f14b515b07bcfa2079c3e68c35fee3e97970c7 (diff) | |
download | openshift-c12b00944940cd7f425323e1598a4b7683ddaf75.tar.gz openshift-c12b00944940cd7f425323e1598a4b7683ddaf75.tar.bz2 openshift-c12b00944940cd7f425323e1598a4b7683ddaf75.tar.xz openshift-c12b00944940cd7f425323e1598a4b7683ddaf75.zip |
Merge pull request #3816 from sosiouxme/20170328-integration-tests
Merged by openshift-bot
Diffstat (limited to 'test/integration/openshift_health_checker/preflight/playbooks/package_update_repo_broken.yml')
-rw-r--r-- | test/integration/openshift_health_checker/preflight/playbooks/package_update_repo_broken.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/integration/openshift_health_checker/preflight/playbooks/package_update_repo_broken.yml b/test/integration/openshift_health_checker/preflight/playbooks/package_update_repo_broken.yml new file mode 100644 index 000000000..c2e9c3866 --- /dev/null +++ b/test/integration/openshift_health_checker/preflight/playbooks/package_update_repo_broken.yml @@ -0,0 +1,31 @@ +--- +- include: ../../setup_container.yml + vars: + image: preflight-aos-package-checks + l_host_vars: + openshift_deployment_type: openshift-enterprise + openshift_release: 3.2 + +- name: Fails when a repo definition is completely broken + hosts: all + roles: + - openshift_health_checker + tasks: + - block: + + - include: tasks/enable_repo.yml + vars: { repo_name: "break-yum" } + + - name: Break the break-yum repo + replace: + dest: /etc/yum.repos.d/break-yum.repo + backup: no + regexp: "^baseurl" + replace: "#baseurl" + + - action: openshift_health_check + args: + checks: [ 'package_update' ] + + always: # destroy the container whether check passed or not + - include: ../../teardown_container.yml |