Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,8 @@ summary:
response:
http:
status_code: 200
expect:
http:
status_code: 200
calls:
- service_id: minimal-mocked-called-at-least-once
http:
method: GET
path: /healthz
calls:
expected_calls:
- service_id: minimal-mocked-called-at-least-once
http:
request:
method: GET
path: /healthz
headers:
Accept-Encoding:
- gzip
User-Agent:
- Go-http-client/1.1
response:
status_code: 200
headers:
Content-Length:
- "0"
Date:
- Wed, 19 Aug 2026 15:16:47 GMT
method: GET
path: /healthz
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ summary:
http:
method: GET
url: http://127.0.0.1:8083/healthz
expect:
http:
status_code: 200
calls:
- service_id: misspelled
http:
method: GET
path: /healthz
expected_calls:
- service_id: misspelled
http:
method: GET
path: /healthz
29 changes: 4 additions & 25 deletions cli/data/called-at-least-once/one-of-two-mocked-not-called.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,11 @@ summary:
response:
http:
status_code: 200
expect:
http:
status_code: 200
calls:
- service_id: not-called
http:
method: GET
path: /healthz
calls:
- service_id: called
expected_calls:
- service_id: not-called
http:
request:
method: GET
path: /healthz
headers:
Accept-Encoding:
- gzip
User-Agent:
- Go-http-client/1.1
response:
status_code: 200
headers:
Content-Length:
- "0"
Date:
- Wed, 19 Aug 2026 15:16:47 GMT
method: GET
path: /healthz
deviations:
- field: calls.not-called.count
expected: "at least 1"
Expand Down
53 changes: 4 additions & 49 deletions cli/data/crud-test/http-real-mocked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,54 +15,9 @@ summary:
http:
status_code: 200
body_json: '{"status":"ok"}'
expect:
http:
status_code: 200
body_json: '{"status":"ok"}'
calls:
- service_id: entitlements
count: 1
http:
method: GET
path: /healthz
calls:
expected_calls:
- service_id: entitlements
count: 1
http:
request:
method: GET
path: /healthz
headers:
Accept-Encoding:
- gzip
User-Agent:
- Go-http-client/1.1
response:
status_code: 200
headers:
Content-Length:
- "15"
Content-Type:
- application/json
Date:
- Wed, 19 Aug 2026 15:16:47 GMT
body_json: '{"status":"ok"}'
- service_id: gateway
http:
request:
method: GET
path: /check
headers:
Accept-Encoding:
- gzip
User-Agent:
- Go-http-client/1.1
response:
status_code: 200
headers:
Content-Length:
- "15"
Content-Type:
- application/json
Date:
- Wed, 19 Aug 2026 15:16:47 GMT
body_json: '{"status":"ok"}'
method: GET
path: /healthz
79 changes: 9 additions & 70 deletions cli/data/crud-testsuite/e2e.tse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,57 +28,16 @@ tests:
http:
status_code: 200
body_json: '{"status":"ok"}'
expect:
http:
status_code: 200
body_json: '{"status":"ok"}'
calls:
- service_id: entitlements
count: 1
http:
method: GET
path: /healthz
calls:
expected_calls:
- service_id: entitlements
count: 1
http:
request:
method: GET
path: /healthz
headers:
Accept-Encoding:
- gzip
User-Agent:
- Go-http-client/1.1
response:
status_code: 200
headers:
Content-Length:
- "15"
Content-Type:
- application/json
Date:
- Wed, 19 Aug 2026 15:16:47 GMT
body_json: '{"status":"ok"}'
method: GET
path: /healthz
- service_id: gateway
http:
request:
method: GET
path: /check
headers:
Accept-Encoding:
- gzip
User-Agent:
- Go-http-client/1.1
response:
status_code: 200
headers:
Content-Length:
- "15"
Content-Type:
- application/json
Date:
- Wed, 19 Aug 2026 15:16:47 GMT
body_json: '{"status":"ok"}'
method: GET
path: /check
- id: f5497dfbbf8392b4828f5323c07e4b5cc8026790caca7b3065350413bebbd4e3
started_at: 2026-08-19T15:16:47.974744Z
finished_at: 2026-08-19T15:16:47.993394Z
Expand All @@ -96,31 +55,11 @@ tests:
http:
status_code: 500
body_json: '{"error":"simulated error response"}'
expect:
http:
status_code: 200
body_json: '{"status":"ok"}'
calls:
expected_calls:
- service_id: gateway
http:
request:
method: GET
path: /error
headers:
Accept-Encoding:
- gzip
User-Agent:
- Go-http-client/1.1
response:
status_code: 500
headers:
Content-Length:
- "37"
Content-Type:
- application/json
Date:
- Wed, 19 Aug 2026 15:16:47 GMT
body_json: '{"error":"simulated error response"}'
method: GET
path: /error
deviations:
- field: status_code
expected: "200"
Expand Down
6 changes: 5 additions & 1 deletion cli/data/crud-testsuite/gateway-calls-entitlements.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@ spec:
count: 1
http:
method: GET
path: /healthz
path: /healthz
- service_id: gateway
http:
method: GET
path: /check
26 changes: 3 additions & 23 deletions cli/data/crud-testsuite/gateway-error.te.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,11 @@ summary:
http:
status_code: 500
body_json: '{"error":"simulated error response"}'
expect:
http:
status_code: 200
body_json: '{"status":"ok"}'
calls:
expected_calls:
- service_id: gateway
http:
request:
method: GET
path: /error
headers:
Accept-Encoding:
- gzip
User-Agent:
- Go-http-client/1.1
response:
status_code: 500
headers:
Content-Length:
- "37"
Content-Type:
- application/json
Date:
- Wed, 19 Aug 2026 15:16:47 GMT
body_json: '{"error":"simulated error response"}'
method: GET
path: /error
deviations:
- field: status_code
expected: "200"
Expand Down
5 changes: 5 additions & 0 deletions cli/data/crud-testsuite/gateway-error.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ spec:
http:
status: 200
body: '{"status":"ok"}'
calls:
- service_id: gateway
http:
method: GET
path: /error
53 changes: 6 additions & 47 deletions cli/data/crud-testsuite/http-real-mocked.te.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,54 +15,13 @@ summary:
http:
status_code: 200
body_json: '{"status":"ok"}'
expect:
http:
status_code: 200
body_json: '{"status":"ok"}'
calls:
- service_id: entitlements
count: 1
http:
method: GET
path: /healthz
calls:
expected_calls:
- service_id: entitlements
count: 1
http:
request:
method: GET
path: /healthz
headers:
Accept-Encoding:
- gzip
User-Agent:
- Go-http-client/1.1
response:
status_code: 200
headers:
Content-Length:
- "15"
Content-Type:
- application/json
Date:
- Wed, 19 Aug 2026 15:16:47 GMT
body_json: '{"status":"ok"}'
method: GET
path: /healthz
- service_id: gateway
http:
request:
method: GET
path: /check
headers:
Accept-Encoding:
- gzip
User-Agent:
- Go-http-client/1.1
response:
status_code: 200
headers:
Content-Length:
- "15"
Content-Type:
- application/json
Date:
- Wed, 19 Aug 2026 15:16:47 GMT
body_json: '{"status":"ok"}'
method: GET
path: /check
Loading
Loading