Commit 4072eeb8 authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'qa-shl-fix-push-rules-spec' into 'master'

Add quotes to fix push_rules_spec

See merge request gitlab-org/gitlab!62000
parents 392fcd10 724dbd8a
......@@ -55,7 +55,7 @@ module QA
expect_error_on_push(file: large_file,
error: 'File "file" is larger than the allowed size of 1 MB')
expect_error_on_push(file: wrongly_named_file,
error: Regexp.escape("File name #{@file_name_limitation} was prohibited by the pattern #{@file_name_limitation}"))
error: Regexp.escape(%Q{File name #{@file_name_limitation} was prohibited by the pattern "#{@file_name_limitation}"}))
end
it 'restricts users by email format', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/652' do
......@@ -86,7 +86,7 @@ module QA
}]
expect_error_on_push(file: secret_file,
error: Regexp.escape('File name id_rsa was prohibited by the pattern id_rsa$'))
error: Regexp.escape('File name id_rsa was prohibited by the pattern "id_rsa$"'))
end
it 'restricts removal of tag', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/650' do
......@@ -167,9 +167,9 @@ module QA
def standard_file
[{
name: 'file',
content: SecureRandom.hex(100)
}]
name: 'file',
content: SecureRandom.hex(100)
}]
end
def push(commit_message:, branch:, file:, user:, tag:, gpg:)
......
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