def test_configure_registry_client_not_using_use_user_token(self):
        self.config(use_user_token=False)
        self.mox.StubOutWithMock(rapi, 'configure_registry_admin_creds')
        rapi.configure_registry_admin_creds()

        self.mox.ReplayAll()

        rapi.configure_registry_client()
        self.mox.VerifyAll()
Example #2
0
 def test_configure_registry_client_not_using_use_user_token(self):
     self.config(use_user_token=False)
     with patch.object(rapi, 'configure_registry_admin_creds') as mock_rapi:
         rapi.configure_registry_client()
         mock_rapi.assert_called_once_with()
Example #3
0
def setup_db_env():
    """
    Setup configuration for database
    """
    api.configure_registry_client()
Example #4
0
 def test_configure_registry_client_not_using_use_user_token(self):
     self.config(use_user_token=False)
     with patch.object(rapi,
                       'configure_registry_admin_creds') as mock_rapi:
         rapi.configure_registry_client()
         mock_rapi.assert_called_once_with()
Example #5
0
def configure():
    api.configure_registry_client()