Skip to content

Commit c675131

Browse files
rezibvaleriyoann
authored andcommitted
sync: fix wrong EPEL URL test
Fedora has added a bot check wall that replies positively to all requests, making the test fail. Use google server to get real 404 error.
1 parent 8b7e64f commit c675131

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/sync.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,14 +368,14 @@ def test_wrong_url(self):
368368
synchronizer = RepoSyncEpel(self.config, 'repo', self.output, sync)
369369
with self.assertRaisesRegex(
370370
RiftError,
371-
f"^URL error while downloading https://127.0.0.1/.*: .*$",
371+
r"^URL error while downloading https://127.0.0.1/.*: .*$",
372372
):
373373
synchronizer.run()
374-
sync['source'] = 'https://dl.fedoraproject.org/pub/epel'
374+
sync['source'] = 'https://google.com/failure'
375375
synchronizer = RepoSyncEpel(self.config, 'repo', self.output, sync)
376376
with self.assertRaisesRegex(
377377
RiftError,
378-
f"^HTTP error while downloading https://dl.fedoraproject.org/.*: "
378+
r"^HTTP error while downloading https://google.com/.*: "
379379
"HTTP Error 404: Not Found$",
380380
):
381381
synchronizer.run()

0 commit comments

Comments
 (0)