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))
def teardown(): LocalFileDriver.clear()
def setup(self): LocalFileDriver.clear() self._fs_driver = LocalFileDriver(REGION, 'service')
def teardown(self): self.kms_mocker.stop() LocalFileDriver.clear()
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')
def remove_temp_secrets(): """Remove the local secrets directory that may be left from previous runs""" LocalFileDriver.clear()