2019-10-17 09:07:07 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-05-22 11:43:35 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 09:08:32 +00:00
|
|
|
RSpec.describe GitlabSchema.types['Repository'] do
|
2020-05-07 06:09:38 +00:00
|
|
|
specify { expect(described_class.graphql_name).to eq('Repository') }
|
2019-05-22 11:43:35 +00:00
|
|
|
|
2020-05-07 06:09:38 +00:00
|
|
|
specify { expect(described_class).to require_graphql_authorizations(:download_code) }
|
2019-05-22 11:43:35 +00:00
|
|
|
|
2020-05-07 06:09:38 +00:00
|
|
|
specify { expect(described_class).to have_graphql_field(:root_ref) }
|
2019-05-22 11:43:35 +00:00
|
|
|
|
2020-05-07 06:09:38 +00:00
|
|
|
specify { expect(described_class).to have_graphql_field(:tree) }
|
2021-01-12 06:10:31 +00:00
|
|
|
|
2021-08-05 15:09:46 +00:00
|
|
|
specify { expect(described_class).to have_graphql_field(:paginated_tree, calls_gitaly?: true, max_page_size: 100) }
|
|
|
|
|
2021-01-12 06:10:31 +00:00
|
|
|
specify { expect(described_class).to have_graphql_field(:exists, calls_gitaly?: true, complexity: 2) }
|
2021-04-12 12:09:15 +00:00
|
|
|
|
|
|
|
specify { expect(described_class).to have_graphql_field(:blobs) }
|
2021-04-12 18:12:15 +00:00
|
|
|
|
|
|
|
specify { expect(described_class).to have_graphql_field(:branch_names, calls_gitaly?: true, complexity: 170) }
|
2021-05-18 21:10:16 +00:00
|
|
|
|
|
|
|
specify { expect(described_class).to have_graphql_field(:disk_path) }
|
2019-05-22 11:43:35 +00:00
|
|
|
end
|