Exemple #1
0
    def test_backends_kwargs(self):
        backends = initialize_secrets_backends()
        systems_manager = [
            backend for backend in backends if backend.__class__.__name__ ==
            'SystemsManagerParameterStoreBackend'
        ][0]

        self.assertEqual(systems_manager.kwargs, {'use_ssl': False})
    def test_passing_client_kwargs(self, mock_ssm_client):
        backends = initialize_secrets_backends()
        systems_manager = [
            backend for backend in backends if backend.__class__.__name__ ==
            'SystemsManagerParameterStoreBackend'
        ][0]

        systems_manager.client
        mock_ssm_client.assert_called_once_with('ssm', use_ssl=False)
    def test_initialize_secrets_backends(self):
        backends = initialize_secrets_backends()
        backend_classes = [backend.__class__.__name__ for backend in backends]

        self.assertEqual(3, len(backends))
        self.assertIn('SystemsManagerParameterStoreBackend', backend_classes)
Exemple #4
0
    def test_initialize_secrets_backends(self):
        backends = initialize_secrets_backends()
        backend_classes = [backend.__class__.__name__ for backend in backends]

        self.assertEqual(3, len(backends))
        self.assertIn('AwsSsmSecretsBackend', backend_classes)