Skip to content

Commit 66d7b8b

Browse files
committed
chore(respect): switch domain
1 parent 90f9182 commit 66d7b8b

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

.github/workflows/tests.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
run: npm ci
2626
- name: Typecheck
2727
run: npm run typecheck
28+
- name: Compile
29+
run: npm run compile
30+
- name: Respect workflow
31+
run: node packages/cli/lib/index.js respect ./__tests__/respect/workflow-success-actions/workflow-success-actions.arazzo.yaml --verbose
2832
# - name: Unit Tests
2933
# run: npm run unit
3034
- name: E2E Tests

packages/respect-core/src/modules/cli-output/display-checks.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@ function displayCheckInfo(check: Check, severity: RuleSeverity): string {
5555
}
5656

5757
function displayVerboseLogs(logs: VerboseLog, type: 'request' | 'response' = 'request'): string {
58-
const { path, host, headerParams, body, statusCode } = logs;
58+
const { path, host, method, headerParams, body, statusCode } = logs;
5959
const responseTime = process.env.NODE_ENV === 'test' ? '<test>' : logs.responseTime;
6060

6161
const urlString = indent(`Request URL: ${blue(combineUrl(host, path))}`, 4);
62+
const requestMethodString = indent(`Request Method: ${blue(method)}`, 4);
6263
const requestHeadersString = indent(`Request Headers:`, 4);
6364
const responseHeadersString = indent(`Response Headers:`, 4);
6465
const requestBodyString = indent(`Request Body:`, 4);
@@ -81,6 +82,7 @@ function displayVerboseLogs(logs: VerboseLog, type: 'request' | 'response' = 're
8182

8283
const requestOutput = [
8384
logger.printNewLine(),
85+
gray(requestMethodString),
8486
gray(urlString),
8587
headersString && gray(requestHeadersString),
8688
headersString && gray(headersString),

packages/respect-core/src/modules/flow-runner/success-criteria/check-success-criteria.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ export function checkCriteria({
8888
condition: condition,
8989
});
9090
} else {
91+
console.log(`condition`, condition);
92+
console.log(`criteria`, JSON.stringify(criteria));
9193
checks.push({
9294
name: CHECKS.SUCCESS_CRITERIA_CHECK,
9395
passed: evaluateRuntimeExpression(condition, criteriaContext),

packages/respect-core/src/utils/api-fetcher.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ export class ApiFetcher implements IFetcher {
250250
const responseTime = Math.ceil(performance.now() - startTime);
251251
const res = await result.text();
252252

253+
console.log('DEBUGG =>', res);
254+
253255
const [responseContentType] = result.headers.get('content-type')?.split(';') || [
254256
'application/json',
255257
];

0 commit comments

Comments
 (0)