def setUp(self):
     super(TestFernetCredentialProvider, self).setUp()
     self.provider = credential_fernet.Provider()
     self.useFixture(database.Database())
     self.useFixture(
         ksfixtures.KeyRepository(self.config_fixture, 'credential',
                                  credential_fernet.MAX_ACTIVE_KEYS))
 def setUp(self):
     super(TestFernetCredentialProviderWithNullKey, self).setUp()
     self.provider = credential_fernet.Provider()
     self.useFixture(database.Database())
     # Only do this to set the key_repository location in configuration. To
     # test the null key path, we need to make it so that the key repository
     # doesn't actually exist. If you're running the tests locally and have
     # bootstrapped a credential key repository in
     # `/etc/keystone/credential-keys` this will fail unless we override the
     # default.
     self.config_fixture.config(group='credential',
                                key_repository=self.useFixture(
                                    fixtures.TempDir()).path)
Beispiel #3
0
 def setUp(self):
     super(TestFernetCredentialProviderWithNullKey, self).setUp()
     self.provider = credential_fernet.Provider()
     self.useFixture(database.Database())