Skip to content

Commit

Permalink
Remove credentials api/v1 and references to program_id field
Browse files Browse the repository at this point in the history
ECOM-6762
  • Loading branch information
MatthewPiatetsky authored and Renzo Lucioni committed Feb 21, 2017
1 parent 54e7533 commit a985649
Show file tree
Hide file tree
Showing 23 changed files with 209 additions and 1,355 deletions.
4 changes: 2 additions & 2 deletions acceptance_tests/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def str2bool(s):
except AttributeError:
raise RuntimeError('You must provide a valid URL root for the Credentials Service to run acceptance tests.')

CREDENTIALS_API_URL = os.environ.get('CREDENTIALS_API_URL', CREDENTIALS_ROOT_URL + '/api/v1/')
PROGRAM_ID = os.environ.get('PROGRAM_ID', 1)
CREDENTIALS_API_URL = os.environ.get('CREDENTIALS_API_URL', CREDENTIALS_ROOT_URL + '/api/v2/')
PROGRAM_UUID = os.environ.get('PROGRAM_UUID')

# LMS CONFIGURATION
try:
Expand Down
6 changes: 3 additions & 3 deletions acceptance_tests/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ def credential_api_client(self):

def create_credential(self):
"""Create user credential for a program."""
self.data = self.credential_api_client.user_credentials.post({
self.data = self.credential_api_client.credentials.post({
'username': config.LMS_USERNAME,
'credential': {'program_id': config.PROGRAM_ID},
'credential': {'program_uuid': config.PROGRAM_UUID},
'attributes': []
})

def change_credential_status(self, status):
"""Update the credential status to awarded or revoked."""
self.data['status'] = status
self.credential_api_client.user_credentials(self.data['id']).patch(self.data)
self.credential_api_client.credentials(self.data['id']).patch(self.data)
17 changes: 0 additions & 17 deletions credentials/apps/api/filters.py

This file was deleted.

134 changes: 0 additions & 134 deletions credentials/apps/api/serializers.py

This file was deleted.

2 changes: 1 addition & 1 deletion credentials/apps/api/tests/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from rest_framework.test import APIRequestFactory
import jwt

from credentials.apps.api.serializers import UserCredentialSerializer
from credentials.apps.api.v2.serializers import UserCredentialSerializer
from credentials.apps.core.constants import Role
from credentials.apps.core.tests.factories import UserFactory

Expand Down
203 changes: 0 additions & 203 deletions credentials/apps/api/tests/test_serializers.py

This file was deleted.

Loading

0 comments on commit a985649

Please sign in to comment.