Commit 26dec3e5 authored by Mark Chao's avatar Mark Chao

Merge branch 'al-233444-display-current-counts' into 'master'

Return stored seat counts in the subscriptions API endpoint

See merge request gitlab-org/gitlab!42293
parents becb6fec c3538370
---
title: Return stored seat counts in the subscriptions API endpoint
merge_request: 42293
author:
type: fixed
......@@ -14,9 +14,9 @@ module EE
expose :usage do
expose :seats, as: :seats_in_subscription
expose :calculate_seats_in_use, as: :seats_in_use
expose :seats_in_use
expose :max_seats_used
expose :calculate_seats_owed, as: :seats_owed
expose :seats_owed
end
expose :billing do
......
......@@ -285,7 +285,7 @@ RSpec.describe API::Namespaces do
end
context 'when authenticated as a regular user' do
it 'returns an unauthroized error' do
it 'returns an unauthorized error' do
do_post(user, params)
expect(response).to have_gitlab_http_status(:forbidden)
......@@ -347,7 +347,7 @@ RSpec.describe API::Namespaces do
end
context 'with a regular user' do
it 'returns an unauthroized error' do
it 'returns an unauthorized error' do
do_get(developer)
expect(response).to have_gitlab_http_status(:forbidden)
......@@ -401,7 +401,7 @@ RSpec.describe API::Namespaces do
end
context 'when authenticated as a regular user' do
it 'returns an unauthroized error' do
it 'returns an unauthorized error' do
do_put(namespace.id, user, { seats: 150 })
expect(response).to have_gitlab_http_status(:forbidden)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment