-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update GPU add-on testing for new SKU (#412)
* Update GPU add-on testing for new SKU Signed-off-by: Luca Giorgi <[email protected]> * bump CUDA version Signed-off-by: Luca Giorgi <[email protected]> * Cleanup post-install TC Signed-off-by: Luca Giorgi <[email protected]> * shift to openshiftlibrary Signed-off-by: Luca Giorgi <[email protected]> * update variable capitalization Signed-off-by: Luca Giorgi <[email protected]> * update argument capitalization Signed-off-by: Luca Giorgi <[email protected]>
- Loading branch information
Showing
5 changed files
with
50 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,50 @@ | ||
*** Settings *** | ||
Documentation Set of Keywords for OCP checks | ||
Library OpenShiftCLI | ||
Library OpenShiftLibrary | ||
|
||
|
||
*** Keywords *** | ||
Verify DaemonSet Status | ||
[Documentation] Verifies that a DaemonSet exists, and that the number | ||
... of available pods matches the number of desired pods | ||
[Arguments] ${label} ${DSName} | ||
@{DS_obj} = OpenShiftCLI.Get kind=DaemonSet label_selector=${label} | ||
&{DS_obj_dictionary} = Set Variable ${DS_obj}[0] | ||
Should Match ${DS_obj_dictionary.metadata.name} ${DSName} | ||
Should Be Equal ${DS_obj_dictionary.status.desiredNumberScheduled} ${DS_obj_dictionary.status.numberAvailable} | ||
[Arguments] ${label} ${dsname} | ||
@{ds_obj} = OpenShiftLibrary.Oc Get kind=DaemonSet label_selector=${label} | ||
&{ds_obj_dictionary} = Set Variable ${ds_obj}[0] | ||
Should Match ${ds_obj_dictionary.metadata.name} ${dsname} | ||
Should Be Equal ${ds_obj_dictionary.status.desiredNumberScheduled} ${ds_obj_dictionary.status.numberAvailable} | ||
|
||
Verify Deployment Status | ||
[Documentation] Verifies that a Deployment exists, and that its status | ||
... is "Available" | ||
[Arguments] ${label} ${DName} | ||
@{D_obj} = OpenShiftCLI.Get kind=Deployment label_selector=${label} | ||
&{D_obj_dictionary} = Set Variable ${D_obj}[0] | ||
Should Match ${D_obj_dictionary.metadata.name} ${DName} | ||
Should Be Equal ${D_obj_dictionary.status.conditions[0].type} Available | ||
[Arguments] ${label} ${dname} | ||
@{d_obj} = OpenShiftLibrary.Oc Get kind=Deployment label_selector=${label} | ||
&{d_obj_dictionary} = Set Variable ${d_obj}[0] | ||
Should Match ${d_obj_dictionary.metadata.name} ${dname} | ||
Should Be Equal ${d_obj_dictionary.status.conditions[0].type} Available | ||
|
||
Verify Operator Status | ||
[Documentation] Verifies that an Operator exists, that its status | ||
... is "Succeeded" and that the name matches | ||
[Arguments] ${label} ${operator_name} | ||
@{Op_obj} = OpenShiftCLI.Get kind=ClusterServiceVersion label_selector=${label} | ||
&{Op_obj_dictionary} = Set Variable ${Op_obj}[0] | ||
Should Match ${Op_obj_dictionary.metadata.name} ${operator_name} | ||
Should Be Equal ${Op_obj_dictionary.status.phase} Succeeded | ||
@{op_obj} = OpenShiftLibrary.Oc Get kind=ClusterServiceVersion label_selector=${label} | ||
&{op_obj_dictionary} = Set Variable ${op_obj}[0] | ||
Should Match ${op_obj_dictionary.metadata.name} ${operator_name} | ||
Should Be Equal ${op_obj_dictionary.status.phase} Succeeded | ||
|
||
Verify Namespace Status | ||
[Documentation] Verifies that a Namespace exists, and that its status | ||
... is "Active" | ||
[Arguments] ${label} | ||
@{NS_obj} = OpenShiftCLI.Get kind=Namespace label_selector=${label} | ||
&{NS_obj_dictionary} = Set Variable ${NS_obj}[0] | ||
Should Be Equal ${NS_obj_dictionary.status.phase} Active | ||
@{ns_obj} = OpenShiftLibrary.Oc Get kind=Namespace label_selector=${label} | ||
&{ns_obj_dictionary} = Set Variable ${ns_obj}[0] | ||
Should Be Equal ${ns_obj_dictionary.status.phase} Active | ||
|
||
Verify CR Status | ||
[Documentation] Verifies that a CR exists, that it's available | ||
... and that the name matches | ||
[Arguments] ${crd} ${cr_name} | ||
@{cr_obj} = OpenShiftLibrary.Oc Get kind=${crd} | ||
&{cr_obj_dictionary} = Set Variable ${cr_obj}[0] | ||
Should Match ${cr_obj_dictionary.metadata.name} ${cr_name} | ||
Should Be Equal ${cr_obj_dictionary.status.conditions[0].type} Available | ||
Should Be Equal ${cr_obj_dictionary.status.conditions[0].status} True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters