Skip to content

Commit 089a669

Browse files
committed
fix: Make it work on 6.12 and do not report 'No such file or directory @ rb_sysopen' as generic issue
1 parent 4d8c8d0 commit 089a669

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

playbooks/tests/files/webui-pages.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,19 @@ def _get(self, uri, pattern, headers={}):
4949
"""
5050
with self.client.get(uri, headers=headers, verify=False, name=inspect.stack()[1][3], catch_response=True) as response:
5151
if re.search(pattern, response.text) is None:
52-
logging.warning(f"Got wrong responsefor {uri}: {response.text}")
53-
response.failure("Got wrong response")
52+
if "No such file or directory @ rb_sysopen" in response.text:
53+
response.failure("Known issue: No such file or directory @ rb_sysopen")
54+
else:
55+
logging.warning(f"Got wrong response for {uri}: {response.text}")
56+
response.failure("Got wrong response")
5457

5558
@task
5659
def overview(self):
5760
self._get("/", "<title>Overview</title>")
5861

5962
@task
6063
def job_invocations(self):
61-
self._get("/job_invocations", "<title>Job invocations</title>")
64+
self._get("/job_invocations", "<h1>Job Invocations</h1>")
6265

6366
@task
6467
def foreman_tasks_tasks(self):

0 commit comments

Comments
 (0)