Closed umar8hassan closed 1 month ago
Could you add a test for this functionality, i.e., making sure that the URL is properly formatted? Also, we are not currently performing validation on some of these fields, such as AWS_ACCOUNT_ID
. We should do this, and throw appropriate errors if they are not valid.
What are the relevant tickets?
closes #2175 and closes https://github.com/mitodl/ocw-studio/issues/2172
Description (What does it do?)
Limited the use of input url. Format for the subscribe url is pre-defined and only token will be used from the message.
How can this be tested?
The scope of this ticket is to test that url was formatted correctly after using the pre-defined url format
AWS_ACCOUNT_ID
andAWS_REGION
"Authorization: Bearer <settings.API_BEARER_TOKEN>" and "Content-Type: application/json":
200
status_code. Which would indicate that url was formatted correctly.