refs FOO-4041
refs FOO-4019
flag = temporary_enrollments
test plan:
• enable temporary enrollments feature flag
• have a temporary enrollment recipient and provider
• make a call to GET /api/v1/users/:user_id/temporary_enrollment_status
• verify the response contains the recipient and provider
temporary enrollment status if that user is a recipient or provider
/doc/api/enrollments.html#method.enrollments_api.temporary_enrollments
• create a user with an active temporary enrollment and an
enrollment that is completed
• fetch /api/v1/users/:id/enrollments with the provided args
• temporary_enrollments_for_recipient=true
• include=temporary_enrollment_providers
• state=current_and_future
• verify that the response includes the current temporary enrollment
with an included "temporary_enrollment_provider" object
• fetch /api/v1/users/:id/enrollments with the provided args
• temporary_enrollment_recipients_for_provider=true
• state=current_and_future
• verify that the response includes the current temporary enrollment
for the specified provider
Change-Id: Ie547fea0cf2a0ee383a94a5e44a07a7ad24de0f7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332550
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
QA-Review: Michael Hulse <michael.hulse@instructure.com>
Product-Review: Michael Hulse <michael.hulse@instructure.com>