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

Add TC Check value for serverless cert on CSV #2010

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,23 @@
Wait For Pods Numbers 0 namespace=${KNATIVESERVING_NS}
... label_selector=${KNATIVE_SERVING_CONTROLLER_LABEL_SELECTOR} timeout=300

Check value for serverless cert on CSV

Check warning

Code scanning / Robocop

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

Test case 'Check value for serverless cert on CSV' has too many keywords inside (12/10)
[Documentation] Check value for serverless cert on CSV
[Tags] Operator RHOAIENG-14530 Smoke ExcludeOnODH
${rc} ${json_derulo}= Run And Return Rc And Output

Check notice

Code scanning / Robocop

Variable '{{ name }}' is assigned but not used Note test

Variable '${rc}' is assigned but not used
... oc get ClusterServiceVersion -l ${OPERATOR_SUBSCRIPTION_LABEL} -n ${OPERATOR_NAMESPACE} -o jsonpath='{.items[].metadata.annotations.operatorframework\\.io/initialization-resource}'

Check warning

Code scanning / Robocop

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

Line is too long (191/120)
Log To Console ${json_derulo}
&{my_dict}= Create Dictionary

Check warning

Code scanning / Robocop

Local variable '{{ name }}' is overwritten before usage Warning test

Local variable '${my_dict}' is overwritten before usage

Check notice

Code scanning / Robocop

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

Create Dictionary can be replaced with VAR
${my_dict}= Load Json String ${json_derulo}

Check notice

Code scanning / Robocop

Variable '{{ variable_name }}' may overwrite similar variable inside '{{ block_name }}' {{ block_type }}. Note that variables are case-insensitive, and also spaces and underscores are ignored. Note test

Variable '${my_dict}' may overwrite similar variable inside 'Check value for serverless cert on CSV' TestCase. Note that variables are case-insensitive, and also spaces and underscores are ignored.
${spec}= Get From Dictionary ${my_dict} spec
${components}= Get From Dictionary ${spec} components
${kserve}= Get From Dictionary ${components} kserve
${serving}= Get From Dictionary ${kserve} serving
${ingressGateway}= Get From Dictionary ${serving} ingressGateway
${certificate}= Get From Dictionary ${ingressGateway} certificate
${type}= Get From Dictionary ${certificate} type
Should Be Equal ${type} OpenshiftDefaultIngress


*** Keywords ***
Suite Setup
Expand Down
Loading