-
Notifications
You must be signed in to change notification settings - Fork 81
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
Fix user permission tests #1913
Conversation
[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
ods_ci/tests/Tests/0500__ide/0501__ide_jupyterhub/jupyterhub-user-access.robot
Fixed
Show fixed
Hide fixed
Robot Results
|
* 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.
d30d894
to
ade2e8c
Compare
|
There was a problem hiding this 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
resource which we use for the dashboard page loading
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:
CI:
![image](https://private-user-images.githubusercontent.com/12250881/375328909-29296ff0-46f0-4e73-afcd-5637e533252d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNjkwOTMsIm5iZiI6MTczOTI2ODc5MywicGF0aCI6Ii8xMjI1MDg4MS8zNzUzMjg5MDktMjkyOTZmZjAtNDZmMC00ZTczLWFmY2QtNTYzN2U1MzMyNTJkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDEwMTMxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM5OWRkOGM4ODVjZWZhOThjOTRmNDMyZjA1Y2NlOGFhMTQ3MWZmN2I5ZmJmZGZlNWI4ZThlOWQ1M2U1MTBlMzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.N4clcQkGh-IK0qHMKBNOGk9CfdCrKnM662GpFwZPWq0)