MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / test_kms_retry

Method test_kms_retry

test/test_encryption.py:3075–3091  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3073 self.client_encryption.create_data_key(provider, master_key=master_key)
3074
3075 def test_kms_retry(self):
3076 if IS_PYOPENSSL:
3077 self.skipTest(
3078 "PyOpenSSL does not support a required method for this test, Connection.makefile"
3079 )
3080 self._test("aws", {"region": "foo", "key": "bar", "endpoint": "127.0.0.1:9003"})
3081 self._test("azure", {"keyVaultEndpoint": "127.0.0.1:9003", "keyName": "foo"})
3082 self._test(
3083 "gcp",
3084 {
3085 "projectId": "foo",
3086 "location": "bar",
3087 "keyRing": "baz",
3088 "keyName": "qux",
3089 "endpoint": "127.0.0.1:9003",
3090 },
3091 )
3092
3093
3094# https://github.com/mongodb/specifications/blob/master/source/client-side-encryption/tests/README.md#automatic-data-encryption-keys

Callers

nothing calls this directly

Calls 1

_testMethod · 0.95

Tested by

no test coverage detected