(self, env)
| 59 | |
| 60 | # mess up the produced staging area before reload |
| 61 | def test_md_741_002(self, env): |
| 62 | domain = self.test_domain |
| 63 | domains = [domain] |
| 64 | conf = MDConf(env) |
| 65 | conf.add_md(domains) |
| 66 | conf.add_vhost(domains) |
| 67 | conf.install() |
| 68 | assert env.apache_restart() == 0, f'{env.apachectl_stderr}' |
| 69 | env.check_md(domains) |
| 70 | assert env.await_completion([domain], restart=False) |
| 71 | staged_md_path = env.store_staged_file(domain, 'md.json') |
| 72 | with open(staged_md_path, 'w') as fd: |
| 73 | fd.write('garbage\n') |
| 74 | assert env.apache_restart() == 0, f'{env.apachectl_stderr}' |
| 75 | assert env.await_completion([domain]) |
| 76 | env.check_md_complete(domain) |
| 77 | env.httpd_error_log.ignore_recent( |
| 78 | lognos = [ |
| 79 | "AH10069" # failed to load JSON file |
| 80 | ], |
| 81 | matches = [ |
| 82 | r'.*failed to load JSON file.*', |
| 83 | ] |
| 84 | ) |
nothing calls this directly
no test coverage detected