Welcome to mirror list, hosted at ThFree Co, Russian Federation.

container_repository_tag_type_spec.rb « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 28bfb2b46de5d15195705a1fc99dccd28ebd1b75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe GitlabSchema.types['ContainerRepositoryTag'], feature_category: :container_registry do
  fields = %i[name path location digest revision short_revision
    total_size created_at can_delete user_permissions referrers]

  it { expect(described_class.graphql_name).to eq('ContainerRepositoryTag') }

  it { expect(described_class.description).to eq('A tag from a container repository') }

  it { expect(described_class).to require_graphql_authorizations(:read_container_image) }

  it { expect(described_class).to have_graphql_fields(fields) }

  it { expect(described_class).to expose_permissions_using(Types::PermissionTypes::ContainerRepositoryTag) }
end