Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace download.suse.de with mirror.nue2.suse.org #184

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openqabot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
OBS_MAINT_PRJ = "SUSE:Maintenance"
OBS_GROUP = "qam-openqa"
DEVELOPMENT_PARENT_GROUP_ID = 9
DOWNLOAD_BASE = "http://download.suse.de/ibs/SUSE:/Maintenance:/"
DOWNLOAD_BASE = "http://mirror.nue2.suse.org/ibs/SUSE:/Maintenance:/"
AMQP_URL = "amqps://suse:[email protected]"
OLDEST_APPROVAL_JOB_DAYS = 6

Expand Down
2 changes: 1 addition & 1 deletion openqabot/loader/repohash.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_max_revision(
) -> int:
max_rev = 0

url_base = f"http://download.suse.de/ibs/{project.replace(':',':/')}"
url_base = f"http://mirror.nue2.suse.org/ibs/{project.replace(':',':/')}"

for repo in repos:
# openSUSE and SLE incidents have different handling of architecture
Expand Down
2 changes: 1 addition & 1 deletion openqabot/types/incidents.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _handle_incident( # pylint: disable=too-many-return-statements
ci_url: Optional[str],
ignore_onetime: bool,
) -> Dict[str, Any]:
DOWNLOAD_BASE = "http://download.suse.de/ibs/SUSE:/Maintenance:/"
DOWNLOAD_BASE = "http://mirror.nue2.suse.org/ibs/SUSE:/Maintenance:/"
BASE_PRIO = 50
if self.filter_embargoed(flavor) and inc.embargoed:
log.info(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_approve.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def fake_responses_for_unblocking_incidents_via_older_ok_result(request):
json={
"job": {
"settings": {
"BASE_TEST_REPOS": "http://download.suse.de/ibs/SUSE:/Maintenance:/1111/SUSE_Updates_SLE-Module-Basesystem_15-SP5_x86_64/,http://download.suse.de/ibs/SUSE:/Maintenance:/%s/SUSE_Updates_SLE-Module-Basesystem_15-SP5_x86_64/"
"BASE_TEST_REPOS": "http://mirror.nue2.suse.org/ibs/SUSE:/Maintenance:/1111/SUSE_Updates_SLE-Module-Basesystem_15-SP5_x86_64/,http://mirror.nue2.suse.org/ibs/SUSE:/Maintenance:/%s/SUSE_Updates_SLE-Module-Basesystem_15-SP5_x86_64/"
% request.param
}
}
Expand Down
12 changes: 6 additions & 6 deletions tests/test_repohash.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_get_max_revison_opensuse():

responses.add(
responses.GET,
url="http://download.suse.de/ibs/SUSE:/Maintenance:/12345/SUSE_Updates_openSUSE-SLE_4.1/repodata/repomd.xml",
url="http://mirror.nue2.suse.org/ibs/SUSE:/Maintenance:/12345/SUSE_Updates_openSUSE-SLE_4.1/repodata/repomd.xml",
body=opensuse,
)
ret = rp.get_max_revision(repos, arch, PROJECT)
Expand All @@ -43,12 +43,12 @@ def test_get_max_revison_opensuse():
def add_sles_sled_response(sled_body):
responses.add(
responses.GET,
url="http://download.suse.de/ibs/SUSE:/Maintenance:/12345/SUSE_Updates_SLES_15SP3_x86_64/repodata/repomd.xml",
url="http://mirror.nue2.suse.org/ibs/SUSE:/Maintenance:/12345/SUSE_Updates_SLES_15SP3_x86_64/repodata/repomd.xml",
body=SLES,
)
responses.add(
responses.GET,
url="http://download.suse.de/ibs/SUSE:/Maintenance:/12345/SUSE_Updates_SLED_15SP3_x86_64/repodata/repomd.xml",
url="http://mirror.nue2.suse.org/ibs/SUSE:/Maintenance:/12345/SUSE_Updates_SLED_15SP3_x86_64/repodata/repomd.xml",
body=sled_body,
)

Expand All @@ -70,7 +70,7 @@ def test_get_max_revison_connectionerror(caplog):

assert (
caplog.records[0].msg
== "http://download.suse.de/ibs/SUSE:/Maintenance:/12345/SUSE_Updates_SLED_15SP3_x86_64/repodata/repomd.xml not found -- skipping incident"
== "http://mirror.nue2.suse.org/ibs/SUSE:/Maintenance:/12345/SUSE_Updates_SLED_15SP3_x86_64/repodata/repomd.xml not found -- skipping incident"
)


Expand All @@ -84,7 +84,7 @@ def test_get_max_revison_httperror(caplog):

assert (
caplog.records[0].msg
== "http://download.suse.de/ibs/SUSE:/Maintenance:/12345/SUSE_Updates_SLED_15SP3_x86_64/repodata/repomd.xml not found -- skipping incident"
== "http://mirror.nue2.suse.org/ibs/SUSE:/Maintenance:/12345/SUSE_Updates_SLED_15SP3_x86_64/repodata/repomd.xml not found -- skipping incident"
)


Expand All @@ -98,7 +98,7 @@ def test_get_max_revison_xmlerror(caplog):

assert (
caplog.records[0].msg
== "http://download.suse.de/ibs/SUSE:/Maintenance:/12345/SUSE_Updates_SLED_15SP3_x86_64/repodata/repomd.xml not found -- skipping incident"
== "http://mirror.nue2.suse.org/ibs/SUSE:/Maintenance:/12345/SUSE_Updates_SLED_15SP3_x86_64/repodata/repomd.xml not found -- skipping incident"
)


Expand Down
Loading