@camunda/e2e-test-suite 0.0.1428 → 0.0.1429
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tests/8.10/prod-cluster-cleanup.spec.d.ts +1 -0
- package/dist/tests/8.10/prod-cluster-cleanup.spec.js +17 -0
- package/dist/tests/8.11/prod-cluster-cleanup.spec.d.ts +1 -0
- package/dist/tests/8.11/prod-cluster-cleanup.spec.js +17 -0
- package/dist/tests/8.7/prod-cluster-cleanup.spec.d.ts +1 -0
- package/dist/tests/8.7/prod-cluster-cleanup.spec.js +17 -0
- package/dist/tests/8.8/prod-cluster-cleanup.spec.d.ts +1 -0
- package/dist/tests/8.8/prod-cluster-cleanup.spec.js +17 -0
- package/dist/tests/8.9/prod-cluster-cleanup.spec.d.ts +1 -0
- package/dist/tests/8.9/prod-cluster-cleanup.spec.js +17 -0
- package/dist/utils/prodClusterCleanup.d.ts +3 -0
- package/dist/utils/prodClusterCleanup.js +18 -0
- package/package.json +1 -1
- package/playwright.config.ts +8 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const _8_10_1 = require("../../fixtures/8.10");
|
|
4
|
+
const UtilitiesPage_1 = require("../../pages/8.10/UtilitiesPage");
|
|
5
|
+
const users_1 = require("../../utils/users");
|
|
6
|
+
const prodClusterCleanup_1 = require("../../utils/prodClusterCleanup");
|
|
7
|
+
// Runs as its own project after the prod smoke (see the "Delete the clusters"
|
|
8
|
+
// step in .github/actions/run-tests-smoke/action.yml), not as part of the
|
|
9
|
+
// regular suite.
|
|
10
|
+
_8_10_1.test.describe('Prod smoke cleanup', () => {
|
|
11
|
+
(0, _8_10_1.test)('Delete the clusters created by the prod smoke', async ({ page, loginPage, }, testInfo) => {
|
|
12
|
+
_8_10_1.test.skip(process.env.IS_PROD !== 'true', 'Only the prod smoke org has a cluster quota to free up');
|
|
13
|
+
_8_10_1.test.slow();
|
|
14
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, users_1.testUsers.mainUser, (testInfo.workerIndex + 1) * 1000);
|
|
15
|
+
await (0, prodClusterCleanup_1.deleteProdSmokeClusters)(page);
|
|
16
|
+
});
|
|
17
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const _8_11_1 = require("../../fixtures/8.11");
|
|
4
|
+
const UtilitiesPage_1 = require("../../pages/8.11/UtilitiesPage");
|
|
5
|
+
const users_1 = require("../../utils/users");
|
|
6
|
+
const prodClusterCleanup_1 = require("../../utils/prodClusterCleanup");
|
|
7
|
+
// Runs as its own project after the prod smoke (see the "Delete the clusters"
|
|
8
|
+
// step in .github/actions/run-tests-smoke/action.yml), not as part of the
|
|
9
|
+
// regular suite.
|
|
10
|
+
_8_11_1.test.describe('Prod smoke cleanup', () => {
|
|
11
|
+
(0, _8_11_1.test)('Delete the clusters created by the prod smoke', async ({ page, loginPage, }, testInfo) => {
|
|
12
|
+
_8_11_1.test.skip(process.env.IS_PROD !== 'true', 'Only the prod smoke org has a cluster quota to free up');
|
|
13
|
+
_8_11_1.test.slow();
|
|
14
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, users_1.testUsers.mainUser, (testInfo.workerIndex + 1) * 1000);
|
|
15
|
+
await (0, prodClusterCleanup_1.deleteProdSmokeClusters)(page);
|
|
16
|
+
});
|
|
17
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const _8_7_1 = require("../../fixtures/8.7");
|
|
4
|
+
const UtilitiesPage_1 = require("../../pages/8.7/UtilitiesPage");
|
|
5
|
+
const users_1 = require("../../utils/users");
|
|
6
|
+
const prodClusterCleanup_1 = require("../../utils/prodClusterCleanup");
|
|
7
|
+
// Runs as its own project after the prod smoke (see the "Delete the clusters"
|
|
8
|
+
// step in .github/actions/run-tests-smoke/action.yml), not as part of the
|
|
9
|
+
// regular suite.
|
|
10
|
+
_8_7_1.test.describe('Prod smoke cleanup', () => {
|
|
11
|
+
(0, _8_7_1.test)('Delete the clusters created by the prod smoke', async ({ page, loginPage, }, testInfo) => {
|
|
12
|
+
_8_7_1.test.skip(process.env.IS_PROD !== 'true', 'Only the prod smoke org has a cluster quota to free up');
|
|
13
|
+
_8_7_1.test.slow();
|
|
14
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, users_1.testUsers.mainUser, (testInfo.workerIndex + 1) * 1000);
|
|
15
|
+
await (0, prodClusterCleanup_1.deleteProdSmokeClusters)(page);
|
|
16
|
+
});
|
|
17
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const _8_8_1 = require("../../fixtures/8.8");
|
|
4
|
+
const UtilitiesPage_1 = require("../../pages/8.8/UtilitiesPage");
|
|
5
|
+
const users_1 = require("../../utils/users");
|
|
6
|
+
const prodClusterCleanup_1 = require("../../utils/prodClusterCleanup");
|
|
7
|
+
// Runs as its own project after the prod smoke (see the "Delete the clusters"
|
|
8
|
+
// step in .github/actions/run-tests-smoke/action.yml), not as part of the
|
|
9
|
+
// regular suite.
|
|
10
|
+
_8_8_1.test.describe('Prod smoke cleanup', () => {
|
|
11
|
+
(0, _8_8_1.test)('Delete the clusters created by the prod smoke', async ({ page, loginPage, }, testInfo) => {
|
|
12
|
+
_8_8_1.test.skip(process.env.IS_PROD !== 'true', 'Only the prod smoke org has a cluster quota to free up');
|
|
13
|
+
_8_8_1.test.slow();
|
|
14
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, users_1.testUsers.mainUser, (testInfo.workerIndex + 1) * 1000);
|
|
15
|
+
await (0, prodClusterCleanup_1.deleteProdSmokeClusters)(page);
|
|
16
|
+
});
|
|
17
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const _8_9_1 = require("../../fixtures/8.9");
|
|
4
|
+
const UtilitiesPage_1 = require("../../pages/8.9/UtilitiesPage");
|
|
5
|
+
const users_1 = require("../../utils/users");
|
|
6
|
+
const prodClusterCleanup_1 = require("../../utils/prodClusterCleanup");
|
|
7
|
+
// Runs as its own project after the prod smoke (see the "Delete the clusters"
|
|
8
|
+
// step in .github/actions/run-tests-smoke/action.yml), not as part of the
|
|
9
|
+
// regular suite.
|
|
10
|
+
_8_9_1.test.describe('Prod smoke cleanup', () => {
|
|
11
|
+
(0, _8_9_1.test)('Delete the clusters created by the prod smoke', async ({ page, loginPage, }, testInfo) => {
|
|
12
|
+
_8_9_1.test.skip(process.env.IS_PROD !== 'true', 'Only the prod smoke org has a cluster quota to free up');
|
|
13
|
+
_8_9_1.test.slow();
|
|
14
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, users_1.testUsers.mainUser, (testInfo.workerIndex + 1) * 1000);
|
|
15
|
+
await (0, prodClusterCleanup_1.deleteProdSmokeClusters)(page);
|
|
16
|
+
});
|
|
17
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteProdSmokeClusters = exports.PROD_SMOKE_CLUSTER_NAMES = void 0;
|
|
4
|
+
const consoleApiHelpers_1 = require("./consoleApiHelpers");
|
|
5
|
+
// The only clusters the prod smoke creates (test-setup.spec.ts). The prod org
|
|
6
|
+
// allows two trial clusters, so leaving these behind blocks the next run's
|
|
7
|
+
// "Create cluster" button. Delete by exact name only: anything else in the org
|
|
8
|
+
// was not created by this suite and may be someone's manual testing.
|
|
9
|
+
exports.PROD_SMOKE_CLUSTER_NAMES = ['Test Cluster', 'AWS Cluster'];
|
|
10
|
+
async function deleteProdSmokeClusters(page) {
|
|
11
|
+
if (process.env.IS_PROD !== 'true') {
|
|
12
|
+
throw new Error('deleteProdSmokeClusters only runs against the prod smoke org (IS_PROD=true)');
|
|
13
|
+
}
|
|
14
|
+
for (const name of exports.PROD_SMOKE_CLUSTER_NAMES) {
|
|
15
|
+
await (0, consoleApiHelpers_1.deleteClusterViaApi)(page, name);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.deleteProdSmokeClusters = deleteProdSmokeClusters;
|
package/package.json
CHANGED
package/playwright.config.ts
CHANGED
|
@@ -355,7 +355,7 @@ const dependencies = (project: string) => {
|
|
|
355
355
|
};
|
|
356
356
|
|
|
357
357
|
const regularTestIgnore =
|
|
358
|
-
/(?:test-setup|hub-web-modeler-smoke|topology-orchestration-smoke)\.spec\.[jt]s$/;
|
|
358
|
+
/(?:test-setup|prod-cluster-cleanup|hub-web-modeler-smoke|topology-orchestration-smoke)\.spec\.[jt]s$/;
|
|
359
359
|
|
|
360
360
|
export default defineConfig({
|
|
361
361
|
testDir: process.env.MINOR_VERSION
|
|
@@ -406,6 +406,13 @@ export default defineConfig({
|
|
|
406
406
|
use: devices['Desktop Chrome'],
|
|
407
407
|
testMatch: /hub-web-modeler-smoke\.spec\.[jt]s$/,
|
|
408
408
|
},
|
|
409
|
+
{
|
|
410
|
+
// Frees the prod org's cluster quota after the prod smoke. Deliberately
|
|
411
|
+
// has no setup dependency: it must not create the clusters it deletes.
|
|
412
|
+
name: 'prod-cluster-cleanup',
|
|
413
|
+
use: devices['Desktop Chrome'],
|
|
414
|
+
testMatch: /prod-cluster-cleanup\.spec\.[jt]s$/,
|
|
415
|
+
},
|
|
409
416
|
{
|
|
410
417
|
name: 'topology-orchestration',
|
|
411
418
|
use: devices['Desktop Chrome'],
|