#251 bodhi-client: make it compatible with Bodhi 6
Closed 2 years ago by kparal. Opened 2 years ago by kparal.

@@ -40,8 +40,7 @@ 

                   ) -> None:

          self.db = db

          # disable saving session on disk by cache_session=False

-         self.bodhi = bodhiclient or BodhiClient(base_url=app.config['BODHI_URL'],

-                                                 cache_session=False)

+         self.bodhi = bodhiclient or BodhiClient(base_url=app.config['BODHI_URL'])

          self.log = logging.getLogger('update_sync')

          self._releases: list[dict[str, Any]] = []

          """All releases known to Bodhi"""

file modified
+1 -1
@@ -6,7 +6,7 @@ 

  FAS_ADMIN_GROUP = "magic-fas-group"

  BUGZILLA_URL = 'https://bugzilla.stage.redhat.com'

  BUGZILLA_API_KEY = ''  # INSERT YOUR SECRET API KEY FROM BUGZILLA USER SETTINGS

- BODHI_URL = 'https://admin.stg.fedoraproject.org/updates/'

+ BODHI_URL = 'https://bodhi.stg.fedoraproject.org/'

  FILE_LOGGING = False

  LOGFILE = '/var/log/blockerbugs/blockerbugs.log'

  SYSLOG_LOGGING = False

file modified
+1 -1
@@ -146,7 +146,7 @@ 

  and display those tooltips.

  

  .. _bugzilla: https://bugzilla.redhat.com/

- .. _bodhi: https://admin.fedoraproject.org/updates/

+ .. _bodhi: 'https://bodhi.fedoraproject.org/'

  

  Indices and tables

  ==================

file modified
+2 -1
@@ -3,7 +3,8 @@ 

  Werkzeug == 2.0.3

  

  alembic

- bodhi-client == 5.7.5

+ # bodhi-client 5.7.5 because of compatibility with Bodhi 6 server

+ bodhi-client >= 5.7.5

  email_validator

  Flask-Admin

  Flask-SQLAlchemy

@@ -103,7 +103,7 @@ 

  

  class FakeRaisesBodhiInterface(FakeBodhiInterface):

      def query(self, **kwargs):

-         raise ServerError('https://admin.fedoraproject.org/updates/list',

+         raise ServerError('https://bodhi.fedoraproject.org/list',

                            500,

                            'Internal Server Error')