Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
EVEREST-203 Added integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
gen1us2k committed Sep 25, 2023
1 parent a0cf96a commit 2c14063
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cli-tests/tests/flow/pg-operator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,23 @@ test.describe('Everest CLI install operators', async () => {

await page.waitForTimeout(10_000);

await verifyClusterResources();
await apiVerifyClusterExists(request, clusterName);

await test.step('re-run everest install operators command', async () => {
const out = await cli.everestExecSkipWizard(
`install operators --operator.mongodb=false --operator.postgresql=true --operator.xtradb-cluster=true --backup.enable=0 --monitoring.enable=0 --name=${clusterName}`,
);

await out.assertSuccess();
await out.outErrContainsNormalizedMany([
'percona-xtradb-cluster-operator operator has been installed',
'everest-operator operator has been installed',
'Connected Kubernetes cluster to Everest',
]);
});
await page.waitForTimeout(10_000);

await verifyClusterResources();
await apiVerifyClusterExists(request, clusterName);
await cliDeleteCluster(cli, request, clusterName);
Expand Down

0 comments on commit 2c14063

Please sign in to comment.