Skip to content
Snippets Groups Projects
Commit e4f9d132 authored by Philip Cunningham's avatar Philip Cunningham :red_circle:
Browse files

Merge branch 'philipcunningham-send-both-api-variables-for-dast-on-demand-368970' into 'master'

Use DAST_API_SPECIFICATION not DAST_API_OPENAPI

See merge request !95326
parents 442d5312 1a60d723
No related branches found
No related tags found
No related merge requests found
Pipeline #614304872 passed
Pipeline: GitLab

#614319377

    ......@@ -49,7 +49,7 @@ def ci_variables
    variables.append(key: 'DAST_WEBSITE', value: url)
    variables.append(key: 'DAST_EXCLUDE_URLS', value: excluded_urls.join(',')) unless excluded_urls.empty?
    else
    variables.append(key: 'DAST_API_OPENAPI', value: url)
    variables.append(key: 'DAST_API_SPECIFICATION', value: url)
    variables.append(key: 'DAST_API_HOST_OVERRIDE', value: URI(url).host)
    variables.append(key: 'DAST_API_EXCLUDE_URLS', value: excluded_urls.join(',')) unless excluded_urls.empty?
    end
    ......
    ......@@ -269,7 +269,7 @@
    expect(keys).not_to include('DAST_WEBSITE')
    expect(keys).not_to include('DAST_EXCLUDE_URLS')
    expect(collection).to include(key: 'DAST_API_OPENAPI', value: subject.dast_site.url, public: true)
    expect(collection).to include(key: 'DAST_API_SPECIFICATION', value: subject.dast_site.url, public: true)
    expect(collection).to include(key: 'DAST_API_HOST_OVERRIDE', value: URI(subject.dast_site.url).host, public: true)
    expect(collection).to include(key: 'DAST_API_EXCLUDE_URLS', value: excluded_urls, public: true)
    end
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment