Update API fuzzing configuration form labels

Update labels in the API fuzzing configuration form to surface the fact
that URLs are supported as well.

Changelog: changed
EE: true
parent e8704cbe
......@@ -70,7 +70,7 @@ export default {
scanMode: {
field: 'scanMode',
label: s__('APIFuzzing|Scan mode'),
description: s__('APIFuzzing|There are two ways to perform scans.'),
description: s__('APIFuzzing|There are three ways to perform scans.'),
value: '',
defaultText: s__('APIFuzzing|Choose a method'),
options: this.apiFuzzingCiConfiguration.scanModes.map((value) => ({
......
......@@ -3,26 +3,26 @@ import { __, s__ } from '~/locale';
export const SCAN_MODES = {
HAR: {
scanModeLabel: __('HAR (HTTP Archive)'),
label: __('HAR file path'),
placeholder: s__('APIFuzzing|/folder/example_file.har'),
label: __('HAR file path or URL'),
placeholder: s__('APIFuzzing|folder/example_fuzz.har'),
description: s__(
"APIFuzzing|File path containing APIs to be tested. For example, /folder/example_file.har. HAR files may contain sensitive information such as authentication tokens, API keys, and session cookies. We recommend that you review the HAR files' contents before adding them to a repository.",
"APIFuzzing|File path or URL to APIs to be tested. For example, folder/example_fuzz.har. HAR files may contain sensitive information such as authentication tokens, API keys, and session cookies. We recommend that you review the HAR files' contents before adding them to a repository.",
),
},
OPENAPI: {
scanModeLabel: __('OpenAPI'),
label: __('OpenAPI specification file path'),
placeholder: s__('APIFuzzing|/folder/example_file.json'),
label: __('OpenAPI Specification file path or URL'),
placeholder: s__('APIFuzzing|folder/openapi.json'),
description: s__(
'APIFuzzing|File path containing APIs to be tested. For example, /folder/example_file.json.',
'APIFuzzing|File path or URL to OpenAPI specification. For example, folder/openapi.json or http://www.example.com/openapi.json.',
),
},
POSTMAN: {
scanModeLabel: __('Postman collection'),
label: __('Postman collection'),
placeholder: s__('APIFuzzing|/folder/example_file.postman_collection.json'),
label: __('Postman collection file path or URL'),
placeholder: s__('APIFuzzing|folder/example.postman_collection.json'),
description: s__(
'APIFuzzing|File path containing requests to be tested. For example, /folder/example_file.postman_collection.json.',
'APIFuzzing|File path or URL to requests to be tested. For example, folder/example.postman_collection.json.',
),
},
};
......
---
title: Update API fuzzing configuration form labels
merge_request: 61618
author:
type: changed
......@@ -1525,15 +1525,6 @@ msgstr ""
msgid "APIFuzzing|$VariableWithUsername"
msgstr ""
msgid "APIFuzzing|/folder/example_file.har"
msgstr ""
msgid "APIFuzzing|/folder/example_file.json"
msgstr ""
msgid "APIFuzzing|/folder/example_file.postman_collection.json"
msgstr ""
msgid "APIFuzzing|API Fuzzing Configuration"
msgstr ""
......@@ -1573,13 +1564,13 @@ msgstr ""
msgid "APIFuzzing|Enter the name of the variable containing the username. For example, $VariableWithUsername."
msgstr ""
msgid "APIFuzzing|File path containing APIs to be tested. For example, /folder/example_file.har. HAR files may contain sensitive information such as authentication tokens, API keys, and session cookies. We recommend that you review the HAR files' contents before adding them to a repository."
msgid "APIFuzzing|File path or URL to APIs to be tested. For example, folder/example_fuzz.har. HAR files may contain sensitive information such as authentication tokens, API keys, and session cookies. We recommend that you review the HAR files' contents before adding them to a repository."
msgstr ""
msgid "APIFuzzing|File path containing APIs to be tested. For example, /folder/example_file.json."
msgid "APIFuzzing|File path or URL to OpenAPI specification. For example, folder/openapi.json or http://www.example.com/openapi.json."
msgstr ""
msgid "APIFuzzing|File path containing requests to be tested. For example, /folder/example_file.postman_collection.json."
msgid "APIFuzzing|File path or URL to requests to be tested. For example, folder/example.postman_collection.json."
msgstr ""
msgid "APIFuzzing|Generate code snippet"
......@@ -1606,7 +1597,7 @@ msgstr ""
msgid "APIFuzzing|Target URL"
msgstr ""
msgid "APIFuzzing|There are two ways to perform scans."
msgid "APIFuzzing|There are three ways to perform scans."
msgstr ""
msgid "APIFuzzing|Tip: Insert the following variables anywhere below stages and include"
......@@ -1633,6 +1624,15 @@ msgstr ""
msgid "APIFuzzing|You may need a maintainer's help to secure your credentials."
msgstr ""
msgid "APIFuzzing|folder/example.postman_collection.json"
msgstr ""
msgid "APIFuzzing|folder/example_fuzz.har"
msgstr ""
msgid "APIFuzzing|folder/openapi.json"
msgstr ""
msgid "AWS Access Key"
msgstr ""
......@@ -16157,7 +16157,7 @@ msgstr ""
msgid "HAR (HTTP Archive)"
msgstr ""
msgid "HAR file path"
msgid "HAR file path or URL"
msgstr ""
msgid "HTTP Basic: Access denied\\nYou must use a personal access token with 'api' scope for Git over HTTP.\\nYou can generate one at %{profile_personal_access_tokens_url}"
......@@ -23070,7 +23070,7 @@ msgstr ""
msgid "OpenAPI"
msgstr ""
msgid "OpenAPI specification file path"
msgid "OpenAPI Specification file path or URL"
msgstr ""
msgid "Opened"
......@@ -24624,6 +24624,9 @@ msgstr ""
msgid "Postman collection"
msgstr ""
msgid "Postman collection file path or URL"
msgstr ""
msgid "Pre-defined push rules."
msgstr ""
......
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