Skip to content

Commit

Permalink
Switch to apibugzilla.suse.com endpoint instead of novell.com.
Browse files Browse the repository at this point in the history
Should provide better mail threading.
  • Loading branch information
bergmannf committed Sep 12, 2016
1 parent 35ef6ee commit 9937e3b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions NEWS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Changes
0.25
----

* Update apibugzilla endpoint to use suse.com

0.24
----

Expand Down
8 changes: 4 additions & 4 deletions suseapi/bugzilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,16 +686,16 @@ def _update_bug_whiteboard(self, remove, add):

class APIBugzilla(Bugzilla):
'''
Wrapper class to use apibugzilla.novell.com.
Wrapper class to use apibugzilla.suse.com.
'''
def __init__(self, user, password, base='https://apibugzilla.novell.com',
def __init__(self, user, password, base='https://apibugzilla.suse.com',
useragent=None):
super(APIBugzilla, self).__init__(
user, password, base, useragent
)
# Use normal Bugzilla for anonymous access
if self.anonymous and 'novell.com' in base:
self.base = 'https://bugzilla.novell.com'
if self.anonymous and 'suse.com' in base:
self.base = 'https://bugzilla.suse.com'
else:
self.browser.add_password(base + '/', user, password)

Expand Down
6 changes: 3 additions & 3 deletions suseapi/test_bugzilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ class BugzillaTest(TestCase):
def httpretty_login():
httpretty.register_uri(
httpretty.POST,
'https://bugzilla.novell.com/index.cgi',
'https://bugzilla.suse.com/index.cgi',
body='<html><body><a href="#">Log\xc2\xa0out</a></body></html>',
content_type='text/html',
)
httpretty.register_uri(
httpretty.POST,
'https://apibugzilla.novell.com/index.cgi',
'https://apibugzilla.suse.com/index.cgi',
body='<html><body><a href="#">Log out</a></body></html>',
content_type='text/html',
)
Expand Down Expand Up @@ -238,7 +238,7 @@ def test_django_auto_relogin(self):

httpretty.register_uri(
httpretty.POST,
'https://apibugzilla.novell.com/show_bug.cgi',
'https://apibugzilla.suse.com/show_bug.cgi',
status=502,
)
self.httpretty_login()
Expand Down

0 comments on commit 9937e3b

Please sign in to comment.