mirror of
https://github.com/ansible/awx.git
synced 2026-02-13 10:24:40 -03:30
add API versioning for /api/v2/
This commit is contained in:
@@ -4,7 +4,7 @@ import pytest
|
||||
from collections import namedtuple
|
||||
|
||||
from awx.api.views import (
|
||||
ApiV1RootView,
|
||||
ApiVersionRootView,
|
||||
JobTemplateLabelList,
|
||||
JobTemplateSurveySpec,
|
||||
)
|
||||
@@ -17,7 +17,7 @@ def mock_response_new(mocker):
|
||||
return m
|
||||
|
||||
|
||||
class TestApiV1RootView:
|
||||
class TestApiRootView:
|
||||
def test_get_endpoints(self, mocker, mock_response_new):
|
||||
endpoints = [
|
||||
'authtoken',
|
||||
@@ -51,7 +51,7 @@ class TestApiV1RootView:
|
||||
'workflow_job_templates',
|
||||
'workflow_jobs',
|
||||
]
|
||||
view = ApiV1RootView()
|
||||
view = ApiVersionRootView()
|
||||
ret = view.get(mocker.MagicMock())
|
||||
|
||||
assert ret == mock_response_new
|
||||
|
||||
Reference in New Issue
Block a user