Skip to content

Commit 05b8025

Browse files
committed
Automated disableDependencyUpdate option true false
1 parent 44d946a commit 05b8025

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

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

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

0 commit comments

Comments
 (0)