remove /api/v1 and deprecated credential fields

This commit is contained in:
Ryan Petrello
2019-03-12 17:12:16 -04:00
parent 176f8632e5
commit 6da445f7c0
43 changed files with 271 additions and 2211 deletions
@@ -65,7 +65,7 @@ class TestJobTemplateCopyEdit:
return objects.job_template
def fake_context(self, user):
request = RequestFactory().get('/api/v1/resource/42/')
request = RequestFactory().get('/api/v2/resource/42/')
request.user = user
class FakeView(object):
@@ -151,7 +151,7 @@ def mock_access_method(mocker):
class TestAccessListCapabilities:
"""
Test that the access_list serializer shows the exact output of the RoleAccess.can_attach
- looks at /api/v1/inventories/N/access_list/
- looks at /api/v2/inventories/N/access_list/
- test for types: direct, indirect, and team access
"""