Skip to content

Commit ef9a3ef

Browse files
authored
Automate Fleet-195 bundle hash mistmatch error (#404)
* Automate Fleet-195, bundle hash mistmatch error Signed-off-by: Satyajit Bulage <[email protected]> * Addressed suggested comments * Updated resource count --------- Signed-off-by: Satyajit Bulage <[email protected]>
1 parent b5f8a20 commit ef9a3ef

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

tests/cypress/e2e/unit_tests/p1_fleet.spec.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,3 +563,29 @@ if (!/\/2\.7/.test(Cypress.env('rancher_version')) && !/\/2\.8/.test(Cypress.env
563563
);
564564
});
565565
}
566+
567+
describe('Test GitRepo Bundle do not show hash mismatch error.', { tags: '@p1'}, () => {
568+
569+
qase(195,
570+
it("Fleet-195: Test GitRepo bundle hash is not mismatch.", { tags: '@fleet-195' }, () => {
571+
572+
const repoName = "test-bundle-hash-mistmatch"
573+
const path = "qa-test-apps/bundle-hash-test"
574+
575+
cy.addFleetGitRepo({ repoName, repoUrl, branch, path });
576+
cy.clickButton('Create');
577+
cy.verifyTableRow(0, 'Active', repoName);
578+
cy.checkGitRepoStatus(repoName, '1 / 1', '3 / 3');
579+
580+
// Bundle hash mismatch error will occurs when bundle reconciler,
581+
// reconciles bundle which has long description in Chart.yaml and/or
582+
// resource contains escape chars in there specs.
583+
// See fixed issue: https://github.com/rancher/fleet/issues/3807#issuecomment-3376900740
584+
// Verify that bundle is showing Active state and not showing hash mismatch error.
585+
cy.continuousDeliveryBundlesMenu();
586+
cy.filterInSearchBox(repoName);
587+
cy.verifyTableRow(0, 'Active', repoName);
588+
589+
})
590+
)
591+
});

0 commit comments

Comments
 (0)