File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ Feature: Haproxy
35
35
When With those group_vars on group all:
36
36
apiserver_proxy_use_docker: false
37
37
When I reset tasks counters
38
+ When I dry-run the playbooks 00_apiserver_proxy.yml
39
+ When I reset tasks counters
38
40
When I run the playbooks 00_apiserver_proxy.yml
39
41
01_site.yml
40
42
Then I should have a working cluster
Original file line number Diff line number Diff line change 1
1
import itertools
2
2
import os
3
+ import re
3
4
4
5
import ansible_runner
5
6
@@ -56,5 +57,6 @@ def run_ansible_playbook(
56
57
57
58
def assert_ansible_error (run ):
58
59
assert run .status == "successful"
60
+ assert len (re .findall (r"fatal: [.*]: FAILED! =>.*" , run .stdout .read ())) == 0
59
61
for host_failed , number_failed in run .stats .get ("failures" , {}).items ():
60
62
assert number_failed == 0
You can’t perform that action at this time.
0 commit comments