Skip to content

Commit

Permalink
feat: define subscription plans endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
justEhmadSaeed committed Feb 15, 2024
1 parent fdbbee2 commit ce7403c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions swagger/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ paths:
$ref: "https://raw.githubusercontent.com/edx/edx-enterprise-data/eb793cf/api.yaml#/endpoints/v1/enterpriseCustomerLearnerSummary"
# License Manager IDA
# These are served from the license manager IDA, but we surface them with the rest of the enterprise endpoints
"/enterprise/v1/subscriptions":
$ref: "https://raw.githubusercontent.com/edx/license-manager/d156536/api.yaml#/endpoints/v1/subscriptionsList"
"/enterprise/v1/subscriptions/{uuid}/licenses/assign":
$ref: "https://raw.githubusercontent.com/edx/license-manager/b9e9ec9/api.yaml#/endpoints/v1/assignLicenses"
"/enterprise/v1/subscriptions/{uuid}/licenses/bulk-revoke":
Expand Down
13 changes: 13 additions & 0 deletions tests/test_enterprise.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,19 @@
]
- expected_status: [400]

- test:
- name: 'Subscription Summary endpoint returns HTTP 200'
- url: '/enterprise/v1/subscriptions/'
- method: 'GET'
- headers: {'Authorization': 'aeiou'}
- expected_status: [200]

- test:
- name: 'Subscription Summary endpoint rejected without authorization HTTP 400'
- url: '/enterprise/v1/subscriptions/'
- method: 'GET'
- expected_status: [400]

- test:
- name: 'License revokes endpoint returns HTTP 200'
- url: '/enterprise/v1/subscriptions/9101d3de36156cba/licenses/bulk-revoke/'
Expand Down

0 comments on commit ce7403c

Please sign in to comment.