Skip to content

Commit

Permalink
ci/ui: install dev os channel if stable operator
Browse files Browse the repository at this point in the history
  • Loading branch information
juadk committed Nov 2, 2023
1 parent ddf4114 commit 85c08f9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
14 changes: 10 additions & 4 deletions tests/cypress/latest/e2e/unit_tests/upgrade.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,18 @@ describe('Upgrade tests', () => {
});

filterTests(['upgrade'], () => {
// Add dev OS Version Channel if stable operator is installed
if (utils.isOperatorVersion('registry.suse.com')) {
it('Add dev channel for RKE2 upgrade', () => {
cy.addOsVersionChannel('dev');
})
}

qase(33,
it('Check OS Versions', () => {
cy.clickNavMenu(["Advanced", "OS Versions"]);
if (utils.isOperatorVersion('dev') || utils.isOperatorVersion('staging')) {
cy.contains(new RegExp('Active.*-iso-unstable'), {timeout: 120000})
}
//if (utils.isOperatorVersion('dev') || utils.isOperatorVersion('staging')) {
cy.contains(new RegExp('Active.*-iso-unstable'), {timeout: 120000})
})
);

Expand Down Expand Up @@ -138,7 +144,7 @@ describe('Upgrade tests', () => {
);

qase(37,
it('Delete OS Versions Channels', () => {
it.skip('Delete OS Versions Channels', () => {
cy.clickNavMenu(["Advanced", "OS Version Channels"]);
cy.deleteAllResources();
cy.clickNavMenu(["Advanced", "OS Versions"]);
Expand Down
4 changes: 2 additions & 2 deletions tests/cypress/latest/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,9 @@ Cypress.Commands.add('checkLabelSize', (sizeToCheck) => {

// Add an OS version channel
Cypress.Commands.add('addOsVersionChannel', (channelVersion) => {
let channelRepo = `registry.opensuse.org/isv/rancher/elemental/${channelVersion}/containers/rancher/elemental-teal-channel:latest`;
let channelRepo = `registry.opensuse.org/isv/rancher/elemental/${channelVersion}/containers/rancher/elemental-channel:latest`;
if (channelVersion == "stable") {
channelRepo = 'registry.suse.com/rancher/elemental-teal-channel:latest';
channelRepo = 'registry.suse.com/rancher/elemental-channel:latest';
}
cy.clickNavMenu(["Advanced", "OS Version Channels"]);
cy.getBySel('masthead-create')
Expand Down

0 comments on commit 85c08f9

Please sign in to comment.