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 user permission tests #1913

Merged

Conversation

jstourac
Copy link
Member

@jstourac jstourac commented Oct 10, 2024

  1. [Fix] the Jupyter app user custom permission settings
    • fixes the failing test caued by recent changes in the ODHDashboard
      resource which we use for the dashboard page loading
    • minor refactoring of the code and some comments added for easier
      understandability of the test steps
  2. [Fix] improve the way we wait for the particular Dashboard page to load
    For some dashboard pages, it takes time to load properly and they can
    change the content during that time. E.g. there is a "Loading" text with
    an animated gif provided until the actual page is present.
    In case of accessing the Applications -> Enabled -> Jupyter app tile,
    there may be also present a page title with "Loading..." text for a
    brief amount of time. Such thing breaks our detection technique as then
    our expected page title text doesn't match with what was present on the
    page and fails with:
    BuiltIn.Should Be Equal:
    Loading... != Start a notebook server
    
    Adding a couple of retries should help to avoid such situation.

CI:
image

@jstourac jstourac added the enhancements Bugfixes, enhancements, refactoring, ... in tests or libraries (PR will be listed in release-notes) label Oct 10, 2024
@jstourac jstourac self-assigned this Oct 10, 2024
[Documentation] Creates a custom group using oc cli command
[Arguments] ${group_name}
${group_created}= Run Keyword And Return Status Create Group group_name=${group_name}
IF ${group_created} == False

Check notice

Code scanning / Robocop

'{{ block_name }}' condition can be simplified Note test

'IF' condition can be simplified
Copy link
Contributor

Robot Results

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

* fixes the failing test caued by recent changes in the ODHDashboard
  resource which we use for the dashboard page loading
* minor refactoring of the code and some comments added for easier
  understandability of the test steps
For some dashboard pages, it takes time to load properly and they can
change the content during that time. E.g. there is a "Loading" text with
an animated gif provided until the actual page is present.

In case of accessing the Applications -> Enabled -> Jupyter app tile,
there may be also present a page title with "Loading..." text for a
brief amount of time. Such thing breaks our detection technique as then
our expected page title text doesn't match with what was present on the
page and fails with:
```
BuiltIn.Should Be Equal:
Loading... != Start a notebook server
```

Adding a couple of retries should help to avoid such situation.
@jstourac jstourac force-pushed the fixUserPermissionTests branch from d30d894 to ade2e8c Compare October 10, 2024 10:06
Copy link

@jstourac jstourac added the verified This PR has been tested with Jenkins label Oct 10, 2024
@jstourac jstourac requested review from manosnoam, bdattoma, jiridanek and lugi0 and removed request for manosnoam October 10, 2024 10:06
@jstourac jstourac marked this pull request as ready for review October 10, 2024 10:07
@jstourac jstourac enabled auto-merge (rebase) October 10, 2024 10:07
Copy link
Contributor

@lugi0 lugi0 left a comment

Choose a reason for hiding this comment

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

one comment but overall lgtm

@jstourac jstourac merged commit c20e53a into red-hat-data-services:master Oct 10, 2024
8 checks passed
@jstourac jstourac deleted the fixUserPermissionTests branch October 10, 2024 10:44
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