- Notifications
You must be signed in to change notification settings - Fork 1.1k
PYTHON-3385 Add prose test for RewrapManyDataKey #1034
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last issue:
[2022/08/10 22:47:12.652] ERROR: test_rewrap (test.test_encryption.TestRewrapWithSeparateClientEncryption) (src_provider='local', dst_provider='local') [2022/08/10 22:47:12.653] ---------------------------------------------------------------------- [2022/08/10 22:47:12.653] Traceback (most recent call last): [2022/08/10 22:47:12.653] File "/data/mci/1f2979f82d22e06506f6cff1d940194e/src/test/test_encryption.py", line 2230, in test_rewrap [2022/08/10 22:47:12.653] self.run_test(src_provider, dst_provider) [2022/08/10 22:47:12.653] File "/data/mci/1f2979f82d22e06506f6cff1d940194e/src/test/test_encryption.py", line 2247, in run_test [2022/08/10 22:47:12.653] master_key=self.MASTER_KEYS[src_provider], kms_provider=src_provider [2022/08/10 22:47:12.653] KeyError: 'local'
Fixed |
for src_provider in self.MASTER_KEYS: | ||
for dst_provider in self.MASTER_KEYS: | ||
with self.subTest(src_provider=src_provider, dst_provider=dst_provider): | ||
self.run_test(src_provider, dst_provider) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test says we still need to test the "local" provider:
For "local", do not set a masterKey document.
I think that means we need to add
... "kmip": {}, "local": None, }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They used local: {}
in the C driver, I'll go with that.
test/test_encryption.py Outdated
"local": {}, | ||
} | ||
| ||
KMS_TLS_OPTS = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the tlsCAFile is only valid/needed for kmip. Can we use the existing KMS_TLS_OPTS global instead of adding a new self.KMS_TLS_OPTS?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
No description provided.