PROD-1236: Do not expose user id with certificate URL.

This commit is contained in:
uzairr
2020-02-12 16:45:58 -05:00
parent 91dc5e4b9c
commit fb9ba90efe
15 changed files with 213 additions and 172 deletions

View File

@@ -410,10 +410,7 @@ class TestUserEnrollmentCertificates(UrlResetMixin, MobileAPITestCase, Milestone
certificate_data = response.data[0]['certificate']
self.assertRegex(
certificate_data['url'],
r'http.*/certificates/user/{user_id}/course/{course_id}'.format(
user_id=self.user.id,
course_id=self.course.id,
)
r'http.*/certificates/[0-9a-f]{32}'
)