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

Adapt Trusted CA bundles tests to ODH #1380

Conversation

asanzgom
Copy link
Contributor

No description provided.

@asanzgom asanzgom self-assigned this Apr 15, 2024
@asanzgom asanzgom requested review from bdattoma and jstourac April 15, 2024 12:12
@asanzgom
Copy link
Contributor Author

rhods-ci-pr-test/2692/ In progress

Copy link
Contributor

Robot Results

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

@jstourac
Copy link
Member

Basically LGTM.

I just don't feel very comfortable with the different approaches we have to configure product specific constants - somewhere we count respective values in the running code directly, elsewhere we expect to use this file.

@mattmahoneyrh
Copy link
Contributor

mattmahoneyrh commented Apr 15, 2024

@asanzgom Has this PR been by Jenkins job for both ODH and RHOAI?
Also, this is also a fix to the Serverless test, right?

ods_ci/tests/Resources/RHOSi.resource Dismissed Show dismissed Hide dismissed
[Arguments] ${PRODUCT}
IF "${PRODUCT}" == "RHODS"
Set Suite Variable ${OPERATOR_APPNAME} Red Hat OpenShift AI
Set Suite Variable ${OPERATOR_NAME} Red Hat OpenShift AI

Check notice

Code scanning / Robocop

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

Set Suite Variable can be replaced with VAR
ods_ci/tests/Resources/RHOSi.resource Dismissed Show dismissed Hide dismissed
Set Suite Variable ${OPERATOR_APPNAME} Red Hat OpenShift AI
Set Suite Variable ${OPERATOR_NAME} Red Hat OpenShift AI
Set Suite Variable ${OPERATOR_DEPLOYMENT_NAME} rhods-operator
Set Suite Variable ${OPERATOR_LABEL_SELECTOR} name=rhods-operator

Check notice

Code scanning / Robocop

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

Set Suite Variable can be replaced with VAR
Set Suite Variable ${OPERATOR_DEPLOYMENT_NAME} rhods-operator
Set Suite Variable ${OPERATOR_LABEL_SELECTOR} name=rhods-operator
ELSE IF "${PRODUCT}" == "ODH"
Set Suite Variable ${OPERATOR_APPNAME} Open Data Hub Operator

Check notice

Code scanning / Robocop

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

Set Suite Variable can be replaced with VAR
Set Suite Variable ${OPERATOR_LABEL_SELECTOR} name=rhods-operator
ELSE IF "${PRODUCT}" == "ODH"
Set Suite Variable ${OPERATOR_APPNAME} Open Data Hub Operator
Set Suite Variable ${OPERATOR_NAME} Open Data Hub Operator

Check notice

Code scanning / Robocop

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

Set Suite Variable can be replaced with VAR
ELSE IF "${PRODUCT}" == "ODH"
Set Suite Variable ${OPERATOR_APPNAME} Open Data Hub Operator
Set Suite Variable ${OPERATOR_NAME} Open Data Hub Operator
Set Suite Variable ${OPERATOR_DEPLOYMENT_NAME} opendatahub-operator-controller-manager

Check notice

Code scanning / Robocop

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

Set Suite Variable can be replaced with VAR
Set Suite Variable ${OPERATOR_APPNAME} Open Data Hub Operator
Set Suite Variable ${OPERATOR_NAME} Open Data Hub Operator
Set Suite Variable ${OPERATOR_DEPLOYMENT_NAME} opendatahub-operator-controller-manager
Set Suite Variable ${OPERATOR_LABEL_SELECTOR} control-plane=controller-manager

Check notice

Code scanning / Robocop

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

Set Suite Variable can be replaced with VAR
@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 Apr 15, 2024
@asanzgom
Copy link
Contributor Author

Triggered odh-smoke/52/

@bdattoma
Copy link
Contributor

Basically LGTM.

I just don't feel very comfortable with the different approaches we have to configure product specific constants - somewhere we count respective values in the running code directly, elsewhere we expect to use this file.

Agree with Jan's point

@asanzgom
Copy link
Contributor Author

@asanzgom Has this PR been by Jenkins job for both ODH and RHOAI? Also, this is also a fix to the Serverless test, right?

I have triggered for ODH now odh-smoke/52/ and will trigger on another cluster with RHOAI and yes, I moved common Keyword and fixed compatibility backwards for the serverless Test Case

@asanzgom
Copy link
Contributor Author

odh-smoke/55/ passed

@asanzgom
Copy link
Contributor Author

Ran successful on RHOAI rhods-smoke/5103

@@ -70,6 +70,7 @@ Protect Sensitive Variables In Keywords
Initialize Global Variables
[Documentation] Sets global variables
[Arguments] ${force_fetch}=False
Assign Vars According To Product ${PRODUCT}
Copy link
Contributor

Choose a reason for hiding this comment

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

${PRODUCT} is already a global variable so you don't need this argument

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had to include it as an input param because of:
Validate Trusted CA Bundles State Managed :: The purpose of this t... | FAIL | Parent suite setup failed: Keyword 'RHOSi.Assign Vars According To Product' expected 1 argument, got 0.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

@@ -42,23 +42,13 @@ Suite Setup
[Documentation] Suite Setup
Set Library Search Order SeleniumLibrary
RHOSi Setup
Assign Vars According To Product ${PRODUCT}
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not needed (already done in RHOSi Setup)

Copy link
Contributor Author

@asanzgom asanzgom Apr 16, 2024

Choose a reason for hiding this comment

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

Removed

Copy link
Contributor

Choose a reason for hiding this comment

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

I still see this line to be removed

mattmahoneyrh
mattmahoneyrh previously approved these changes Apr 15, 2024
@jgarciao
Copy link
Contributor

I just don't feel very comfortable with the different approaches we have to configure product specific constants - somewhere we count respective values in the running code directly, elsewhere we expect to use this file.

I think the code at Assign Vars According To Product could be moved to the existing Initialize Global Variables and use it only for global variables (variables that might be used in more than one test suite). For variables that will be used only in a test suite, they can be declared in the test suite itself and then overwritten for ODH using test-variables-odh-overwrite.

@asanzgom
Copy link
Contributor Author

I just don't feel very comfortable with the different approaches we have to configure product specific constants - somewhere we count respective values in the running code directly, elsewhere we expect to use this file.

I think the code at Assign Vars According To Product could be moved to the existing Initialize Global Variables and use it only for global variables (variables that might be used in more than one test suite). For variables that will be used only in a test suite, they can be declared in the test suite itself and then overwritten for ODH using test-variables-odh-overwrite.

It is already moved inside Initialize Global Variables

@asanzgom asanzgom requested a review from jgarciao April 16, 2024 07:32
@asanzgom asanzgom requested a review from FedeAlonso April 16, 2024 13:23
@@ -42,23 +42,13 @@ Suite Setup
[Documentation] Suite Setup
Set Library Search Order SeleniumLibrary
RHOSi Setup
Assign Vars According To Product ${PRODUCT}
Copy link
Contributor

Choose a reason for hiding this comment

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

I still see this line to be removed

@jgarciao jgarciao self-requested a review April 16, 2024 15:26
jgarciao
jgarciao previously approved these changes Apr 16, 2024
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

@jgarciao
Copy link
Contributor

Merging after the agreement in today's Automation Meeting

@jgarciao jgarciao merged commit 24f666c into red-hat-data-services:master Apr 16, 2024
8 checks passed
@asanzgom asanzgom deleted the hotfix/adapt_trusted_ca_bundles_test_to_odh branch April 17, 2024 07:53
jgarciao pushed a commit to jgarciao/ods-ci that referenced this pull request Apr 17, 2024
* Adapt Trusted CA bundles tests to ODH

* Moved Assign Vars According to Product to RHOSi.resource

* remove  as input param

* removed trailing whitespace

* removed Assign Vars According To Product invokation
jgarciao added a commit that referenced this pull request Apr 17, 2024
* Fix bug in "Trusted Ca Bundles" test suite in ODH
Signed-off-by: Jorge Garcia Oncins <[email protected]>

* Move non-critical monitoring test to Sanity
Signed-off-by: Jorge Garcia Oncins <[email protected]>

* Revert "Fix bug in "Trusted Ca Bundles" test suite in ODH"

This reverts commit 914efd1.

* Fix kw "Verify Cluster Settings Is Available" for ODH
Signed-off-by: Jorge Garcia Oncins <[email protected]>

* Fix must-grather test for ODH
Signed-off-by: Jorge Garcia Oncins <[email protected]>

* Exclude "Image Digest" test in ODH
Signed-off-by: Jorge Garcia Oncins <[email protected]>

* Read Tier1 tag in must-gather test
Signed-off-by: Jorge Garcia Oncins <[email protected]>

* Fix some of the robocop warnings in must-gather test
Signed-off-by: Jorge Garcia Oncins <[email protected]>

Signed-off-by: Jorge Garcia Oncins <[email protected]>

* Change `IBM Watson Studio` to `IBM watsonx.ai` title in 2.9+

https://issues.redhat.com/browse/RHOAIENG-4447

* Update link for Jupyter card in the Explore page

* Update Xpath for WORKBENCH_IMAGE (#1382)

The following Xpath values have to be updated for RHOAI 2.9:
- `$WORKBENCH_IMAGE_MENU_BTN_XP`
- `$WORKBENCH_IMAGE_VER_DROPDOWN`

Signed-off-by: manosnoam <[email protected]>

* fix: ODS-1814 wrong xpath (#1383)

* fix: ODS-1814 wrong xpath

* use data-testid and minor linter change

* Migrate pipelines tests to DSPv2

* fix: ODS-2054 issues (#1384)

* fix: ODS-2054 issues

* modify the sleep in order to be an active wait

* cap case

* Adapt Trusted CA bundles tests to ODH (#1380)

* Adapt Trusted CA bundles tests to ODH

* Moved Assign Vars According to Product to RHOSi.resource

* remove  as input param

* removed trailing whitespace

* removed Assign Vars According To Product invokation

* Verify That There Are No Sample Pipelines After Creating Pipeline Server in RHOAI (#1368)

* Added Automation for RHOAIENG-4382

* removed RunThisTest tag

* Added Fail and Made some changes

* Added Fail and Made some changes

* replaced Import Pipeline

* replaced Import Pipeline with new Keyword

* Modified sample pipelines verification

---------

Co-authored-by: Jorge <[email protected]>

* Fix required xpaths for the selection of the model server template (#1387)

* Fix required xpaths for the selection of the model server template

This change is necessary for the latest RHOAI 2.9 preRC build.

* Followup for 58fbb14 - deduplicate the methods for model serving runtime selection

* fix: ODS-2276 and ODS-2279 issues (#1388)

---------

Signed-off-by: Jorge Garcia Oncins <[email protected]>
Signed-off-by: manosnoam <[email protected]>
Co-authored-by: Jan Stourac <[email protected]>
Co-authored-by: Noam Manos <[email protected]>
Co-authored-by: Fede Alonso <[email protected]>
Co-authored-by: Diego Lovison <[email protected]>
Co-authored-by: Adrián Sanz Gómiz <[email protected]>
Co-authored-by: RAGHUL M <[email protected]>
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) needs testing Needs to be tested in Jenkins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants