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

[Fix] cleanup for the dashboard api tests #1317

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

jstourac
Copy link
Member

The cleanup only checked for resources of two users but in the tests there are used three different users, so let's clean after all three.


Note: I'm not aware that this broke any test, but I think we should clean all relevant Notebooks and PVCs after these tests are executed.

After merge, I shall backport to releases/2.8.0 branch too.


./ods_ci/run_robot_test.sh --test-case ods_ci/tests/Tests/400__ods_dashboard/414__ods_dashboard_api.robot --extra-robot-args '-e ProductBug' --open-report true

(results once #1306 is merged also)

Screenshot from 2024-03-25 09-53-39

The cleanup only checked for resources of two users but in the tests
there are used three different users, so let's clean after all three.
@jstourac jstourac added verified This PR has been tested with Jenkins enhancements Bugfixes, enhancements, refactoring, ... in tests or libraries (PR will be listed in release-notes) labels Mar 25, 2024
@jstourac jstourac self-assigned this Mar 25, 2024
@jstourac jstourac requested review from bdattoma and jiridanek March 25, 2024 08:56
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

${test_crs}= Create List ${CR_1} ${CR_2}
FOR ${nb_cr} IN @{test_crs}
${present}= Run Keyword And Return Status OpenshiftLibrary.Oc Get kind=Notebook namespace=${NOTEBOOK_NS} name=${nb_cr}
${test_usernames}= Create List ${TEST_USER.USERNAME} ${TEST_USER_3.USERNAME} ${TEST_USER_4.USERNAME}

Check notice

Code scanning / Robocop

{{ create_keyword }} can be replaced with VAR Note test

Create List can be replaced with VAR
${PVC_BASIC_USER}= Get User Notebook PVC Name ${TEST_USER_3.USERNAME}
${PVC_BASIC_USER_2}= Get User Notebook PVC Name ${TEST_USER_4.USERNAME}
${test_pvcs}= Create List ${PVC_BASIC_USER} ${PVC_BASIC_USER_2}
${test_pvcs}= Create List ${PVC_ADMIN_USER} ${PVC_BASIC_USER} ${PVC_BASIC_USER_2}

Check notice

Code scanning / Robocop

{{ create_keyword }} can be replaced with VAR Note test

Create List can be replaced with VAR
Copy link
Contributor

Robot Results

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

@jstourac jstourac merged commit fc76761 into red-hat-data-services:master Mar 25, 2024
12 checks passed
@jstourac jstourac deleted the fixNtbApiCleanup branch March 25, 2024 11:51
jstourac added a commit that referenced this pull request Mar 28, 2024
This PR contains following fixes from the `master` branch:

* edafbcc (#1296)
* 5e7f4b1 (#1302)
* b6fb7f7 (#1307)
* 9485246 (#1314)
* abfb8a5 (#1316)
* fc76761 (#1317)
* 439e2b3 (#1306)
* 5db9e26 (#1324)

---

I kept the order in which these commits were merged in the `master`
branch and provided both link to the particular commit and also link to
the particular PR so it's clearer to understand later on.
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