SMQ-3070 - Fix property based tests (#3078)

Signed-off-by: Felix Gateru <felix.gateru@gmail.com>
This commit is contained in:
Felix Gateru
2025-08-25 17:17:19 +03:00
committed by GitHub
parent ef712443e1
commit 0e1a090f16
7 changed files with 8 additions and 12 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ jobs:
schema: apidocs/openapi/users.yaml
base-url: ${{ env.USERS_URL }}
checks: all
args: '--header "Authorization: Bearer ${{ env.USER_TOKEN }}" --suppress-health-check=filter_too_much --exclude-checks=positive_data_acceptance --phases=examples,stateful'
args: '--header "Authorization: Bearer ${{ env.USER_TOKEN }}" --suppress-health-check=filter_too_much --exclude-checks=positive_data_acceptance --exclude-operation-id=requestPasswordReset --phases=examples,stateful'
- name: Run Groups API tests
if: steps.changes.outputs.groups == 'true'
+4 -3
View File
@@ -133,7 +133,7 @@ test: mocks
define test_api_service
$(eval svc=$(subst test_api_,,$(1)))
@which st > /dev/null || (echo "schemathesis not found, please install it from https://github.com/schemathesis/schemathesis#getting-started" && exit 1)
@which uv > /dev/null || (echo "uv not found, please install it from https://github.com/astral-sh/uv" && exit 1)
@if [ -z "$(USER_TOKEN)" ]; then \
echo "USER_TOKEN is not set"; \
@@ -148,7 +148,7 @@ define test_api_service
fi
@if [ "$(svc)" = "http" ]; then \
st run apidocs/openapi/$(svc).yaml \
uvx schemathesis run apidocs/openapi/$(svc).yaml \
--checks all \
--url $(2) \
--header "Authorization: Client $(CLIENT_SECRET)" \
@@ -156,12 +156,13 @@ define test_api_service
--exclude-checks=positive_data_acceptance \
--phases=examples,stateful; \
else \
st run apidocs/openapi/$(svc).yaml \
uvx schemathesis run apidocs/openapi/$(svc).yaml \
--checks all \
--url $(2) \
--header "Authorization: Bearer $(USER_TOKEN)" \
--suppress-health-check=filter_too_much \
--exclude-checks=positive_data_acceptance \
--exclude-operation-id=requestPasswordReset \
--phases=examples,stateful; \
fi
endef
+1 -1
View File
@@ -306,7 +306,7 @@ components:
parameters:
clientID: $response.body#/client_id
delete:
operationId: revokeCert
operationId: revokeCertBySerial
parameters:
certID: $response.body#/serial
CertsPageRes:
-2
View File
@@ -1089,9 +1089,7 @@ components:
example: 10
description: Maximum number of items to return in one page.
required:
- clients
- total
- offset
ClientUpdate:
type: object
-2
View File
@@ -989,9 +989,7 @@ components:
example: 10
description: Maximum number of items to return in one page.
required:
- domains
- total
- offset
DomainUpdate:
type: object
properties:
-2
View File
@@ -1196,9 +1196,7 @@ components:
example: 10
description: Maximum number of items to return in one page.
required:
- groups
- total
- offset
GroupsHierarchyPage:
type: object
+2 -1
View File
@@ -818,6 +818,7 @@ components:
description: Total number of items.
offset:
type: integer
example: 1
description: Number of items to skip during retrieval.
limit:
type: integer
@@ -826,7 +827,7 @@ components:
required:
- users
- total
- offset
- limit
UserUpdate:
type: object