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

[RHOAIENG-223] Test VSCode - add checks for VS Code image #1102

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

jstourac
Copy link
Member

@jstourac jstourac commented Jan 9, 2024

This introduces tests for the recently added VS Code IDE image. For more information see [1,2].

[1] https://issues.redhat.com/browse/RHOAIENG-223
[2] https://issues.redhat.com/browse/RHOAIENG-225


CI: rhods-ci-pr-test/2349

@jstourac jstourac self-assigned this Jan 9, 2024
[Documentation] Waits for the notebook IDE environment to be loaded completely and performs
... a simple check with the Menu action in the loaded IDE.
[Arguments] ${image_name} ${version}
${ide}= Notebook Expected Ide ${image_name}

Check warning

Code scanning / Robocop

The assignment sign is not consistent within the file. Expected '{{ expected_sign }}' but got '{{ actual_sign }}' instead Warning test

The assignment sign is not consistent within the file. Expected ' =' but got '=' instead
Copy link
Contributor

github-actions bot commented Jan 9, 2024

Robot Results

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

jiridanek
jiridanek previously approved these changes Jan 15, 2024
@jiridanek
Copy link
Member

+1 I think it makes sense merging just the spawning test, after a little cleanup.

@@ -41,6 +41,28 @@
... project_title=${PRJ_TITLE} username=${TEST_USER_3.USERNAME}
... password=${TEST_USER_3.PASSWORD} auth_type=${TEST_USER_3.AUTH_TYPE}

Verify User Can Create A Workbench Using Code Server Image

Check warning

Code scanning / Robocop

Test case '{{ test_name }}' has too many keywords inside ({{ keyword_count }}/{{ max_allowed_count }}) Warning test

Test case 'Verify User Can Create A Workbench Using Code Server Image' has too many keywords inside (11/10)
@jstourac jstourac added new test New test(s) added (PR will be listed in release-notes) verified This PR has been tested with Jenkins labels Jan 19, 2024
@jstourac jstourac marked this pull request as ready for review January 19, 2024 16:06
@jstourac jstourac force-pushed the vscode branch 2 times, most recently from 0cd8562 to 76664b7 Compare January 19, 2024 17:25
@jstourac jstourac force-pushed the vscode branch 2 times, most recently from 704b0fa to 68a6d39 Compare February 12, 2024 10:32
Verify User Can Create A Workbench Using Code Server Image
[Documentation] Verifies that a workbench can be created using Code Server image
[Tags] Sanity Tier1
Set Test Variable ${IMG_NAME} code-server

Check notice

Code scanning / Robocop

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

Set Test Variable can be replaced with VAR
[Documentation] Verifies that a workbench can be created using Code Server image
[Tags] Sanity Tier1
Set Test Variable ${IMG_NAME} code-server
Set Test Variable ${WORKBENCH_TITLE} codeServer

Check notice

Code scanning / Robocop

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

Set Test Variable can be replaced with VAR
[Tags] Sanity Tier1
Set Test Variable ${IMG_NAME} code-server
Set Test Variable ${WORKBENCH_TITLE} codeServer
Set Test Variable ${PV_NAME} codeServerPv

Check notice

Code scanning / Robocop

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

Set Test Variable can be replaced with VAR
Set Test Variable ${IMG_NAME} code-server
Set Test Variable ${WORKBENCH_TITLE} codeServer
Set Test Variable ${PV_NAME} codeServerPv
Set Test Variable ${PV_DESCRIPTION} PV for codeServer

Check notice

Code scanning / Robocop

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

Set Test Variable can be replaced with VAR
Close Previous Server
[Documentation] Closes previous server and goes back to Spawner
Clean Up Server
Stop JupyterLab Notebook Server
Copy link
Contributor

Choose a reason for hiding this comment

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

does it work for VS Code as well?

Copy link
Member Author

@jstourac jstourac Feb 12, 2024

Choose a reason for hiding this comment

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

yeah, no... good catch! It isn't being called at all, actually 🙁 let me check

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated - I removed this part completely and changed the teardown method at the beginning of the file that stops the created workbench at the end of the test execution.

@bdattoma bdattoma self-requested a review February 12, 2024 13:09
bdattoma
bdattoma previously approved these changes Feb 12, 2024
ods_ci/tests/Resources/Common.robot Fixed Show fixed Hide fixed
ods_ci/tests/Resources/Common.robot Fixed Show fixed Hide fixed
End Non JupyterLab Web Test
[Arguments] ${username}=${TEST_USER.USERNAME}
Go To ${ODH_DASHBOARD_URL}
Wait for RHODS Dashboard to Load

Check warning

Code scanning / Robocop

Keyword name '{{ keyword_name }}' does not follow case convention Warning test

Keyword name 'Wait for RHODS Dashboard to Load' does not follow case convention
@jstourac jstourac marked this pull request as ready for review February 22, 2024 09:04
This introduces tests for the recently added code-server IDE image. For more
information see [1,2].

This is just a basic check. More should be implemented later.

[1] https://issues.redhat.com/browse/RHOAIENG-223
[2] https://issues.redhat.com/browse/RHOAIENG-225
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues

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

See analysis details on SonarCloud

@jstourac jstourac merged commit 60fffb5 into red-hat-data-services:master Feb 22, 2024
11 checks passed
@jstourac jstourac deleted the vscode branch February 22, 2024 09:38
jstourac added a commit to jstourac/ods-ci that referenced this pull request Feb 26, 2024
This is a fix for the recent change [1,2]. Let's be consistent in the
variable naming in all relevant keywords.

* [1] red-hat-data-services#1102
* [2] 60fffb5
jstourac added a commit that referenced this pull request Feb 26, 2024
This is a fix for the recent change [1,2]. Let's be consistent in the
variable naming in all relevant keywords.

* [1] #1102
* [2] 60fffb5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new test New test(s) added (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