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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/graphql/types/ci/job_type_spec.rb')
-rw-r--r--spec/graphql/types/ci/job_type_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/graphql/types/ci/job_type_spec.rb b/spec/graphql/types/ci/job_type_spec.rb
index 787e2174070..54fe0c4b707 100644
--- a/spec/graphql/types/ci/job_type_spec.rb
+++ b/spec/graphql/types/ci/job_type_spec.rb
@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec.describe Types::Ci::JobType do
specify { expect(described_class.graphql_name).to eq('CiJob') }
specify { expect(described_class).to require_graphql_authorizations(:read_commit_status) }
+ specify { expect(described_class).to expose_permissions_using(Types::PermissionTypes::Ci::Job) }
it 'exposes the expected fields' do
expected_fields = %i[
@@ -15,15 +16,18 @@ RSpec.describe Types::Ci::JobType do
commitPath
coverage
created_at
+ created_by_tag
detailedStatus
duration
finished_at
id
+ manual_job
name
needs
pipeline
playable
queued_at
+ queued_duration
refName
refPath
retryable
@@ -33,7 +37,10 @@ RSpec.describe Types::Ci::JobType do
stage
started_at
status
+ stuck
tags
+ triggered
+ userPermissions
]
expect(described_class).to have_graphql_fields(*expected_fields)