Skip to content
代码片段 群组 项目
提交 39ea9edd 编辑于 作者: Arpit Gogia's avatar Arpit Gogia 提交者: Roy Zwambag
浏览文件

Map spider timeout to browserker setting

Changelog: other
EE: true
上级 747d9de4
加载中
......@@ -44,7 +44,7 @@ export default {
><scan-type-badge :scan-type="profile.scanType"
/></summary-cell>
<summary-cell
:label="s__('DastProfiles|Spider timeout')"
:label="s__('DastProfiles|Crawl timeout')"
:value="n__('%d minute', '%d minutes', profile.spiderTimeout || 0)"
/>
<summary-cell
......
......@@ -96,7 +96,7 @@ export default {
: s__('DastProfiles|Could not create the scanner profile. Please try again.'),
tooltips: {
spiderTimeout: s__(
'DastProfiles|The maximum number of minutes allowed for the spider to traverse the site.',
'DastProfiles|The maximum number of minutes allowed for the crawler to traverse the site.',
),
targetTimeout: s__(
'DastProfiles|The maximum number of seconds allowed for the site under test to respond to a request.',
......@@ -199,7 +199,7 @@ export default {
:state="form.fields.spiderTimeout.state"
>
<template #label>
{{ s__('DastProfiles|Spider timeout') }}
{{ s__('DastProfiles|Crawl timeout') }}
<tooltip-icon :title="i18n.tooltips.spiderTimeout" />
</template>
<gl-form-input-group
......
......@@ -32,6 +32,7 @@ def ci_variables(dast_site_profile: nil)
variables.append(key: 'DAST_USE_AJAX_SPIDER', value: String(use_ajax_spider))
variables.append(key: 'DAST_DEBUG', value: String(show_debug_messages))
variables.append(key: 'DAST_FULL_SCAN_ENABLED', value: String(active?))
variables.append(key: 'DAST_BROWSER_CRAWL_TIMEOUT', value: "#{String(spider_timeout)}m") if spider_timeout
next unless dast_site_profile&.api?
......
......@@ -14,7 +14,7 @@ exports[`DastScannerProfileSummary renders properly 1`] = `
/>
</summary-cell-stub>
<summary-cell-stub
label="Spider timeout"
label="Crawl timeout"
value="5 minutes"
/>
<summary-cell-stub
......
......@@ -75,6 +75,7 @@
it 'returns a collection of variables including these', :aggregate_failures do
expect(collection).to include(key: 'DAST_SPIDER_MINS', value: String(subject.spider_timeout), public: true)
expect(collection).to include(key: 'DAST_TARGET_AVAILABILITY_TIMEOUT', value: String(subject.target_timeout), public: true)
expect(collection).to include(key: 'DAST_BROWSER_CRAWL_TIMEOUT', value: "#{String(subject.spider_timeout)}m", public: true)
end
end
......
......@@ -15508,6 +15508,9 @@ msgstr ""
msgid "DastProfiles|Could not update the site profile. Please try again."
msgstr ""
 
msgid "DastProfiles|Crawl timeout"
msgstr ""
msgid "DastProfiles|DAST profile library"
msgstr ""
 
......@@ -15685,9 +15688,6 @@ msgstr ""
msgid "DastProfiles|Site type"
msgstr ""
 
msgid "DastProfiles|Spider timeout"
msgstr ""
msgid "DastProfiles|Submit button"
msgstr ""
 
......@@ -15700,7 +15700,7 @@ msgstr ""
msgid "DastProfiles|Target timeout"
msgstr ""
 
msgid "DastProfiles|The maximum number of minutes allowed for the spider to traverse the site."
msgid "DastProfiles|The maximum number of minutes allowed for the crawler to traverse the site."
msgstr ""
 
msgid "DastProfiles|The maximum number of seconds allowed for the site under test to respond to a request."
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册