Skip to content

Commit ee4e684

Browse files
committed
FIXUP: tests-scan: re-enable cross-project 'job' creation -- update unit test
This detects a wrong slug.
1 parent 4714cd6 commit ee4e684

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

test/test_tests_scan.py

+18-2
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,24 @@ def test_amqp_sha_pr_cross_project(self, mock_queue, _mock_strftime):
444444
"sha": "abcdef",
445445
"ref": "main",
446446
"name": f"pull-{self.pull_number}",
447-
# job-runner currently disabled for cross-project tests (commit c377eb892)
448-
"job": None,
447+
"job": {
448+
"context": "fedora/nightly@cockpit-project/cockpituous",
449+
"repo": "project/repo",
450+
"pull": int(self.pull_number),
451+
"report": None,
452+
"sha": "abcdef",
453+
"slug": f"pull-{self.pull_number}-abcdef-20240102-030405-fedora-nightly-cockpit-project-cockpituous",
454+
"target": "main",
455+
"container": None,
456+
"command-subject": {"repo": "cockpit-project/cockpituous", "branch": "main"},
457+
"secrets": ["github-token", "image-download"],
458+
"env": {
459+
"BASE_BRANCH": "main",
460+
"COCKPIT_BOTS_REF": "main",
461+
"TEST_OS": "fedora",
462+
"TEST_SCENARIO": "nightly",
463+
}
464+
}
449465
}
450466

451467
def do_test_tests_invoke(self, attachments_url, expected_logs_url):

0 commit comments

Comments
 (0)