Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
72fb5dce
Commit
72fb5dce
authored
Dec 09, 2020
by
Philip Cunningham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose normalizedTargetUrl on DastSiteValidation
Exposes field on the DastSiteValidation GraphQL type.
parent
8fae18cd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
1 deletion
+29
-1
doc/api/graphql/reference/gitlab_schema.graphql
doc/api/graphql/reference/gitlab_schema.graphql
+5
-0
doc/api/graphql/reference/gitlab_schema.json
doc/api/graphql/reference/gitlab_schema.json
+14
-0
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+1
-0
ee/app/graphql/types/dast_site_validation_type.rb
ee/app/graphql/types/dast_site_validation_type.rb
+7
-0
ee/spec/graphql/types/dast_site_validation_type_spec.rb
ee/spec/graphql/types/dast_site_validation_type_spec.rb
+2
-1
No files found.
doc/api/graphql/reference/gitlab_schema.graphql
View file @
72fb5dce
...
@@ -5442,6 +5442,11 @@ type DastSiteValidation {
...
@@ -5442,6 +5442,11 @@ type DastSiteValidation {
"""
"""
id
:
DastSiteValidationID
!
id
:
DastSiteValidationID
!
"""
Normalized
URL
of
the
target
to
be
validated
"""
normalizedTargetUrl
:
String
"""
"""
Status
of
the
site
validation
Status
of
the
site
validation
"""
"""
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
72fb5dce
...
@@ -14977,6 +14977,20 @@
...
@@ -14977,6 +14977,20 @@
"isDeprecated": false,
"isDeprecated": false,
"deprecationReason": null
"deprecationReason": null
},
},
{
"name": "normalizedTargetUrl",
"description": "Normalized URL of the target to be validated",
"args": [
],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
{
"name": "status",
"name": "status",
"description": "Status of the site validation",
"description": "Status of the site validation",
doc/api/graphql/reference/index.md
View file @
72fb5dce
...
@@ -933,6 +933,7 @@ Represents a DAST Site Validation.
...
@@ -933,6 +933,7 @@ Represents a DAST Site Validation.
| Field | Type | Description |
| Field | Type | Description |
| ----- | ---- | ----------- |
| ----- | ---- | ----------- |
|
`id`
| DastSiteValidationID! | Global ID of the site validation |
|
`id`
| DastSiteValidationID! | Global ID of the site validation |
|
`normalizedTargetUrl`
| String | Normalized URL of the target to be validated |
|
`status`
| DastSiteProfileValidationStatusEnum! | Status of the site validation |
|
`status`
| DastSiteProfileValidationStatusEnum! | Status of the site validation |
### DastSiteValidationCreatePayload
### DastSiteValidationCreatePayload
...
...
ee/app/graphql/types/dast_site_validation_type.rb
View file @
72fb5dce
...
@@ -13,5 +13,12 @@ module Types
...
@@ -13,5 +13,12 @@ module Types
field
:status
,
Types
::
DastSiteProfileValidationStatusEnum
,
null:
false
,
field
:status
,
Types
::
DastSiteProfileValidationStatusEnum
,
null:
false
,
description:
'Status of the site validation'
,
description:
'Status of the site validation'
,
method: :state
method: :state
field
:normalized_target_url
,
GraphQL
::
STRING_TYPE
,
null:
true
,
description:
'Normalized URL of the target to be validated'
def
normalized_target_url
object
.
url_base
end
end
end
end
end
ee/spec/graphql/types/dast_site_validation_type_spec.rb
View file @
72fb5dce
...
@@ -6,7 +6,7 @@ RSpec.describe GitlabSchema.types['DastSiteValidation'] do
...
@@ -6,7 +6,7 @@ RSpec.describe GitlabSchema.types['DastSiteValidation'] do
let_it_be
(
:dast_site_validation
)
{
create
(
:dast_site_validation
)
}
let_it_be
(
:dast_site_validation
)
{
create
(
:dast_site_validation
)
}
let_it_be
(
:project
)
{
dast_site_validation
.
dast_site_token
.
project
}
let_it_be
(
:project
)
{
dast_site_validation
.
dast_site_token
.
project
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:fields
)
{
%i[id status]
}
let_it_be
(
:fields
)
{
%i[id status
normalizedTargetUrl
]
}
let
(
:response
)
do
let
(
:response
)
do
GitlabSchema
.
execute
(
GitlabSchema
.
execute
(
...
@@ -42,6 +42,7 @@ RSpec.describe GitlabSchema.types['DastSiteValidation'] do
...
@@ -42,6 +42,7 @@ RSpec.describe GitlabSchema.types['DastSiteValidation'] do
dastSiteValidation(targetUrl: $targetUrl) {
dastSiteValidation(targetUrl: $targetUrl) {
id
id
status
status
normalizedTargetUrl
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment