forked from red-hat-data-services/ods-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: relocate must gather test suite after upgrade tests
- Loading branch information
Showing
4 changed files
with
44 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# robocop: off=wrong-case-in-keyword-name,unnecessary-string-conversion,hyphen-in-variable-name | ||
*** Settings *** | ||
Documentation Tests the must-gather image for ODH/RHOAI | ||
Library Process | ||
Library OperatingSystem | ||
Resource ../../Common.robot | ||
|
||
|
||
*** Keywords *** | ||
Get must-gather Logs | ||
[Documentation] Runs the must-gather image and obtains the ODH/RHOAI logs | ||
${output}= Run process tests/Resources/CLI/MustGather/get-must-gather-logs.sh shell=yes | ||
Should Not Contain ${output.stdout} FAIL | ||
${must-gather-dir}= Run ls -d must-gather.local.* | ||
${namespaces-log-dir}= Run ls -d ${must-gather-dir}/quay-io-modh-must-gather-sha256-*/namespaces | ||
Set Suite Variable ${must-gather-dir} | ||
Set Suite Variable ${namespaces-log-dir} | ||
Directory Should Exist ${must-gather-dir} | ||
Directory Should Not Be Empty ${must-gather-dir} | ||
|
||
Verify Logs For ${namespace} | ||
[Documentation] Verifies the must-gather logs related to a namespace | ||
Directory Should Exist ${namespaces-log-dir}/${namespace} | ||
Directory Should Not Be Empty ${namespaces-log-dir}/${namespace} | ||
Directory Should Not Be Empty ${namespaces-log-dir}/${namespace}/pods | ||
${log-files}= Run find ${namespaces-log-dir}/${namespace}/pods -type f -name "*.log" | ||
Should Not Be Equal ${log-files} ${EMPTY} | ||
|
||
Cleanup must-gather Logs | ||
[Documentation] Deletes the folder with the must-gather logs | ||
Remove Directory ${must-gather-dir} recursive=True |
File renamed without changes.
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