Skip to content

Commit ff8eb1a

Browse files
committed
ci/ui: fix rke2 ui upgrade test
1 parent bb6f446 commit ff8eb1a

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.github/workflows/ui-rke2-upgrade-matrix.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
fail-fast: false
3838
max-parallel: 4
3939
matrix:
40-
k8s_downstream_version: ${{ fromJSON(format('[{0}]', inputs.k8s_downstream_version || '"v1.30.4+rke2r1"')) }}
41-
k8s_upstream_version: ${{ fromJSON(format('[{0}]', inputs.k8s_upstream_version || '"v1.30.4+rke2r1"')) }}
40+
k8s_downstream_version: ${{ fromJSON(format('[{0}]', inputs.k8s_downstream_version || '"v1.30.6+rke2r1"')) }}
41+
k8s_upstream_version: ${{ fromJSON(format('[{0}]', inputs.k8s_upstream_version || '"v1.30.6+rke2r1"')) }}
4242
rancher_version: ${{ fromJSON(format('[{0}]', inputs.rancher_version || '"prime/latest","latest/devel/2.9","latest/devel/2.10"')) }}
4343
uses: ./.github/workflows/master_e2e.yaml
4444
secrets:

tests/cypress/latest/support/commands.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,5 +392,5 @@ Cypress.Commands.add('addOsVersionChannel', (channelVersion: string) => {
392392
cy.wait(10000);
393393

394394
// Make sure the new channel is in Active state
395-
cy.contains("Active " + channelVersion + "-channel", { timeout: 50000 });
395+
cy.contains(new RegExp('Active.*'+channelVersion+'-channel'), { timeout: 50000 });
396396
});

tests/cypress/latest/support/utils.ts

+7
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ export const createCluster = (clusterName: string, k8sVersion: string, proxy: st
6666
.type('My Elemental testing cluster');
6767
cy.contains('.labeled-input.create', 'Machine Count')
6868
.clear()
69+
// Do not use Calico for RKE2 2.10, there is a bug
70+
if (isK8sVersion('rke2') && isRancherManagerVersion('2.10')) {
71+
cy.getBySel('cluster-rke2-cni-select')
72+
.click();
73+
cy.contains('canal')
74+
.click();
75+
}
6976
if (isCypressTag('main')) {
7077
cy.contains('.labeled-input.create', 'Machine Count')
7178
.type('3');

0 commit comments

Comments
 (0)