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

package_settings_type_spec.rb « namespace « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b9592d230caea0f04a6bcc853509bfa8b10edca8 (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['PackageSettings'] do
  specify { expect(described_class.graphql_name).to eq('PackageSettings') }

  specify { expect(described_class.description).to eq('Namespace-level Package Registry settings') }

  specify { expect(described_class).to require_graphql_authorizations(:read_package_settings) }

  describe 'maven_duplicate_exception_regex field' do
    subject { described_class.fields['mavenDuplicateExceptionRegex'] }

    it { is_expected.to have_graphql_type(Types::UntrustedRegexp) }
  end
end