Skip to content

Commit eb0cb27

Browse files
committed
Automated disableDependencyUpdate option true false
1 parent 8807931 commit eb0cb27

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

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

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,3 +1630,55 @@ if (!/\/2\.11/.test(Cypress.env('rancher_version'))) {
16301630
)
16311631
});
16321632
}
1633+
1634+
describe('Test helm chart dependency download with `disableDependencyUpdate: true/false`', { tags: '@p1_2'}, () => {
1635+
1636+
qase(129,
1637+
1638+
it("Fleet-129: Test dependency should be downloaded along with the application when `disableDependencyUpdate` is set to `true` in `fleet.yaml`.", { tags: '@fleet-129' }, () => {
1639+
1640+
const repoName = 'test-disable-dependency-false-helm-chart'
1641+
const path = "qa-test-apps/disable-dependency-update/true"
1642+
1643+
cy.addFleetGitRepo({ repoName, repoUrl, branch, path });
1644+
cy.clickButton('Create');
1645+
cy.verifyTableRow(0, 'Active', repoName);
1646+
1647+
// Dependency will not installed, due to which resources count does not include dependencies in it.
1648+
cy.checkGitRepoStatus(repoName, '1 / 1', '18 / 18');
1649+
1650+
// Verify `postgresql` dependency is not installed as `disableDependencyUpdate` is set to `true`.
1651+
dsAllClusterList.forEach(
1652+
(dsCluster) => {
1653+
// 'false' option in below command is used to check the absence of given resource.
1654+
cy.checkApplicationStatus("no-dependency-download-postgresql", dsCluster, 'All Namespaces', false);
1655+
}
1656+
)
1657+
1658+
})
1659+
)
1660+
1661+
qase(130,
1662+
1663+
it("Fleet-130: Test dependency should be downloaded along with the application when `disableDependencyUpdate` is set to `false` in `fleet.yaml`.", { tags: '@fleet-130' }, () => {
1664+
1665+
const repoName = 'test-disable-dependency-true-helm-chart'
1666+
const path = "qa-test-apps/disable-dependency-update/false"
1667+
1668+
cy.addFleetGitRepo({ repoName, repoUrl, branch, path });
1669+
cy.clickButton('Create');
1670+
cy.verifyTableRow(0, 'Active', repoName);
1671+
1672+
// Dependency will get installed, due to which resources count includes dependencies in it.
1673+
cy.checkGitRepoStatus(repoName, '1 / 1', '39 / 39');
1674+
1675+
// Verify `postgresql` dependency is installed as `disableDependencyUpdate` is set to `false`.
1676+
dsAllClusterList.forEach(
1677+
(dsCluster) => {
1678+
cy.checkApplicationStatus("no-dependency-download-postgresql", dsCluster, 'All Namespaces');
1679+
}
1680+
)
1681+
1682+
})
1683+
)
1684+
});

0 commit comments

Comments
 (0)