Skip to content

Commit abf7f03

Browse files
TylerJDaocopybara-github
authored andcommitted
Adding back the RHEL Beta RHUI client. Updating the CIT check to reflect that
PiperOrigin-RevId: 914919584
1 parent 95859c3 commit abf7f03

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

test_suites/rhel/rhel_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ func TestRhuiPackage(t *testing.T) {
7575
t.Fatalf("Failed to read image metadata: %v", err)
7676
}
7777

78+
isBeta := utils.IsBeta(image)
7879
isBYOS := utils.IsBYOS(image)
7980
isEUS := utils.IsRHELEUS(image)
8081
isSAP := utils.IsSAP(image)
@@ -88,6 +89,10 @@ func TestRhuiPackage(t *testing.T) {
8889
// For the final point release of a major version for EUS/SAP images, the package appends the
8990
// minor release version.
9091
rhuiClientFinalPackage := rhuiClientPackage + "10"
92+
if isBeta {
93+
rhuiClientPackage = rhuiClientPackage + "-beta"
94+
rhuiClientFinalPackage = rhuiClientPackage + "-beta"
95+
}
9196
if isEUS {
9297
rhuiClientPackage = rhuiClientPackage + "-eus"
9398
rhuiClientFinalPackage = rhuiClientPackage + "-eus"
@@ -101,7 +106,7 @@ func TestRhuiPackage(t *testing.T) {
101106
if err == nil {
102107
t.Errorf("The rhui client package shouldn't still be installed")
103108
}
104-
} else if isEUS || isSAP {
109+
} else if isBeta || isEUS || isSAP {
105110
if !strings.Contains(string(output), rhuiClientPackage) && !strings.Contains(string(output), rhuiClientFinalPackage) {
106111
t.Errorf("The rhui client package is not installed: %s", err)
107112
}

0 commit comments

Comments
 (0)