Commit 6e24cfbd authored by fabian serin's avatar fabian serin
Browse files

skipping test until fast api fix (related ticket 765176)

parent c6ccbb28
Pipeline #50694 failed with stages
in 13 minutes and 26 seconds
......@@ -62,5 +62,24 @@ def test_api_spec(openapi_json):
assert False, f"{OPENAPI_PATH} has changed, commit the updated file"
def test_api_spec_for_duplicates(openapi_json):
# Check operationId for all paths are different
# structure is
# root
# + paths
# + url for instance "/alpha/ddms/v2/logs/{record_id}/data"
# + method for instance get, post, ...
# + operationId
path_dict = openapi_json.get("paths", None)
operation_id_set = set()
assert path_dict is not None
for url, url_dict in path_dict.items():
for method, method_dict in url_dict.items():
operation_id = method_dict.get("operationId", None)
assert operation_id not in operation_id_set, f"{method}:{url} {operation_id} already defined"
operation_id_set.add(operation_id)
@pytest.mark.skip(reason="Generated open api is not correct due to exclusiMinimum fast api open bug")
def test_open_api_validity(openapi_json):
validate_spec(openapi_json)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment