mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 04:47:44 -02:30
Bump number of allowed endpoints (#14956)
This commit is contained in:
@@ -99,7 +99,7 @@ class TestSwaggerGeneration:
|
|||||||
# The number of API endpoints changes over time, but let's just check
|
# The number of API endpoints changes over time, but let's just check
|
||||||
# for a reasonable number here; if this test starts failing, raise/lower the bounds
|
# for a reasonable number here; if this test starts failing, raise/lower the bounds
|
||||||
paths = JSON['paths']
|
paths = JSON['paths']
|
||||||
assert 250 < len(paths) < 375
|
assert 250 < len(paths) < 400
|
||||||
assert set(list(paths['/api/'].keys())) == set(['get', 'parameters'])
|
assert set(list(paths['/api/'].keys())) == set(['get', 'parameters'])
|
||||||
assert set(list(paths['/api/v2/'].keys())) == set(['get', 'parameters'])
|
assert set(list(paths['/api/v2/'].keys())) == set(['get', 'parameters'])
|
||||||
assert set(list(sorted(paths['/api/v2/credentials/'].keys()))) == set(['get', 'post', 'parameters'])
|
assert set(list(sorted(paths['/api/v2/credentials/'].keys()))) == set(['get', 'post', 'parameters'])
|
||||||
|
|||||||
Reference in New Issue
Block a user