Exemplo n.º 1
0
    def test_clear(self):
        """LocalFileDriver - Clear Credentials"""
        descriptor = 'descriptor'

        credentials = Credentials('aaaa', True,
                                  REGION)  # pretend it's encrypted
        self._fs_driver.save_credentials(descriptor, credentials)

        LocalFileDriver.clear()

        assert_false(self._fs_driver.has_credentials(descriptor))
Exemplo n.º 2
0
 def teardown():
     LocalFileDriver.clear()
Exemplo n.º 3
0
 def setup(self):
     LocalFileDriver.clear()
     self._fs_driver = LocalFileDriver(REGION, 'service')
Exemplo n.º 4
0
 def teardown(self):
     self.kms_mocker.stop()
     LocalFileDriver.clear()
Exemplo n.º 5
0
 def setup(self):
     self.kms_mocker = mock_kms()
     self.kms_mocker.start()
     setup_mock_kms(REGION, KMS_ALIAS)
     LocalFileDriver.clear()
     self._fs_driver = LocalFileDriver(REGION, 'service')
Exemplo n.º 6
0
def remove_temp_secrets():
    """Remove the local secrets directory that may be left from previous runs"""
    LocalFileDriver.clear()