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

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

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

  specify { expect(described_class).to include(Types::CommitSignatureInterface) }

  it 'contains attributes related to GPG signatures' do
    expect(described_class).to have_graphql_fields(
      :user, :verification_status, :commit_sha, :project,
      :gpg_key_user_name, :gpg_key_user_email, :gpg_key_primary_keyid
    )
  end
end