Skip to content
Snippets Groups Projects
Commit c3538370 authored by Amparo Luna's avatar Amparo Luna Committed by Mark Chao
Browse files

Display seat counts stored in GitlabSubscription

Since we're now updating seats_in_use and seats_owed along with
max_seats_used during the daily job.
parent 6f019a70
No related branches found
No related tags found
No related merge requests found
---
title: Return stored seat counts in the subscriptions API endpoint
merge_request: 42293
author:
type: fixed
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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)
Loading
Loading
@@ -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)
Loading
Loading
@@ -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)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment