Skip to content

Commit

Permalink
Revert "feat: Pact Provider Verification for Profile Endpoint" (opene…
Browse files Browse the repository at this point in the history
…dx#32999)

Reverts openedx#32928 -- mistaken merge.
  • Loading branch information
timmc-edx committed Aug 14, 2023
1 parent d6848e3 commit f961453
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 205 deletions.
5 changes: 1 addition & 4 deletions lms/envs/pact.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,4 @@
MOCK_USERNAME = 'Mock User'

######################### Add Authentication Middleware for Pact Verification Calls #########################
MIDDLEWARE = MIDDLEWARE + [
'common.test.pacts.middleware.AuthenticationMiddleware',
'openedx.core.djangoapps.user_api.accounts.tests.pact.user-middleware',
]
MIDDLEWARE = MIDDLEWARE + ['common.test.pacts.middleware.AuthenticationMiddleware', ]
Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions openedx/core/djangoapps/user_api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from django.conf import settings
from django.urls import include, path, re_path
from django.conf.urls import url
from rest_framework import routers

from ..profile_images.views import ProfileImageView
Expand Down Expand Up @@ -227,14 +226,3 @@
path('v1/preferences/time_zones/', user_api_views.CountryTimeZoneListView.as_view(),
),
]

# Provider States url for Account
if getattr(settings, 'PROVIDER_STATES_URL', None):
from openedx.core.djangoapps.user_api.accounts.tests.pact.verify_user import provider_state as acc_provider_state
urlpatterns += [
url(
r'^pact/provider_states/$',
acc_provider_state,
name='acc-provider-state-view',
)
]

0 comments on commit f961453

Please sign in to comment.