Skip to content
Merged
Show file tree
Hide file tree
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
19 changes: 19 additions & 0 deletions test/resources/microshift-rpm.resource
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,22 @@ Get Version Of MicroShift RPM
# 4.15.0_0.nightly_2023_11_01_080931_20231103152813_3f5593fca_dirty-1.el9.x86_64
${version_string}= Strip String ${version_string_raw}
RETURN ${version_string}

Verify MicroShift RPM Install
[Documentation] Run 'rpm -V' package verification command
... on all the installed MicroShift RPM packages.
# The ostree-based file system does not preserve modification
# times of the installed files
${is_ostree}= Is System OSTree
IF ${is_ostree}
${nomtime}= Set Variable --nomtime
ELSE
${nomtime}= Set Variable ${EMPTY}
END

${stdout} ${stderr} ${rc}= SSHLibrary.Execute Command
... rpm -qa microshift\* | xargs -I {} bash -c 'echo {}; sudo rpm -V ${nomtime} {}'
... sudo=True return_rc=True return_stdout=True return_stderr=True
Log ${stdout}
Log ${stderr}
Should Be Equal As Integers 0 ${rc}
2 changes: 2 additions & 0 deletions test/suites/optional/multus.robot
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Documentation Tests for Multus and Bridge plugin on MicroShift
Resource ../../resources/common.resource
Resource ../../resources/multus.resource
Resource ../../resources/microshift-process.resource
Resource ../../resources/microshift-rpm.resource

Suite Setup Setup
Suite Teardown Teardown Suite With Namespace
Expand Down Expand Up @@ -116,6 +117,7 @@ Setup
Should Be True ${len}>=2
Set Suite Variable ${MACVLAN_MASTER} ${enps[0]}
Set Suite Variable ${IPVLAN_MASTER} ${enps[1]}
Verify MicroShift RPM Install

Template And Create NAD And Pod
[Documentation] Template NAD and create it along with Pod
Expand Down
2 changes: 2 additions & 0 deletions test/suites/optional/olm.robot
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Documentation Operator Lifecycle Manager on MicroShift

Resource ../../resources/common.resource
Resource ../../resources/microshift-process.resource
Resource ../../resources/microshift-rpm.resource

Suite Setup Setup
Suite Teardown Teardown
Expand Down Expand Up @@ -44,6 +45,7 @@ Setup
Check Required Env Variables
Login MicroShift Host
Setup Kubeconfig
Verify MicroShift RPM Install

Teardown
[Documentation] Test suite teardown
Expand Down
1 change: 1 addition & 0 deletions test/suites/standard1/version.robot
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Setup
Login MicroShift Host
Setup Kubeconfig
Read Expected Versions
Verify MicroShift RPM Install

Teardown
[Documentation] Test suite teardown
Expand Down