Conversation
tests/e2e/testfiles/powerflex-templates/powerflex-secret-template.yaml
Outdated
Show resolved
Hide resolved
|
@ChristianAtDell - Can you remove the cert-csi reference and use the K8s e2e or OCP e2e for provisioning. |
Not for free. We have no clear and concise way to do this without deep investigation. Finding out how to implement k8s e2e into our test suite, switching away from cert-csi in over sixty test cases, and re-testing everything across five platforms is a massive undertaking. It will need to be driven as a Feature, not slipped into an improvements PR. @anandrajak1 |
|
In addition, to my knowledge K8s E2E is a whole suite of tests that takes hours to run. I don't believe there are simple "provisioning" tests that you can run with it. This test suite is not meant to be an exhaustive storage check for the drivers, it is meant to be an 'install the driver and make sure it works'-- Operator E2E cannot be bloated to comprehensively test all drivers/modules. If we are going to deprecate cert-csi as a testing tool, we are going to have to come up with some custom simple testing methodology to "sanity check" drivers installed by Operator can provision. I adamantly refuse bloating Operator tests to take multiple hours. |
…mplate files will not be modified any more and won't need to be restored after the test.
…w temporary files.
…restore step in all tests.
…ource" step is rendered-file-aware now - it will use the corresponding rendered file instead of the specified template or it will use the specified file if it is not a template.
…l generated files are written to temp that is recreated before each scenario.
…ers should copy this template to create their own configuration file for testing. This helps prevent accidentally committing environment-specific values.
6883e19 to
0e710b8
Compare
Merging this branch will not change overall coverage
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. Changed unit test files
|
|
@ChristianAtDell Since Auth V1 is completely removed, can we remove karavictl references from operator as well? I don't remember 100% but I think it was used for auth v1 only |
@EvgenyUglov Thanks for spotting this. It does seem that karavictl is no longer in use. However, I'm not comfortable removing it without retesting all authentication scenarios, so I'd prefer to leave this cleanup for a future round of improvements. |
Description
This PR encompasses a large effort to reduce the length and possibility for error when performing Operator End to End testing.
cert-csi viotests have been replaced withcert-csi provisioningequivalents. Full volume IO validation is included in driver testing suites, Operator should not perform these tests. This is a time-saving of about 65-75% on all test cases that provision.array-info.shhas been replaced with anarray-info.env.sample. E2E script looks for anarray-info.envto be created by the user in advance. This removes risks of accidentally committing sensitive array-info.sh file to the repository.array-info.envhas been added to .gitignore.GitHub Issues
List the GitHub issues impacted by this PR:
Checklist:
How Has This Been Tested?
E2E has been run on every storage platform. Verified time savings compared to last run prior to these changes:
Minimal E2Es are still to-be-tested.