Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
724dbd8a
Commit
724dbd8a
authored
May 18, 2021
by
Sanad Liaquat (Personal)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add quotes to fix push_rules_spec
parent
64cc235e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
qa/qa/specs/features/ee/browser_ui/3_create/repository/push_rules_spec.rb
...ures/ee/browser_ui/3_create/repository/push_rules_spec.rb
+5
-5
No files found.
qa/qa/specs/features/ee/browser_ui/3_create/repository/push_rules_spec.rb
View file @
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
:)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment