-
Notifications
You must be signed in to change notification settings - Fork 82
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
WIP: Add ModelMesh test for CVE-2024-7557 #1861
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: rnetser <[email protected]> rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
Signed-off-by: rnetser <[email protected]> rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
Signed-off-by: rnetser <[email protected]> rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
Signed-off-by: rnetser <[email protected]> rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
Signed-off-by: rnetser <[email protected]> rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
Signed-off-by: rnetser <[email protected]> rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
Signed-off-by: rnetser <[email protected]> rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
Signed-off-by: rnetser <[email protected]> rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
Signed-off-by: rnetser <[email protected]> rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
Signed-off-by: rnetser <[email protected]> rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
Signed-off-by: rnetser <[email protected]> rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
Signed-off-by: rnetser <[email protected]> rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
Signed-off-by: rnetser <[email protected]> rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
Signed-off-by: rnetser <[email protected]> rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
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.
Robocop found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
Robot Results
|
Signed-off-by: rnetser <[email protected]> rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
ods_ci/tests/Resources/Page/ODH/ODHDashboard/ODHDataScienceProject/ModelServer.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Resources/Page/ODH/ODHDashboard/ODHDataScienceProject/ModelServer.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Resources/Page/ODH/ODHDashboard/ODHDataScienceProject/ModelServer.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/1000__model_serving/1008_model_serving_cross_auth.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/1000__model_serving/1008_model_serving_cross_auth.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/1000__model_serving/1008_model_serving_cross_auth.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/1000__model_serving/1008_model_serving_cross_auth.robot
Fixed
Show fixed
Hide fixed
# Even if kw fails, deleting the whole project will also delete the model | ||
# Failure will be shown in the logs of the run nonetheless | ||
IF ${MODEL_CREATED} | ||
Clean All Models Of Current User | ||
ELSE | ||
Log Model not deployed, skipping deletion step during teardown console=true | ||
END | ||
${projects}= Create List ${PRJ_TITLE} | ||
${projects}= Create List ${project_name} |
Check notice
Code scanning / Robocop
{{ create_keyword }} can be replaced with VAR Note test
ods_ci/tests/Resources/Page/ODH/ODHDashboard/ODHDataScienceProject/Projects.resource
Outdated
Show resolved
Hide resolved
@@ -218,7 +226,8 @@ Get Model Serving Access Token via UI | |||
${token}= Get Single Model Token ${service_account_name} | |||
ELSE | |||
SeleniumLibrary.Wait Until Page Contains Element xpath://td[@data-label="Tokens"]/button | |||
SeleniumLibrary.Click Element xpath://td[@data-label="Tokens"]/button | |||
SeleniumLibrary.Click Button | |||
... xpath://*[@id="expand-table-row-${model_name}-1-undefined-1"]/../../td[@data-label='Tokens']//button | |||
${token}= SeleniumLibrary.Get Element Attribute | |||
... xpath://div[.="${service_account_name} "]/../../td[@data-label="Token Secret"]//input value |
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.
Xpath can be inproved
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.
@mwaykole please advise how
rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
@@ -211,14 +219,28 @@ | |||
Get Model Serving Access Token via UI | |||
[Documentation] Returns the token used for authentication to the serving route | |||
... TODO: There can be multiple tokens defined for each model server, handle this case as well | |||
[Arguments] ${service_account_name}=default-name ${single_model}=${FALSE} ${model_name}=${NONE} | |||
[Arguments] ${service_account_name}=default-name ${single_model}=${FALSE} |
Check notice
Code scanning / Robocop
There is too many arguments per continuation line ({{ arguments_count }} / {{ max_arguments_count }}) Note test
ods_ci/tests/Resources/Page/ODH/ODHDashboard/ODHDataScienceProject/ModelServer.resource
Dismissed
Show dismissed
Hide dismissed
ods_ci/tests/Resources/Page/ODH/ODHDashboard/ODHDataScienceProject/ModelServer.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Resources/Page/ODH/ODHDashboard/ODHDataScienceProject/ModelServer.resource
Fixed
Show fixed
Hide fixed
@@ -1,4 +1,4 @@ | |||
# robocop: off=wrong-case-in-keyword-name,too-many-arguments,too-long-keyword | |||
# robocop: off=wrong-case-in-keyword-name,too-many-arguments,too-long-keyword,line-too-long |
Check warning
Code scanning / Robocop
Inconsistent use of tabs and spaces in file Warning test
rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
@@ -244,10 +228,12 @@ | |||
Get Access Token Via UI | |||
[Documentation] Returns the access token for models deployed in a specific project | |||
... by using the UI of DSP | |||
[Arguments] ${project_name} ${service_account_name}=default-name ${single_model}=${FALSE} | |||
... ${model_name}=${NONE} | |||
[Arguments] ${project_name} ${service_account_name}=default-name |
Check notice
Code scanning / Robocop
There is too many arguments per continuation line ({{ arguments_count }} / {{ max_arguments_count }}) Note test
[Arguments] ${project_name} ${service_account_name}=default-name ${single_model}=${FALSE} | ||
... ${model_name}=${NONE} | ||
[Arguments] ${project_name} ${service_account_name}=default-name | ||
... ${single_model}=${FALSE} ${model_name}=${NONE} |
Check notice
Code scanning / Robocop
There is too many arguments per continuation line ({{ arguments_count }} / {{ max_arguments_count }}) Note test
rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
Quality Gate passedIssues Measures |
hey @rnetser u can add a label Product bug and mention RHOAIENG-12314 in the comment , i guess we can merge it after that |
No description provided.