Skip to content

Commit 4f2ef34

Browse files
authored
Add specific 4.20 unit tests for lifecycle test (#3313)
1 parent 0dae870 commit 4f2ef34

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pkg/compatibility/compatibility_test.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,21 @@ func TestIsRHCOSCompatible(t *testing.T) {
214214
testMachineVersion: "4.16.0-rc.1",
215215
expectedOutput: true,
216216
},
217+
{ // Test Case #8 - OCP 4.20.2 accepts RHCOS version 4.20.2, pass
218+
testOCPVersion: "4.20.2",
219+
testMachineVersion: "4.20.2",
220+
expectedOutput: true,
221+
},
222+
{ // Test Case #9 - OCP 4.20.2 accepts RHCOS version 4.20.0, pass
223+
testOCPVersion: "4.20.2",
224+
testMachineVersion: "4.20.0",
225+
expectedOutput: true,
226+
},
227+
{ // Test Case #10 - OCP 4.20.0 accepts RHCOS version 4.20.2, pass
228+
testOCPVersion: "4.20.0",
229+
testMachineVersion: "4.20.2",
230+
expectedOutput: true,
231+
},
217232
}
218233

219234
for _, tc := range testCases {

0 commit comments

Comments
 (0)