From 960618b3f1ee4d14206600555ac2defdb2fa5be1 Mon Sep 17 00:00:00 2001 From: Michele Pagot Date: Mon, 2 Dec 2024 17:00:23 +0100 Subject: [PATCH] Update SUSE Jira url Update url from .de to .com Update unit testing accordingly. --- lib/OpenQA/Utils.pm | 2 +- t/16-markdown.t | 2 +- t/16-utils.t | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/OpenQA/Utils.pm b/lib/OpenQA/Utils.pm index d59bcdd605c..0a3a2d1d404 100644 --- a/lib/OpenQA/Utils.pm +++ b/lib/OpenQA/Utils.pm @@ -49,7 +49,7 @@ BEGIN { gh => 'https://github.com/', kde => 'https://bugs.kde.org/show_bug.cgi?id=', fdo => 'https://bugs.freedesktop.org/show_bug.cgi?id=', - jsc => 'https://jira.suse.de/browse/', + jsc => 'https://jira.suse.com/browse/', pio => 'https://pagure.io/', ggo => 'https://gitlab.gnome.org/', gfs => 'https://gitlab.com/fedora/sigs/', diff --git a/t/16-markdown.t b/t/16-markdown.t index 238a138fadc..b3f32ac35b2 100644 --- a/t/16-markdown.t +++ b/t/16-markdown.t @@ -166,7 +166,7 @@ subtest 'bugrefs to markdown' => sub { 'fdo#9876', 'right markdown for fdo'; is bugref_to_html('jsc#9876'), - 'jsc#9876', + 'jsc#9876', 'right markdown for jsc'; is bugref_to_html('pio#foo#1234'), 'pio#foo#1234', diff --git a/t/16-utils.t b/t/16-utils.t index ddb4ba2c263..04cae136856 100644 --- a/t/16-utils.t +++ b/t/16-utils.t @@ -128,8 +128,8 @@ like bugref_to_href('bsc#2345 poo#3456 and more'), like bugref_to_href('boo#2345,poo#3456'), qr{a href="https://bugzilla.opensuse.org/show_bug.cgi\?id=2345">boo\#2345,jsc#SLE-3275'; -is href_to_bugref('https://jira.suse.de/browse/FOOBAR-1234'), 'jsc#FOOBAR-1234', 'jira tickets url to bugref'; +is bugref_to_href('jsc#SLE-3275'), 'jsc#SLE-3275'; +is href_to_bugref('https://jira.suse.com/browse/FOOBAR-1234'), 'jsc#FOOBAR-1234', 'jira tickets url to bugref'; is href_to_bugref('https://pagure.io/foo/issue/1234'), 'pio#foo#1234', 'pagure.io (no group) url to bugref'; is href_to_bugref('https://pagure.io/foo/bar/issue/1234'), 'pio#foo/bar#1234', 'pagure.io (with group) url to bugref'; is href_to_bugref('https://gitlab.gnome.org/GNOME/foo/-/issues/1234'), 'ggo#GNOME/foo#1234',