#400 Expose backend's default GPG keys via API
Merged 3 years ago by lsedlar. Opened 3 years ago by hlin.
hlin/odcs master  into  master

file modified
+2 -1
@@ -568,10 +568,11 @@ 

              in the ODCS server configuration file.

          :resjson dict raw_config_urls: Raw config URLs in the same format as

              in the ODCS server configuration file.

+         :resjson list sigkeys: Default list of sigkeys.

          :statuscode 200: Compose updated and returned.

          """

          json = {'version': version}

-         config_items = ['auth_backend', 'allowed_clients', 'raw_config_urls']

+         config_items = ['auth_backend', 'allowed_clients', 'raw_config_urls', 'sigkeys']

          for item in config_items:

              config_item = getattr(conf, item)

              # All config items have a default, so if doesn't exist it is

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

          self.assertEqual(

              data,

              {'version': version, 'auth_backend': 'noauth', 'raw_config_urls': {},

-              'allowed_clients': odcs.server.auth.conf.allowed_clients})

+              'allowed_clients': odcs.server.auth.conf.allowed_clients,

+              'sigkeys': []})

  

      def test_submit_invalid_json(self):

          with self.test_request_context(user='dev'):

JIRA: RHELCMP-851
Signed-off-by: Haibo Lin hlin@redhat.com

Can you please fix the tests and also update the docstring?

rebased onto 48db9e1

3 years ago

Can you please fix the tests and also update the docstring?

Fixed.