Commit 5d1e923f authored by Philip Cunningham's avatar Philip Cunningham

Address backend reviewer feedback

parent 4c4a43d7
...@@ -5,7 +5,7 @@ module Types ...@@ -5,7 +5,7 @@ module Types
graphql_name 'DastScannerProfile' graphql_name 'DastScannerProfile'
description 'Represents a DAST scanner profile' description 'Represents a DAST scanner profile'
authorize :create_on_demand_dast_scan authorize :read_on_demand_scans
field :id, ::Types::GlobalIDType[::DastScannerProfile], null: false, field :id, ::Types::GlobalIDType[::DastScannerProfile], null: false,
description: 'ID of the DAST scanner profile' description: 'ID of the DAST scanner profile'
......
...@@ -5,7 +5,7 @@ module Types ...@@ -5,7 +5,7 @@ module Types
graphql_name 'DastSiteValidation' graphql_name 'DastSiteValidation'
description 'Represents a DAST Site Validation' description 'Represents a DAST Site Validation'
authorize :create_on_demand_dast_scan authorize :read_on_demand_scans
field :id, ::Types::GlobalIDType[::DastSiteValidation], null: false, field :id, ::Types::GlobalIDType[::DastSiteValidation], null: false,
description: 'Global ID of the site validation' description: 'Global ID of the site validation'
......
...@@ -27,7 +27,7 @@ RSpec.describe GitlabSchema.types['DastScannerProfile'] do ...@@ -27,7 +27,7 @@ RSpec.describe GitlabSchema.types['DastScannerProfile'] do
end end
specify { expect(described_class.graphql_name).to eq('DastScannerProfile') } specify { expect(described_class.graphql_name).to eq('DastScannerProfile') }
specify { expect(described_class).to require_graphql_authorizations(:create_on_demand_dast_scan) } specify { expect(described_class).to require_graphql_authorizations(:read_on_demand_scans) }
it { expect(described_class).to have_graphql_fields(fields) } it { expect(described_class).to have_graphql_fields(fields) }
......
...@@ -26,7 +26,7 @@ RSpec.describe GitlabSchema.types['DastSiteValidation'] do ...@@ -26,7 +26,7 @@ RSpec.describe GitlabSchema.types['DastSiteValidation'] do
end end
specify { expect(described_class.graphql_name).to eq('DastSiteValidation') } specify { expect(described_class.graphql_name).to eq('DastSiteValidation') }
specify { expect(described_class).to require_graphql_authorizations(:create_on_demand_dast_scan) } specify { expect(described_class).to require_graphql_authorizations(:read_on_demand_scans) }
it { expect(described_class).to have_graphql_fields(fields) } it { expect(described_class).to have_graphql_fields(fields) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment