@camunda/e2e-test-suite 0.0.206 → 0.0.208

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.
@@ -85,7 +85,8 @@ function buildZeebeApiUrl(resourcePath, environmentOverride) {
85
85
  const normalizedPath = resourcePath.startsWith('/')
86
86
  ? resourcePath
87
87
  : `/${resourcePath}`;
88
- const pathWithPrefix = environment === 'sm' ? `/orchestration${normalizedPath}` : normalizedPath;
88
+ const contextPath = process.env.ORCHESTRATION_CONTEXT_PATH ?? '/orchestration';
89
+ const pathWithPrefix = environment === 'sm' ? `${contextPath}${normalizedPath}` : normalizedPath;
89
90
  return `${baseUrl}${pathWithPrefix}`;
90
91
  }
91
92
  async function authAPI(environment, audience = process.env.ZEEBE_API_TOKEN_AUDIENCE) {
@@ -161,9 +162,15 @@ async function deployProcess(filePath, authToken, environment) {
161
162
  apiRequestContext = await getApiRequestContext();
162
163
  const fileContent = fs_1.default.readFileSync(filePath);
163
164
  const fileName = path_1.default.basename(filePath);
165
+ const ext = path_1.default.extname(fileName).toLowerCase();
166
+ const mimeType = ext === '.form'
167
+ ? 'application/json'
168
+ : ext === '.dmn'
169
+ ? 'application/vnd.dmn+xml'
170
+ : 'application/vnd.bpmn+xml';
164
171
  const resources = {
165
172
  name: fileName,
166
- mimeType: 'application/vnd.bpmn+xml',
173
+ mimeType,
167
174
  buffer: fileContent,
168
175
  };
169
176
  const url = buildZeebeApiUrl('/v2/deployments', environment);
@@ -173,6 +180,10 @@ async function deployProcess(filePath, authToken, environment) {
173
180
  },
174
181
  multipart: { resources },
175
182
  });
183
+ if (response.status() !== 200) {
184
+ const body = await response.text();
185
+ console.error(`deployProcess failed for ${fileName}: HTTP ${response.status()} - ${body}`);
186
+ }
176
187
  (0, test_1.expect)(response.status()).toBe(200);
177
188
  const responseJson = await response.json();
178
189
  if (!responseJson.deployments?.[0]?.processDefinition?.processDefinitionKey) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.206",
3
+ "version": "0.0.208",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",