mirror of
https://github.com/ansible/awx.git
synced 2026-03-19 01:47:31 -02:30
Update swagger test
This commit is contained in:
@@ -233,7 +233,7 @@ class TaskManager():
|
|||||||
else:
|
else:
|
||||||
if type(task) is WorkflowJob:
|
if type(task) is WorkflowJob:
|
||||||
task.status = 'running'
|
task.status = 'running'
|
||||||
task.send_notification_templates('running') # <----
|
task.send_notification_templates('running')
|
||||||
logger.debug('Transitioning %s to running status.', task.log_format)
|
logger.debug('Transitioning %s to running status.', task.log_format)
|
||||||
schedule_task_manager()
|
schedule_task_manager()
|
||||||
elif not task.supports_isolation() and rampart_group.controller_id:
|
elif not task.supports_isolation() and rampart_group.controller_id:
|
||||||
|
|||||||
@@ -91,7 +91,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) < 300
|
assert 250 < len(paths) < 350
|
||||||
assert list(paths['/api/'].keys()) == ['get']
|
assert list(paths['/api/'].keys()) == ['get']
|
||||||
assert list(paths['/api/v2/'].keys()) == ['get']
|
assert list(paths['/api/v2/'].keys()) == ['get']
|
||||||
assert list(sorted(
|
assert list(sorted(
|
||||||
|
|||||||
Reference in New Issue
Block a user