2019-08-22 22:08:28 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 09:08:32 +00:00
|
|
|
RSpec.describe GitlabSchema.types['RootStorageStatistics'] do
|
2020-05-07 06:09:38 +00:00
|
|
|
specify { expect(described_class.graphql_name).to eq('RootStorageStatistics') }
|
2019-08-22 22:08:28 +00:00
|
|
|
|
|
|
|
it 'has all the required fields' do
|
2020-03-18 18:09:35 +00:00
|
|
|
expect(described_class).to have_graphql_fields(:storage_size, :repository_size, :lfs_objects_size,
|
2020-10-08 21:08:52 +00:00
|
|
|
:build_artifacts_size, :packages_size, :wiki_size, :snippets_size,
|
2020-11-17 12:09:15 +00:00
|
|
|
:pipeline_artifacts_size, :uploads_size)
|
2019-08-22 22:08:28 +00:00
|
|
|
end
|
|
|
|
|
2020-05-07 06:09:38 +00:00
|
|
|
specify { expect(described_class).to require_graphql_authorizations(:read_statistics) }
|
2019-08-22 22:08:28 +00:00
|
|
|
end
|