-
Notifications
You must be signed in to change notification settings - Fork 35
feat: add encryption/decryption integration test #2054
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
d542091 to
76e4bfc
Compare
b8f3e0b to
7c29cfd
Compare
75380b0 to
45296a6
Compare
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.
Pull Request Overview
This PR introduces integration tests for volume encryption and decryption along with associated API client manager updates to support secret and storage class operations for encrypted images.
- New integration tests for creating encrypted and decrypted images, including tests for failure scenarios.
- Addition of secret management support and improvements in storage class parameter merging.
- API client updates for images and secrets modules to enable crypto image creation using encryption parameters.
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| harvester_e2e_tests/integrations/test_1_security_images.py | Added integration tests for encrypted/decrypted images using various secret combinations and validation of error responses. |
| harvester_e2e_tests/integrations/test_1_images.py | Updated shared image fixture and image status waiting functions; minor improvements in error logging. |
| apiclient/harvester_api/managers/storageclasses.py | Introduced create_by_parameters to merge custom parameters into storage class creation data. |
| apiclient/harvester_api/managers/secrets.py | Added new SecretManager to support secret creation, retrieval, and deletion for encryption tests. |
| apiclient/harvester_api/managers/images.py | Added create_crypto_image function for handling encrypted/decrypted image creation. |
| apiclient/harvester_api/managers/init.py | Exported SecretManager for broader API client access. |
| apiclient/harvester_api/api.py | Updated API load to include SecretManager. |
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.
as this will add the dependency on secrets, so the it should named starts with test_2
197ca81 to
588357f
Compare
Signed-off-by: Jack Yu <[email protected]>
|
link to #1483 |
|
Tested with |

Which issue(s) this PR fixes:
Issue harvester/harvester#8148
What this PR does / why we need it:
Special notes for your reviewer:
I created these codes with this prompt and copilot instruction from #2066 and refactored them manually.
Additional documentation or context