Skip to content

[fix] the expected network policy content for the ODH execution #1454

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

Merged
merged 1 commit into from
May 20, 2024

Conversation

jstourac
Copy link
Member

This was failing with ODH because there is a different network policy content. I think that the content in ODH is as expected, as such, I have updated our test to match this difference and work properly on both ODH and RHOAI installations.

Tested both with ODH and RHOAI installation:

Screenshot from 2024-05-17 12-10-13

@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 May 17, 2024
@jstourac jstourac requested review from jiridanek and lugi0 May 17, 2024 10:10
@jstourac jstourac self-assigned this May 17, 2024
@@ -275,7 +275,9 @@
${CR_name} = Get User CR Notebook Name username=${TEST_USER.USERNAME}
${policy_ctrl} = Run
... oc get networkpolicy ${CR_name}-ctrl-np -n ${NOTEBOOKS_NAMESPACE} -o json | jq '.spec.ingress[0]'
${expected_policy_ctrl} = Get File ods_ci/tests/Resources/Files/expected_ctrl_np.txt
# ${expected_policy_ctrl} = Get File ods_ci/tests/Resources/Files/expected_ctrl_np.txt
${rc} ${expected_policy_ctrl} = Run And Return Rc And Output

Check notice

Code scanning / Robocop

Variable '{{ name }}' is assigned but not used

Variable '${rc}' is assigned but not used
Copy link
Contributor

Robot Results

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

@jstourac jstourac force-pushed the fixNetworkPolicyOdh branch from 7f93aa0 to 730c8f8 Compare May 17, 2024 12:02
jiridanek
jiridanek previously approved these changes May 17, 2024
bdattoma
bdattoma previously approved these changes May 20, 2024
FedeAlonso
FedeAlonso previously approved these changes May 20, 2024
@jstourac jstourac dismissed stale reviews from FedeAlonso, bdattoma, and jiridanek via d2ef219 May 20, 2024 08:33
@jstourac jstourac force-pushed the fixNetworkPolicyOdh branch from 730c8f8 to d2ef219 Compare May 20, 2024 08:33
@jstourac
Copy link
Member Author

I'm sorry guys, I noticed I kept one unnecessary commented line in this PR. Thus I updated PR by deleting that line and also added ignore for the line length warning. Would be glad if you could review again. Thanks!

This was failing with ODH because there is a different network policy
content. I think that the content in ODH is as expected, as such, I have
updated our test to match this difference and work properly on both ODH
and RHOAI installations.
@jiridanek jiridanek force-pushed the fixNetworkPolicyOdh branch from d2ef219 to 4ad5314 Compare May 20, 2024 08:48
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

@jstourac jstourac merged commit 0775cdf into red-hat-data-services:master May 20, 2024
@jstourac jstourac deleted the fixNetworkPolicyOdh branch May 20, 2024 08:52
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.

4 participants