Skip to content
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

Add auth v2 e2e tests using PowerMax mount credentials #892

Merged
merged 14 commits into from
Feb 27, 2025

Conversation

xuluna
Copy link
Contributor

@xuluna xuluna commented Feb 6, 2025

Description

Add E2E tests that installs the Powermax driver using mount credentials and enables Authorization v2.

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
dell/csm#1614

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have maintained backward compatibility
  • I have executed the relevant end-to-end test scenarios

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

Ran 1 of 1 Specs in 707.713 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 0 Skipped
PASS
                                                                                                                                                                                                                 Ginkgo ran 1 suite in 15m51.060786811s
Test Suite Passed

@falfaroc falfaroc force-pushed the usr/spark/mount-credentials branch from e6d958f to 02983b8 Compare February 14, 2025 18:52
Base automatically changed from usr/spark/mount-credentials to main February 26, 2025 20:14
@xuluna xuluna force-pushed the usr/luna/powermax-auth-test branch from ba3f6b0 to 492afb1 Compare February 26, 2025 21:39
@xuluna xuluna marked this pull request as ready for review February 27, 2025 16:44
@xuluna xuluna requested a review from falfaroc February 27, 2025 16:44
falfaroc and others added 6 commits February 27, 2025 19:54
* Add new powermax and reverseproxy cr

* Add dynamic secret mounting for reverseproxy

By providing the secret name, we assume that we are using the new secret configuration for PowerMax.
This propagates the information and sets the useSecret to true in the reverseProxy. Also,
it automatically creates the volume and mount for the reverseProxy.

* Dynamically mount either the configMap or secret for PowerMax

* Remove unused code

* Add unit tests for PowerMax secret

* Fix deployment of reverse proxy sidecar with secret

* Update use secret environment variable

* Update unit tests

* Update reverse proxy controller yaml

* Update powermax secret variable processing

* Add PowerMax secret e2e test

* Update steps def for e2e tests

* gofumpt all files

* Address validation errors

* Cleanup variable setting for PowerMax secret

* Address validation errors

* Address PR comments and add e2e test

* Update copyrights
)

* Support Powermax mount credentials with minimal manifest

* Fix Powermax reverse proxy minimal manifest confusion

* Fix Powermax unit tests

* Fix linting issues

* Add PowerMax Mount Credentials minimal manifest e2e test

* Fix warning syntax
* Dynamically mount config params in the reverse proxy

Also, dynamically adds the reverse proxy port to the config params

* Dynamically mount config params in the reverse proxy for non-sidecar

* Clean up dynamically adding parameters and add unit tests

* Address lint errors

* Address gosec errors

* Cleanup duplicate code and remove not needed sections

* Address lint errors
* Dynamically mount secret or config map on Powermax observability

* Remove unused code

* Add PowerMax observability mount credentials unit tests

* Add PowerMax observability mount credentials e2e test

* Ensure that minimal manifest with mount credentials works

Adds e2e test to cover this scenario

* Generalize min version for Mount Credential variable
@xuluna xuluna force-pushed the usr/luna/powermax-auth-test branch from 26a885c to 1425349 Compare February 27, 2025 19:54
@xuluna xuluna merged commit 25f33a6 into main Feb 27, 2025
7 checks passed
@xuluna xuluna deleted the usr/luna/powermax-auth-test branch February 27, 2025 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants