Skip to content

Commit

Permalink
added final check for smcp + rename kws + modelregistry field update
Browse files Browse the repository at this point in the history
  • Loading branch information
asanzgom committed Sep 25, 2024
1 parent 1171fce commit 3474104
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 9 additions & 6 deletions ods_ci/tasks/Resources/RHODS_OLM/install/oc_install.robot
Original file line number Diff line number Diff line change
Expand Up @@ -286,14 +286,14 @@ Apply DataScienceCluster CustomResource
IF ${custom} == True

Check notice

Code scanning / Robocop

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

'IF' condition can be simplified
Log to Console message=Creating DataScience Cluster using custom configuration

Check warning

Code scanning / Robocop

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

Keyword name 'Log to Console' does not follow case convention
Generate CustomManifest In DSC YAML
Apply DevFlags in DataScienceCluster CustomResource
Rename DevFlags in DataScienceCluster CustomResource

Check warning

Code scanning / Robocop

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

Keyword name 'Rename DevFlags in DataScienceCluster CustomResource' does not follow case convention
${yml} = Get File ${file_path}dsc_apply.yml
Log To Console Applying DSC yaml
Log To Console ${yml}
${return_code} ${output} = Run And Return Rc And Output oc apply -f ${file_path}dsc_apply.yml
Log To Console ${output}
Should Be Equal As Integers ${return_code} 0 msg=Error detected while applying DSC CR
Remove File ${file_path}dsc_apply.yml
#Remove File ${file_path}dsc_apply.yml

Check warning

Code scanning / Robocop

Missing blank space after comment character Warning

Missing blank space after comment character
Wait For DSC Conditions Reconciled ${OPERATOR_NS} ${DSC_NAME}

Check warning

Code scanning / Robocop

Variable '{{ name }}' has inconsistent naming. First used as '{{ first_use }}' Warning

Variable '${DSC_NAME}' has inconsistent naming. First used as '${dsc_name}'
ELSE
Log to Console Requested Configuration:

Check warning

Code scanning / Robocop

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

Keyword name 'Log to Console' does not follow case convention
Expand Down Expand Up @@ -339,7 +339,6 @@ Create DataScienceCluster CustomResource Using Test Variables
ELSE IF '${COMPONENTS.${cmp}}' == 'Removed'
Run sed -i'' -e 's/<${cmp}_value>/Removed/' ${file_path}dsc_apply.yml
END

# The model registry component needs to set the namespace used, so adding this special statement just for it
IF '${cmp}' == 'modelregistry'
Run sed -i'' -e 's/<${cmp}_namespace>/${MODEL_REGISTRY_NAMESPACE}/' ${file_path}dsc_apply.yml
Expand All @@ -361,6 +360,10 @@ Generate CustomManifest In DSC YAML
ELSE IF '${status}' == 'Removed'
Run sed -i'' -e 's/<${cmp}_value>/Removed/' ${file_path}dsc_apply.yml
END
# The model registry component needs to set the namespace used, so adding this special statement just for it
IF '${cmp}' == 'modelregistry'
Run sed -i'' -e 's/<${cmp}_namespace>/${MODEL_REGISTRY_NAMESPACE}/' ${file_path}dsc_apply.yml
END
END

Apply Custom Manifest in DataScienceCluster CustomResource Using Test Variables
Expand All @@ -377,9 +380,9 @@ Apply Custom Manifest in DataScienceCluster CustomResource Using Test Variables
END
END

Apply DevFlags in DataScienceCluster CustomResource
[Documentation] Apply devFlags to a DSC file
Log To Console Applying devFlags
Rename DevFlags in DataScienceCluster CustomResource

Check warning

Code scanning / Robocop

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

Keyword name 'Rename DevFlags in DataScienceCluster CustomResource' does not follow case convention
[Documentation] Filling devFlags fields for every component in DSC
Log To Console Filling devFlags fields for every component in DSC
${file_path} = Set Variable tasks/Resources/Files/
FOR ${cmp} IN @{COMPONENT_LIST}
Run sed -i'' -e "s|<${cmp}_devflags>||g" ${file_path}dsc_apply.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ Teardown Service Mesh Control Plane Already Created
IF ${DSC_EXISTS} == True

Check notice

Code scanning / Robocop

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

'IF' condition can be simplified
Apply DataScienceCluster CustomResource ${DSC_NAME} True ${custom_cmp}
END
Wait Until Keyword Succeeds 2 min 0 sec
... Is Resource Present ServiceMeshControlPlane ${SERVICE_MESH_CR_NAME} ${SERVICE_MESH_CR_NS} ${IS_PRESENT}

Check warning

Code scanning / Robocop

Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test

Line is too long (126/120)

Check Whether DSC Exists And Save Component Statuses

Check warning

Code scanning / Robocop

Missing documentation in '{{ name }}' keyword Warning test

Missing documentation in 'Check Whether DSC Exists And Save Component Statuses' keyword
${rc}= Run And Return Rc
Expand Down

0 comments on commit 3474104

Please sign in to comment.