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

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

require 'spec_helper'

RSpec.describe GitlabSchema.types['DependencyProxyImageTtlGroupPolicy'] do
  it { expect(described_class.graphql_name).to eq('DependencyProxyImageTtlGroupPolicy') }

  it { expect(described_class.description).to eq('Group-level Dependency Proxy TTL policy settings') }

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

  it 'includes dependency proxy image ttl policy fields' do
    expected_fields = %w[enabled ttl created_at updated_at]

    expect(described_class).to have_graphql_fields(*expected_fields).only
  end
end