Merge "Adapt tests to new messages from jsonschema 4.23.0"

This commit is contained in:
Zuul 2025-01-10 03:17:45 +00:00 committed by Gerrit Code Review
commit 6aa4b359a5
3 changed files with 8 additions and 5 deletions

View File

@ -63,7 +63,8 @@ tests:
status: 400
response_strings:
- JSON does not validate
- does not have enough properties
# jsonschema < 4.23.0 jsonschema >= 4.23.0
- "/(does not have enough properties)|(should be non-empty)/"
- name: put unused field
PUT: /allocations/a0b15655-273a-4b3d-9792-2e579b7d5ad9

View File

@ -62,7 +62,8 @@ tests:
user_id: 66cb2f29-c86d-47c3-8af5-69ae7b778c70
status: 400
response_strings:
- does not have enough properties
# jsonschema < 4.23.0 jsonschema >= 4.23.0
- "/(does not have enough properties)|(should be non-empty)/"
# The next two tests confirm that the bug identified by
# this file's name is not present in the PUT /allocations/{consumer_uuid}
@ -94,4 +95,5 @@ tests:
user_id: 66cb2f29-c86d-47c3-8af5-69ae7b778c70
status: 400
response_strings:
- does not have enough properties
# jsonschema < 4.23.0 jsonschema >= 4.23.0
- "/(does not have enough properties)|(should be non-empty)/"

View File

@ -81,8 +81,8 @@ tests:
user_id: 8c974f9a-f266-42f7-8613-a8017cbfb87F
project_id: b2e599e0-ded8-47fd-b8ab-ceb7fca578bd
status: 400
response_json_paths:
$.errors[0].detail: "/JSON does not validate: {} does not have enough properties/"
response_json_paths: # jsonschema < 4.23.0 jsonschema >= 4.23.0
$.errors[0].detail: "/JSON does not validate: {} (does not have enough properties)|(should be non-empty)/"
- name: post allocation with results
POST: /allocations