diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-03-18 20:02:30 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-03-18 20:02:30 +0000 |
commit | 41fe97390ceddf945f3d967b8fdb3de4c66b7dea (patch) | |
tree | 9c8d89a8624828992f06d892cd2f43818ff5dcc8 /spec/frontend/pipeline_wizard/mock/yaml.js | |
parent | 0804d2dc31052fb45a1efecedc8e06ce9bc32862 (diff) | |
download | gitlab-ce-14.9.0-rc42.tar.gz |
Add latest changes from gitlab-org/gitlab@14-9-stable-eev14.9.0-rc42
Diffstat (limited to 'spec/frontend/pipeline_wizard/mock/yaml.js')
-rw-r--r-- | spec/frontend/pipeline_wizard/mock/yaml.js | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/spec/frontend/pipeline_wizard/mock/yaml.js b/spec/frontend/pipeline_wizard/mock/yaml.js new file mode 100644 index 00000000000..5eaeaa32a8c --- /dev/null +++ b/spec/frontend/pipeline_wizard/mock/yaml.js @@ -0,0 +1,85 @@ +export const stepInputs = ` +- label: "Build Steps" + description: "Enter the steps necessary for your application." + widget: text + target: $BUILD_STEPS +- label: "Select a deployment branch" + description: "Select the branch we should use to generate your site from." + widget: text + target: $BRANCH + pattern: "^[a-z]+$" + invalidFeedback: "This field may only contain lowercase letters" + required: true +`; + +export const stepTemplate = `template: + pages: + script: $BUILD_STEPS + artifacts: + paths: + - public + only: + - $BRANCH +`; + +export const compiledYamlBeforeSetup = `abc: def`; + +export const compiledYamlAfterInitialLoad = `abc: def +pages: + script: $BUILD_STEPS + artifacts: + paths: + - public + only: + - $BRANCH +`; + +export const compiledYaml = `abc: def +pages: + script: foo + artifacts: + paths: + - public + only: + - bar +`; + +export const steps = ` +- inputs: + - label: foo + target: $FOO + widget: text + template: + foo: $FOO +- inputs: + - label: bar + target: $BAR + widget: text + template: + bar: $BAR +`; + +export const fullTemplate = ` +title: some title +description: some description +filename: foo.yml +steps: + - inputs: + - widget: text + label: foo + target: $BAR + template: + foo: $BAR +`; + +export const fullTemplateWithoutFilename = ` +title: some title +description: some description +steps: + - inputs: + - widget: text + label: foo + target: $BAR + template: + foo: $BAR +`; |