Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/specs/features/browser_ui/4_verify/ci_variable/prefill_variables_spec.rb')
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/ci_variable/prefill_variables_spec.rb55
1 files changed, 25 insertions, 30 deletions
diff --git a/qa/qa/specs/features/browser_ui/4_verify/ci_variable/prefill_variables_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/ci_variable/prefill_variables_spec.rb
index 8d315f66034..31b95cb97ae 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/ci_variable/prefill_variables_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/ci_variable/prefill_variables_spec.rb
@@ -10,36 +10,31 @@ module QA
let(:prefill_variable_description5) { Faker::Lorem.sentence }
let(:project) { create(:project, name: 'project-with-prefill-variables') }
let!(:commit) do
- Resource::Repository::Commit.fabricate_via_api! do |commit|
- commit.project = project
- commit.commit_message = 'Add .gitlab-ci.yml'
- commit.add_files(
- [
- {
- file_path: '.gitlab-ci.yml',
- content: <<~YAML
- variables:
- TEST1:
- value: #{prefill_variable_value1}
- description: #{prefill_variable_description1}
- TEST2:
- description: #{prefill_variable_description2}
- TEST3:
- value: test 3 value
- TEST4: test 4 value
- TEST5:
- value: "FOO"
- options:
- - #{prefill_variable_value5}
- - "FOO"
- description: #{prefill_variable_description5}
- test:
- script: echo "$FOO"
- YAML
- }
- ]
- )
- end
+ create(:commit, project: project, commit_message: 'Add .gitlab-ci.yml', actions: [
+ {
+ action: 'create',
+ file_path: '.gitlab-ci.yml',
+ content: <<~YAML
+ variables:
+ TEST1:
+ value: #{prefill_variable_value1}
+ description: #{prefill_variable_description1}
+ TEST2:
+ description: #{prefill_variable_description2}
+ TEST3:
+ value: test 3 value
+ TEST4: test 4 value
+ TEST5:
+ value: "FOO"
+ options:
+ - #{prefill_variable_value5}
+ - "FOO"
+ description: #{prefill_variable_description5}
+ test:
+ script: echo "$FOO"
+ YAML
+ }
+ ])
end
before do