@camunda/e2e-test-suite 0.0.27 → 0.0.28
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/pages/8.8/ClusterSecretsPage.d.ts +13 -0
- package/dist/pages/8.8/ClusterSecretsPage.js +47 -3
- package/dist/tests/8.8/idp-user-flows.spec.js +54 -23
- package/dist/tests/8.8/test-setup.spec.js +6 -112
- package/dist/utils/connectorSecrets.d.ts +38 -0
- package/dist/utils/connectorSecrets.js +116 -0
- package/package.json +1 -1
|
@@ -9,6 +9,11 @@ declare class ClusterSecretsPage {
|
|
|
9
9
|
readonly deleteConnectorSecretButton: Locator;
|
|
10
10
|
readonly deleteConnectorSecretSubButton: Locator;
|
|
11
11
|
readonly dialog: Locator;
|
|
12
|
+
readonly importButton: Locator;
|
|
13
|
+
readonly fromFileButton: Locator;
|
|
14
|
+
readonly bulkImportTextArea: Locator;
|
|
15
|
+
readonly dialogImportButton: Locator;
|
|
16
|
+
readonly secretsSearchBox: Locator;
|
|
12
17
|
constructor(page: Page);
|
|
13
18
|
deleteConnectorSecretsIfExist(): Promise<void>;
|
|
14
19
|
clickCreateNewSecretButton(): Promise<void>;
|
|
@@ -22,5 +27,13 @@ declare class ClusterSecretsPage {
|
|
|
22
27
|
name: string;
|
|
23
28
|
value: string;
|
|
24
29
|
}[]): Promise<void>;
|
|
30
|
+
assertSecretsOrCreate(secrets: {
|
|
31
|
+
name: string;
|
|
32
|
+
value: string;
|
|
33
|
+
}[]): Promise<void>;
|
|
34
|
+
bulkImportSecrets(secrets: {
|
|
35
|
+
name: string;
|
|
36
|
+
value: string;
|
|
37
|
+
}[]): Promise<void>;
|
|
25
38
|
}
|
|
26
39
|
export { ClusterSecretsPage };
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ClusterSecretsPage = void 0;
|
|
4
4
|
const test_1 = require("@playwright/test");
|
|
5
5
|
const sleep_1 = require("../../utils/sleep");
|
|
6
|
+
const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
|
|
6
7
|
class ClusterSecretsPage {
|
|
7
8
|
page;
|
|
8
9
|
createNewSecretButton;
|
|
@@ -13,6 +14,11 @@ class ClusterSecretsPage {
|
|
|
13
14
|
deleteConnectorSecretButton;
|
|
14
15
|
deleteConnectorSecretSubButton;
|
|
15
16
|
dialog;
|
|
17
|
+
importButton;
|
|
18
|
+
fromFileButton;
|
|
19
|
+
bulkImportTextArea;
|
|
20
|
+
dialogImportButton;
|
|
21
|
+
secretsSearchBox;
|
|
16
22
|
constructor(page) {
|
|
17
23
|
this.page = page;
|
|
18
24
|
this.createNewSecretButton = page.getByRole('button', {
|
|
@@ -32,6 +38,13 @@ class ClusterSecretsPage {
|
|
|
32
38
|
name: 'danger Delete',
|
|
33
39
|
});
|
|
34
40
|
this.dialog = page.getByRole('dialog');
|
|
41
|
+
this.importButton = page.getByRole('button', { name: 'Import', exact: true });
|
|
42
|
+
this.fromFileButton = page.getByText('from File', { exact: true });
|
|
43
|
+
this.bulkImportTextArea = page.locator('[id="env-content-input-secrets-bulk-import"]');
|
|
44
|
+
this.dialogImportButton = this.page
|
|
45
|
+
.getByRole('dialog')
|
|
46
|
+
.getByRole('button', { name: 'Import', exact: true });
|
|
47
|
+
this.secretsSearchBox = page.getByRole('searchbox', { name: 'Filter table' });
|
|
35
48
|
}
|
|
36
49
|
async deleteConnectorSecretsIfExist() {
|
|
37
50
|
try {
|
|
@@ -141,15 +154,46 @@ class ClusterSecretsPage {
|
|
|
141
154
|
});
|
|
142
155
|
}
|
|
143
156
|
async createSetOfSecrets(secrets) {
|
|
157
|
+
await this.bulkImportSecrets(secrets);
|
|
158
|
+
await this.assertSecretsOrCreate(secrets);
|
|
159
|
+
}
|
|
160
|
+
async assertSecretsOrCreate(secrets) {
|
|
144
161
|
for (const secret of secrets) {
|
|
145
162
|
try {
|
|
146
|
-
|
|
147
|
-
await this.
|
|
163
|
+
await (0, test_1.expect)(this.secretsSearchBox).toBeVisible();
|
|
164
|
+
await this.secretsSearchBox.click();
|
|
165
|
+
await this.secretsSearchBox.fill(secret.name);
|
|
166
|
+
const row = this.page.getByRole('row', {
|
|
167
|
+
name: new RegExp(`^${secret.name}\\b`, 'i'),
|
|
168
|
+
});
|
|
169
|
+
await (0, test_1.expect)(row).toBeVisible({ timeout: 5000 });
|
|
148
170
|
}
|
|
149
171
|
catch (error) {
|
|
150
|
-
|
|
172
|
+
console.error(`Creating secret for ${secret.name}`);
|
|
173
|
+
await this.createNewSecret(secret.name, secret.value);
|
|
151
174
|
}
|
|
152
175
|
}
|
|
153
176
|
}
|
|
177
|
+
async bulkImportSecrets(secrets) {
|
|
178
|
+
const mapped = secrets
|
|
179
|
+
.map((secret) => `${secret.name}=${secret.value}`)
|
|
180
|
+
.join('\n');
|
|
181
|
+
await this.importButton.click();
|
|
182
|
+
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.fromFileButton, {
|
|
183
|
+
postAction: async () => {
|
|
184
|
+
await this.importButton.click();
|
|
185
|
+
},
|
|
186
|
+
});
|
|
187
|
+
await this.fromFileButton.click();
|
|
188
|
+
await this.bulkImportTextArea.click();
|
|
189
|
+
await this.bulkImportTextArea.fill(mapped);
|
|
190
|
+
await this.dialogImportButton.click();
|
|
191
|
+
await (0, test_1.expect)(this.page.getByText('Importing secrets...')).not.toBeVisible({
|
|
192
|
+
timeout: 60000,
|
|
193
|
+
});
|
|
194
|
+
await (0, test_1.expect)(this.createNewSecretButton).toBeVisible({
|
|
195
|
+
timeout: 60000,
|
|
196
|
+
});
|
|
197
|
+
}
|
|
154
198
|
}
|
|
155
199
|
exports.ClusterSecretsPage = ClusterSecretsPage;
|
|
@@ -6,6 +6,7 @@ const _setup_1 = require("../../test-setup.js");
|
|
|
6
6
|
const UtilitiesPage_1 = require("../../pages/8.8/UtilitiesPage");
|
|
7
7
|
const randomName_1 = require("../../utils/randomName");
|
|
8
8
|
const fileUpload_1 = require("../../utils/fileUpload");
|
|
9
|
+
const connectorSecrets_1 = require("../../utils/connectorSecrets");
|
|
9
10
|
let idpApplicationName;
|
|
10
11
|
let idpDocumentExtractionTemplateName;
|
|
11
12
|
const unstructuredTestCases = [
|
|
@@ -50,37 +51,43 @@ const structuredTestCases = [
|
|
|
50
51
|
_8_8_1.test.describe.configure({ mode: 'parallel' });
|
|
51
52
|
_8_8_1.test.describe('IDP User Flow Tests', () => {
|
|
52
53
|
const clusterName = 'Test Cluster';
|
|
53
|
-
_8_8_1.test.beforeEach(async ({ page, loginPage, homePage, appsPage, modelerHomePage }, testInfo) => {
|
|
54
|
-
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, (testInfo.workerIndex + 1) * 9000);
|
|
55
|
-
await _8_8_1.test.step('Navigate to Web Modeler', async () => {
|
|
56
|
-
await (0, test_1.expect)(homePage.camundaComponentsButton).toBeVisible({
|
|
57
|
-
timeout: 120000,
|
|
58
|
-
});
|
|
59
|
-
await appsPage.clickCamundaApps();
|
|
60
|
-
await appsPage.clickModeler();
|
|
61
|
-
await (0, test_1.expect)(modelerHomePage.modelerPageBanner).toBeVisible({
|
|
62
|
-
timeout: 120000,
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
await _8_8_1.test.step('Navigate to Cross Component Test Project', async () => {
|
|
66
|
-
await modelerHomePage.clickMessageBanner();
|
|
67
|
-
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
68
|
-
});
|
|
69
|
-
await _8_8_1.test.step('Add an IDP application to the project', async () => {
|
|
70
|
-
await modelerHomePage.clickDiagramTypeDropdown();
|
|
71
|
-
await modelerHomePage.clickIdpApplicationTemplateOption();
|
|
72
|
-
});
|
|
73
|
-
});
|
|
74
54
|
_8_8_1.test.afterEach(async ({ page }, testInfo) => {
|
|
75
55
|
await (0, _setup_1.captureScreenshot)(page, testInfo);
|
|
76
56
|
await (0, _setup_1.captureFailureVideo)(page, testInfo);
|
|
77
57
|
});
|
|
58
|
+
_8_8_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
|
|
59
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, (testInfo.workerIndex + 1) * 1000);
|
|
60
|
+
});
|
|
78
61
|
_8_8_1.test.describe('Unstructured Extraction', () => {
|
|
79
62
|
for (const params of unstructuredTestCases) {
|
|
80
|
-
(0, _8_8_1.test)(`${params.provider} unstructured (${params.model}) - User creates an idp application with a document extraction template`, async ({ page, idpCreatePage, modelerHomePage, }) => {
|
|
63
|
+
(0, _8_8_1.test)(`${params.provider} unstructured (${params.model}) - User creates an idp application with a document extraction template`, async ({ page, idpCreatePage, modelerHomePage, homePage, appsPage, clusterPage, clusterSecretsPage, }) => {
|
|
81
64
|
_8_8_1.test.slow();
|
|
82
65
|
idpApplicationName = await (0, randomName_1.randomNameAgregator)(`${params.provider} unstructured` + ' - IDP_Application_Name');
|
|
83
66
|
idpDocumentExtractionTemplateName = await (0, randomName_1.randomNameAgregator)(`${params.provider} unstructured` + ' - IDP_Extraction_Template_Name');
|
|
67
|
+
await _8_8_1.test.step('Navigate to Connectors Secrets', async () => {
|
|
68
|
+
await homePage.clickClusters();
|
|
69
|
+
await clusterPage.clickClusterLink(clusterName);
|
|
70
|
+
await clusterPage.clickConnectorSecretsTab(clusterName);
|
|
71
|
+
await clusterSecretsPage.assertSecretsOrCreate(connectorSecrets_1.allConnectorSecrets[params.provider]);
|
|
72
|
+
});
|
|
73
|
+
await _8_8_1.test.step('Navigate to Web Modeler', async () => {
|
|
74
|
+
await (0, test_1.expect)(homePage.camundaComponentsButton).toBeVisible({
|
|
75
|
+
timeout: 120000,
|
|
76
|
+
});
|
|
77
|
+
await appsPage.clickCamundaApps();
|
|
78
|
+
await appsPage.clickModeler();
|
|
79
|
+
await (0, test_1.expect)(modelerHomePage.modelerPageBanner).toBeVisible({
|
|
80
|
+
timeout: 120000,
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
await _8_8_1.test.step('Navigate to Cross Component Test Project', async () => {
|
|
84
|
+
await modelerHomePage.clickMessageBanner();
|
|
85
|
+
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
86
|
+
});
|
|
87
|
+
await _8_8_1.test.step('Add an IDP application to the project', async () => {
|
|
88
|
+
await modelerHomePage.clickDiagramTypeDropdown();
|
|
89
|
+
await modelerHomePage.clickIdpApplicationTemplateOption();
|
|
90
|
+
});
|
|
84
91
|
await _8_8_1.test.step('Creates a document extraction template', async () => {
|
|
85
92
|
await modelerHomePage.enterIdpApplicationName(idpApplicationName);
|
|
86
93
|
await modelerHomePage.selectCluster(clusterName);
|
|
@@ -125,10 +132,34 @@ _8_8_1.test.describe('IDP User Flow Tests', () => {
|
|
|
125
132
|
});
|
|
126
133
|
_8_8_1.test.describe('Structured Extraction', () => {
|
|
127
134
|
for (const params of structuredTestCases) {
|
|
128
|
-
(0, _8_8_1.test)(`${params.provider} structured - User creates an idp application with a document extraction template`, async ({ page, idpCreatePage, modelerHomePage, }) => {
|
|
135
|
+
(0, _8_8_1.test)(`${params.provider} structured - User creates an idp application with a document extraction template`, async ({ page, idpCreatePage, modelerHomePage, homePage, appsPage, clusterPage, clusterSecretsPage, }) => {
|
|
129
136
|
_8_8_1.test.slow();
|
|
130
137
|
idpApplicationName = await (0, randomName_1.randomNameAgregator)(`${params.provider} structured` + ' - IDP_Application_Name');
|
|
131
138
|
idpDocumentExtractionTemplateName = await (0, randomName_1.randomNameAgregator)(`${params.provider} structured` + ' - IDP_Extraction_Template_Name');
|
|
139
|
+
await _8_8_1.test.step('Navigate to Connectors Secrets', async () => {
|
|
140
|
+
await homePage.clickClusters();
|
|
141
|
+
await clusterPage.clickClusterLink(clusterName);
|
|
142
|
+
await clusterPage.clickConnectorSecretsTab(clusterName);
|
|
143
|
+
await clusterSecretsPage.assertSecretsOrCreate(connectorSecrets_1.allConnectorSecrets[params.provider]);
|
|
144
|
+
});
|
|
145
|
+
await _8_8_1.test.step('Navigate to Web Modeler', async () => {
|
|
146
|
+
await (0, test_1.expect)(homePage.camundaComponentsButton).toBeVisible({
|
|
147
|
+
timeout: 120000,
|
|
148
|
+
});
|
|
149
|
+
await appsPage.clickCamundaApps();
|
|
150
|
+
await appsPage.clickModeler();
|
|
151
|
+
await (0, test_1.expect)(modelerHomePage.modelerPageBanner).toBeVisible({
|
|
152
|
+
timeout: 120000,
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
await _8_8_1.test.step('Navigate to Cross Component Test Project', async () => {
|
|
156
|
+
await modelerHomePage.clickMessageBanner();
|
|
157
|
+
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
158
|
+
});
|
|
159
|
+
await _8_8_1.test.step('Add an IDP application to the project', async () => {
|
|
160
|
+
await modelerHomePage.clickDiagramTypeDropdown();
|
|
161
|
+
await modelerHomePage.clickIdpApplicationTemplateOption();
|
|
162
|
+
});
|
|
132
163
|
await _8_8_1.test.step('Creates a document extraction template', async () => {
|
|
133
164
|
await modelerHomePage.enterIdpApplicationName(idpApplicationName);
|
|
134
165
|
await modelerHomePage.selectCluster(clusterName);
|
|
@@ -4,113 +4,7 @@ const test_1 = require("@playwright/test");
|
|
|
4
4
|
const _8_8_1 = require("../../fixtures/8.8");
|
|
5
5
|
const _setup_1 = require("../../test-setup.js");
|
|
6
6
|
const sleep_1 = require("../../utils/sleep");
|
|
7
|
-
const
|
|
8
|
-
{
|
|
9
|
-
name: 'endpoint_url',
|
|
10
|
-
value: 'https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test',
|
|
11
|
-
},
|
|
12
|
-
{ name: 'username', value: 'username' },
|
|
13
|
-
{ name: 'password', value: 'password' },
|
|
14
|
-
];
|
|
15
|
-
const awsSecretsValues = [
|
|
16
|
-
{ name: 'IDP_AWS_REGION', value: process.env.IDP_AWS_REGION },
|
|
17
|
-
{ name: 'IDP_AWS_BUCKET_NAME', value: process.env.IDP_AWS_BUCKET_NAME },
|
|
18
|
-
{ name: 'IDP_AWS_SECRETKEY', value: process.env.IDP_AWS_SECRETKEY },
|
|
19
|
-
{ name: 'IDP_AWS_ACCESSKEY', value: process.env.IDP_AWS_ACCESSKEY },
|
|
20
|
-
];
|
|
21
|
-
const openAiSecretsValues = [
|
|
22
|
-
{ name: 'OPENAI_API_KEY', value: process.env.OPENAI_API_KEY },
|
|
23
|
-
{
|
|
24
|
-
name: 'DB_VECTOR_OPENAI_API_KEY',
|
|
25
|
-
value: process.env.DB_VECTOR_OPENAI_API_KEY,
|
|
26
|
-
},
|
|
27
|
-
];
|
|
28
|
-
const gcpSecretsValues = [
|
|
29
|
-
{
|
|
30
|
-
name: 'IDP_GCP_SERVICE_ACCOUNT',
|
|
31
|
-
value: process.env.IDP_GCP_SERVICE_ACCOUNT,
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: 'IDP_GCP_VERTEX_BUCKET_NAME',
|
|
35
|
-
value: process.env.IDP_GCP_VERTEX_BUCKET_NAME,
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
name: 'IDP_GCP_VERTEX_PROJECT_ID',
|
|
39
|
-
value: process.env.IDP_GCP_VERTEX_PROJECT_ID,
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
name: 'IDP_GCP_DOCUMENT_AI_PROJECT_ID',
|
|
43
|
-
value: process.env.IDP_GCP_DOCUMENT_AI_PROJECT_ID,
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
name: 'IDP_GCP_DOCUMENT_AI_PROCESSOR_ID',
|
|
47
|
-
value: process.env.IDP_GCP_DOCUMENT_AI_PROCESSOR_ID,
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
name: 'IDP_GCP_DOCUMENT_AI_REGION',
|
|
51
|
-
value: process.env.IDP_GCP_DOCUMENT_AI_REGION,
|
|
52
|
-
},
|
|
53
|
-
{ name: 'IDP_GCP_VERTEX_REGION', value: process.env.IDP_GCP_VERTEX_REGION },
|
|
54
|
-
];
|
|
55
|
-
const azureSecretsValues = [
|
|
56
|
-
{
|
|
57
|
-
name: 'IDP_AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT',
|
|
58
|
-
value: process.env.IDP_AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT,
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
name: 'IDP_AZURE_DOCUMENT_INTELLIGENCE_KEY',
|
|
62
|
-
value: process.env.IDP_AZURE_DOCUMENT_INTELLIGENCE_KEY,
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
name: 'IDP_AZURE_AI_FOUNDRY_ENDPOINT',
|
|
66
|
-
value: process.env.IDP_AZURE_AI_FOUNDRY_ENDPOINT,
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
name: 'IDP_AZURE_AI_FOUNDRY_KEY',
|
|
70
|
-
value: process.env.IDP_AZURE_AI_FOUNDRY_KEY,
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
name: 'IDP_AZURE_OPEN_AI_ENDPOINT',
|
|
74
|
-
value: process.env.IDP_AZURE_OPEN_AI_ENDPOINT,
|
|
75
|
-
},
|
|
76
|
-
{ name: 'IDP_AZURE_OPEN_AI_KEY', value: process.env.IDP_AZURE_OPEN_AI_KEY },
|
|
77
|
-
{
|
|
78
|
-
name: 'DB_VECTOR_AZURE_OPENAI_ENDPOINT',
|
|
79
|
-
value: process.env.DB_VECTOR_AZURE_OPENAI_ENDPOINT,
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
name: 'DB_VECTOR_AZURE_OPENAI_API_KEY',
|
|
83
|
-
value: process.env.DB_VECTOR_AZURE_OPENAI_API_KEY,
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
name: 'DB_VECTOR_MODEL_DEPLOYMENT_NAME',
|
|
87
|
-
value: process.env.DB_VECTOR_MODEL_DEPLOYMENT_NAME,
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
name: 'DB_VECTOR_AZURE_AI_SEARCH_ENDPOINT',
|
|
91
|
-
value: process.env.DB_VECTOR_AZURE_AI_SEARCH_ENDPOINT,
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
name: 'DB_VECTOR_AZURE_AI_SEARCH_KEY',
|
|
95
|
-
value: process.env.DB_VECTOR_AZURE_AI_SEARCH_KEY,
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: 'DB_VECTOR_AZURE_COSMOS_DB_ENDPOINT',
|
|
99
|
-
value: process.env.DB_VECTOR_AZURE_COSMOS_DB_ENDPOINT,
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
name: 'DB_VECTOR_AZURE_COSMOS_DB_KEY',
|
|
103
|
-
value: process.env.DB_VECTOR_AZURE_COSMOS_DB_KEY,
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: 'DB_VECTOR_AZURE_COSMOS_DB_DATABASE',
|
|
107
|
-
value: process.env.DB_VECTOR_AZURE_COSMOS_DB_DATABASE,
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
name: 'DB_VECTOR_AZURE_COSMOS_DB_CONTAINER',
|
|
111
|
-
value: process.env.DB_VECTOR_AZURE_COSMOS_DB_CONTAINER,
|
|
112
|
-
},
|
|
113
|
-
];
|
|
7
|
+
const connectorSecrets_1 = require("../../utils/connectorSecrets");
|
|
114
8
|
_8_8_1.test.describe.configure({ mode: 'parallel' });
|
|
115
9
|
_8_8_1.test.describe('Cluster Setup Tests', () => {
|
|
116
10
|
_8_8_1.test.beforeEach(async ({ page, loginPage }) => {
|
|
@@ -149,11 +43,11 @@ _8_8_1.test.describe('Cluster Setup Tests', () => {
|
|
|
149
43
|
await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName);
|
|
150
44
|
await clusterDetailsPage.clickCloseModalButton();
|
|
151
45
|
await clusterPage.clickConnectorSecretsTab(clusterName);
|
|
152
|
-
await clusterSecretsPage.createSetOfSecrets(awsSecretsValues);
|
|
153
|
-
await clusterSecretsPage.createSetOfSecrets(openAiSecretsValues);
|
|
154
|
-
await clusterSecretsPage.createSetOfSecrets(gcpSecretsValues);
|
|
155
|
-
await clusterSecretsPage.createSetOfSecrets(azureSecretsValues);
|
|
156
|
-
await clusterSecretsPage.createSetOfSecrets(connectorSecretsValues);
|
|
46
|
+
await clusterSecretsPage.createSetOfSecrets(connectorSecrets_1.awsSecretsValues);
|
|
47
|
+
await clusterSecretsPage.createSetOfSecrets(connectorSecrets_1.openAiSecretsValues);
|
|
48
|
+
await clusterSecretsPage.createSetOfSecrets(connectorSecrets_1.gcpSecretsValues);
|
|
49
|
+
await clusterSecretsPage.createSetOfSecrets(connectorSecrets_1.azureSecretsValues);
|
|
50
|
+
await clusterSecretsPage.createSetOfSecrets(connectorSecrets_1.connectorSecretsValues);
|
|
157
51
|
});
|
|
158
52
|
(0, _8_8_1.test)('Create AWS Cluster', async ({ homePage, clusterPage, clusterDetailsPage, }) => {
|
|
159
53
|
_8_8_1.test.slow();
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const awsSecretsValues: {
|
|
2
|
+
name: string;
|
|
3
|
+
value: string;
|
|
4
|
+
}[];
|
|
5
|
+
export declare const openAiSecretsValues: {
|
|
6
|
+
name: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}[];
|
|
9
|
+
export declare const gcpSecretsValues: {
|
|
10
|
+
name: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}[];
|
|
13
|
+
export declare const azureSecretsValues: {
|
|
14
|
+
name: string;
|
|
15
|
+
value: string;
|
|
16
|
+
}[];
|
|
17
|
+
export declare const connectorSecretsValues: {
|
|
18
|
+
name: string;
|
|
19
|
+
value: string;
|
|
20
|
+
}[];
|
|
21
|
+
export declare const allConnectorSecrets: {
|
|
22
|
+
AWS: {
|
|
23
|
+
name: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}[];
|
|
26
|
+
GCP: {
|
|
27
|
+
name: string;
|
|
28
|
+
value: string;
|
|
29
|
+
}[];
|
|
30
|
+
Azure: {
|
|
31
|
+
name: string;
|
|
32
|
+
value: string;
|
|
33
|
+
}[];
|
|
34
|
+
Connectors: {
|
|
35
|
+
name: string;
|
|
36
|
+
value: string;
|
|
37
|
+
}[];
|
|
38
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.allConnectorSecrets = exports.connectorSecretsValues = exports.azureSecretsValues = exports.gcpSecretsValues = exports.openAiSecretsValues = exports.awsSecretsValues = void 0;
|
|
4
|
+
exports.awsSecretsValues = [
|
|
5
|
+
{ name: 'IDP_AWS_REGION', value: process.env.IDP_AWS_REGION },
|
|
6
|
+
{ name: 'IDP_AWS_BUCKET_NAME', value: process.env.IDP_AWS_BUCKET_NAME },
|
|
7
|
+
{ name: 'IDP_AWS_SECRETKEY', value: process.env.IDP_AWS_SECRETKEY },
|
|
8
|
+
{ name: 'IDP_AWS_ACCESSKEY', value: process.env.IDP_AWS_ACCESSKEY },
|
|
9
|
+
];
|
|
10
|
+
exports.openAiSecretsValues = [
|
|
11
|
+
{ name: 'OPENAI_API_KEY', value: process.env.OPENAI_API_KEY },
|
|
12
|
+
{
|
|
13
|
+
name: 'DB_VECTOR_OPENAI_API_KEY',
|
|
14
|
+
value: process.env.DB_VECTOR_OPENAI_API_KEY,
|
|
15
|
+
},
|
|
16
|
+
];
|
|
17
|
+
exports.gcpSecretsValues = [
|
|
18
|
+
{
|
|
19
|
+
name: 'IDP_GCP_SERVICE_ACCOUNT',
|
|
20
|
+
value: process.env.IDP_GCP_SERVICE_ACCOUNT,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'IDP_GCP_VERTEX_BUCKET_NAME',
|
|
24
|
+
value: process.env.IDP_GCP_VERTEX_BUCKET_NAME,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'IDP_GCP_VERTEX_PROJECT_ID',
|
|
28
|
+
value: process.env.IDP_GCP_VERTEX_PROJECT_ID,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'IDP_GCP_DOCUMENT_AI_PROJECT_ID',
|
|
32
|
+
value: process.env.IDP_GCP_DOCUMENT_AI_PROJECT_ID,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'IDP_GCP_DOCUMENT_AI_PROCESSOR_ID',
|
|
36
|
+
value: process.env.IDP_GCP_DOCUMENT_AI_PROCESSOR_ID,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'IDP_GCP_DOCUMENT_AI_REGION',
|
|
40
|
+
value: process.env.IDP_GCP_DOCUMENT_AI_REGION,
|
|
41
|
+
},
|
|
42
|
+
{ name: 'IDP_GCP_VERTEX_REGION', value: process.env.IDP_GCP_VERTEX_REGION },
|
|
43
|
+
];
|
|
44
|
+
exports.azureSecretsValues = [
|
|
45
|
+
{
|
|
46
|
+
name: 'IDP_AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT',
|
|
47
|
+
value: process.env.IDP_AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'IDP_AZURE_DOCUMENT_INTELLIGENCE_KEY',
|
|
51
|
+
value: process.env.IDP_AZURE_DOCUMENT_INTELLIGENCE_KEY,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'IDP_AZURE_AI_FOUNDRY_ENDPOINT',
|
|
55
|
+
value: process.env.IDP_AZURE_AI_FOUNDRY_ENDPOINT,
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'IDP_AZURE_AI_FOUNDRY_KEY',
|
|
59
|
+
value: process.env.IDP_AZURE_AI_FOUNDRY_KEY,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'IDP_AZURE_OPEN_AI_ENDPOINT',
|
|
63
|
+
value: process.env.IDP_AZURE_OPEN_AI_ENDPOINT,
|
|
64
|
+
},
|
|
65
|
+
{ name: 'IDP_AZURE_OPEN_AI_KEY', value: process.env.IDP_AZURE_OPEN_AI_KEY },
|
|
66
|
+
{
|
|
67
|
+
name: 'DB_VECTOR_AZURE_OPENAI_ENDPOINT',
|
|
68
|
+
value: process.env.DB_VECTOR_AZURE_OPENAI_ENDPOINT,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'DB_VECTOR_AZURE_OPENAI_API_KEY',
|
|
72
|
+
value: process.env.DB_VECTOR_AZURE_OPENAI_API_KEY,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: 'DB_VECTOR_MODEL_DEPLOYMENT_NAME',
|
|
76
|
+
value: process.env.DB_VECTOR_MODEL_DEPLOYMENT_NAME,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'DB_VECTOR_AZURE_AI_SEARCH_ENDPOINT',
|
|
80
|
+
value: process.env.DB_VECTOR_AZURE_AI_SEARCH_ENDPOINT,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'DB_VECTOR_AZURE_AI_SEARCH_KEY',
|
|
84
|
+
value: process.env.DB_VECTOR_AZURE_AI_SEARCH_KEY,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: 'DB_VECTOR_AZURE_COSMOS_DB_ENDPOINT',
|
|
88
|
+
value: process.env.DB_VECTOR_AZURE_COSMOS_DB_ENDPOINT,
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'DB_VECTOR_AZURE_COSMOS_DB_KEY',
|
|
92
|
+
value: process.env.DB_VECTOR_AZURE_COSMOS_DB_KEY,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'DB_VECTOR_AZURE_COSMOS_DB_DATABASE',
|
|
96
|
+
value: process.env.DB_VECTOR_AZURE_COSMOS_DB_DATABASE,
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: 'DB_VECTOR_AZURE_COSMOS_DB_CONTAINER',
|
|
100
|
+
value: process.env.DB_VECTOR_AZURE_COSMOS_DB_CONTAINER,
|
|
101
|
+
},
|
|
102
|
+
];
|
|
103
|
+
exports.connectorSecretsValues = [
|
|
104
|
+
{
|
|
105
|
+
name: 'endpoint_url',
|
|
106
|
+
value: 'https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test',
|
|
107
|
+
},
|
|
108
|
+
{ name: 'username', value: 'username' },
|
|
109
|
+
{ name: 'password', value: 'password' },
|
|
110
|
+
];
|
|
111
|
+
exports.allConnectorSecrets = {
|
|
112
|
+
AWS: exports.awsSecretsValues,
|
|
113
|
+
GCP: exports.gcpSecretsValues,
|
|
114
|
+
Azure: [...exports.azureSecretsValues, ...exports.openAiSecretsValues],
|
|
115
|
+
Connectors: exports.connectorSecretsValues,
|
|
116
|
+
};
|