Skip to content

Commit eb36192

Browse files
authored
Automated disableDependencyUpdate option true/false to download or ignore dependency of Helm Chart. (#420)
* Automated disableDependencyUpdate option true false * Removed extra spaces as suggested
1 parent 44d946a commit eb36192

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

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

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,3 +1575,52 @@ if (!/\/2\.11/.test(Cypress.env('rancher_version'))) {
15751575
)
15761576
});
15771577
}
1578+
1579+
describe('Test helm chart dependency download with `disableDependencyUpdate: true/false`', { tags: '@p1_2'}, () => {
1580+
1581+
qase(129,
1582+
it("Fleet-129: Test dependency should be downloaded along with the application when `disableDependencyUpdate` is set to `true` in `fleet.yaml`.", { tags: '@fleet-129' }, () => {
1583+
1584+
const repoName = 'test-disable-dependency-false-helm-chart'
1585+
const path = "qa-test-apps/disable-dependency-update/true"
1586+
1587+
cy.addFleetGitRepo({ repoName, repoUrl, branch, path });
1588+
cy.clickButton('Create');
1589+
cy.verifyTableRow(0, 'Active', repoName);
1590+
1591+
// Dependency will not installed, due to which resources count does not include dependencies in it.
1592+
cy.checkGitRepoStatus(repoName, '1 / 1', '18 / 18');
1593+
1594+
// Verify `postgresql` dependency is not installed as `disableDependencyUpdate` is set to `true`.
1595+
dsAllClusterList.forEach(
1596+
(dsCluster) => {
1597+
// 'false' option in below command is used to check the absence of given resource.
1598+
cy.checkApplicationStatus("no-dependency-download-postgresql", dsCluster, 'All Namespaces', false);
1599+
}
1600+
)
1601+
})
1602+
)
1603+
1604+
qase(130,
1605+
it("Fleet-130: Test dependency should be downloaded along with the application when `disableDependencyUpdate` is set to `false` in `fleet.yaml`.", { tags: '@fleet-130' }, () => {
1606+
1607+
const repoName = 'test-disable-dependency-true-helm-chart'
1608+
const path = "qa-test-apps/disable-dependency-update/false"
1609+
const timeout = 40000
1610+
1611+
cy.addFleetGitRepo({ repoName, repoUrl, branch, path });
1612+
cy.clickButton('Create');
1613+
cy.verifyTableRow(0, 'Active', repoName);
1614+
1615+
// Dependency will get installed, due to which resources count includes dependencies in it.
1616+
cy.checkGitRepoStatus(repoName, '1 / 1', '39 / 39', timeout);
1617+
1618+
// Verify `postgresql` dependency is installed as `disableDependencyUpdate` is set to `false`.
1619+
dsAllClusterList.forEach(
1620+
(dsCluster) => {
1621+
cy.checkApplicationStatus("no-dependency-download-postgresql", dsCluster, 'All Namespaces');
1622+
}
1623+
)
1624+
})
1625+
)
1626+
});

0 commit comments

Comments
 (0)