summaryrefslogtreecommitdiff
path: root/spec/graphql/types/ci/job_type_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-05-19 15:44:42 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-19 15:44:42 +0000
commit4555e1b21c365ed8303ffb7a3325d773c9b8bf31 (patch)
tree5423a1c7516cffe36384133ade12572cf709398d /spec/graphql/types/ci/job_type_spec.rb
parente570267f2f6b326480d284e0164a6464ba4081bc (diff)
downloadgitlab-ce-4555e1b21c365ed8303ffb7a3325d773c9b8bf31.tar.gz
Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42
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)