Skip to content

Commit cfdef27

Browse files
committed
Update tests to use more recent job
1 parent a297839 commit cfdef27

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

tests/unittests/objects/job/test_fail_with_test_failures_should_not_cause_failure_for_ignored_step.py

+5-7
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def firewatch_config(monkeypatch, mock_jira, default_jira_project):
2323
json.dumps({
2424
"failure_rules": [
2525
{
26-
"step": "gather-*",
26+
"step": "openshift-pipelines-tests",
2727
"failure_type": "test_failure",
2828
"classification": "NONE",
2929
"jira_project": "NONE",
@@ -43,7 +43,7 @@ def firewatch_config(monkeypatch, mock_jira, default_jira_project):
4343

4444
@pytest.fixture
4545
def job_step_names():
46-
yield ["gather-must-gather"]
46+
yield ["openshift-pipelines-tests"]
4747

4848

4949
@pytest.fixture(autouse=True)
@@ -77,9 +77,9 @@ def test_failure_artifacts_present(job_step_names, job_artifacts_dir):
7777
@pytest.fixture
7878
def job(firewatch_config):
7979
yield Job(
80-
name="periodic-ci-rh-messaging-qe-claire-lpt-amq-broker-ocp4.16-lp-interop-amq-broker-interop-aws",
81-
name_safe="amq-broker-interop-aws",
82-
build_id="1769607768542547968",
80+
name="periodic-ci-openshift-pipelines-release-tests-release-v1.15-openshift-pipelines-ocp4.17-lp-interop-openshift-pipelines-interop-aws",
81+
name_safe="openshift-pipelines-interop-aws",
82+
build_id="1833066891065692160",
8383
gcs_bucket="test-platform-results",
8484
gcs_creds_file=None,
8585
firewatch_config=firewatch_config,
@@ -102,7 +102,6 @@ def test_fail_with_test_failures_should_not_cause_failure_for_ignored_step(
102102
assert rule.ignore
103103
assert not job.has_test_failures
104104
assert not job.failures
105-
assert not job.failures
106105

107106

108107
def test_fail_with_test_failures_should_cause_failure_unignored_step(
@@ -114,4 +113,3 @@ def test_fail_with_test_failures_should_cause_failure_unignored_step(
114113
assert not rule.ignore
115114
assert job.has_test_failures
116115
assert job.failures
117-
assert job.failures

0 commit comments

Comments
 (0)