Add unit tests to support #838#843
Conversation
| var kekId1 = kms.generateKey(); | ||
| var kekId2 = kms.generateKey(); | ||
|
|
||
| var spyKms = Mockito.spy(kms); |
There was a problem hiding this comment.
Hideous .. I'm hoping once we've got #774 etc we'd be able to rewrite this tests using mocks, and avoid the scary spying nonsense.
There was a problem hiding this comment.
Ohh that might be the forcing function I need to to actually merge #774
bed571e to
5200109
Compare
efbd7d1 to
a7d9087
Compare
SamBarker
left a comment
There was a problem hiding this comment.
LGTM,
Approved assuming the build is fixed by cosmetic changes.
| var kekId1 = kms.generateKey(); | ||
| var kekId2 = kms.generateKey(); | ||
|
|
||
| var spyKms = Mockito.spy(kms); |
There was a problem hiding this comment.
Ohh that might be the forcing function I need to to actually merge #774
a7d9087 to
ebceae7
Compare
Signed-off-by: kwall <[email protected]>
ebceae7 to
4341e54
Compare
|
|
Merged despite the coverage gate failure. The coverage gate failed because of the need to increase the visibility of the InMemory* record classes. Hopefully, we'll be able to revert this part of the change in future. |

Type of change
Select the type of your PR
Description
Unit tests to accompany fix for #838.
Verified that the new test fails in the expected way if you backout the fix for #838.
Additional Context
Why are you making this pull request?
Checklist
Please go through this checklist and make sure all applicable tasks have been done