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

Implement CR deletion using OpenshiftLibrary instead of UI #685

Merged
merged 13 commits into from
Feb 1, 2023

Conversation

bdattoma
Copy link
Contributor

@bdattoma bdattoma commented Jan 27, 2023

In Tier2 runs we see often failing the step of deleting ISV's CustomResource, so this PR wants to improve that by replacing UI navigation with CLI for performing that step.
For pachyderm, it also replaces project creation/deletion with OpenshftiLibrary since it is a ery easy and quick change.

This is just a first piece of the final implementation where the install/uninstall process of ISV will be completely done via CLI instead UI.

A note about openvino
You'll see the code for Openvino is slightly different, because the default CR name is tide to a version (i.e., v2022.3), so there is an higher probability this could change over time and our teardown would fails. So, until we get to Install using CLI (where we will input the CR name), the Openvino teardown will delete all the CR instances of openvino. In theory, there should be only one which was created by the test itself.
Adding now the input of a custom CR name (or just fetching the default one from the UI) would add just an additional point of failure in the UI testing which is not very stable over OCP versions

Signed-off-by: bdattoma <bdattoma@redhat.com>
Signed-off-by: bdattoma <bdattoma@redhat.com>
Signed-off-by: bdattoma <bdattoma@redhat.com>
@bdattoma bdattoma added needs testing Needs to be tested in Jenkins enhancements Bugfixes, enhancements, refactoring, ... in tests or libraries (PR will be listed in release-notes) labels Jan 27, 2023
@bdattoma bdattoma self-assigned this Jan 27, 2023
Signed-off-by: bdattoma <bdattoma@redhat.com>
Signed-off-by: bdattoma <bdattoma@redhat.com>
Signed-off-by: bdattoma <bdattoma@redhat.com>
lugi0
lugi0 previously approved these changes Jan 27, 2023
Signed-off-by: bdattoma <bdattoma@redhat.com>
${pachyderm_container_name} Pachyderm
${pachyderm_operator_name} Pachyderm
${pachyderm_appname} pachyderm
${pachyderm_ns} pachyderm

Check warning

Code scanning / Robocop

Section variable '{{ variable_name }}' name should be uppercase

Section variable '${pachyderm_ns}' name should be uppercase
Signed-off-by: bdattoma <bdattoma@redhat.com>
@github-actions
Copy link
Contributor

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
284 0 0 284 100

Signed-off-by: bdattoma <bdattoma@redhat.com>
Signed-off-by: bdattoma <bdattoma@redhat.com>
@bdattoma
Copy link
Contributor Author

bdattoma commented Jan 31, 2023

Jenkins job for ODS-760, ODS-675, ODS-1137 and ODS-1161: 1538 SUCCESS

Signed-off-by: bdattoma <bdattoma@redhat.com>
Signed-off-by: bdattoma <bdattoma@redhat.com>
Signed-off-by: bdattoma <bdattoma@redhat.com>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@bdattoma bdattoma added verified This PR has been tested with Jenkins and removed needs testing Needs to be tested in Jenkins labels Jan 31, 2023
Copy link
Contributor

@jgarciao jgarciao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bdattoma bdattoma merged commit 447ab9e into red-hat-data-services:master Feb 1, 2023
@bdattoma bdattoma deleted the fix_tier2 branch November 6, 2023 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancements Bugfixes, enhancements, refactoring, ... in tests or libraries (PR will be listed in release-notes) verified This PR has been tested with Jenkins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants