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
4af77a62
Commit
4af77a62
authored
Jan 11, 2021
by
Tomislav Nikić
Committed by
Sanad Liaquat
Jan 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created a simple test for the mTLS scenario
This test does nothing more than create a project with a readme.
parent
41a7b3e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
qa/qa/specs/features/api/3_create/gitaly/gitaly_mtls_spec.rb
qa/qa/specs/features/api/3_create/gitaly/gitaly_mtls_spec.rb
+43
-0
No files found.
qa/qa/specs/features/api/3_create/gitaly/gitaly_mtls_spec.rb
0 → 100644
View file @
4af77a62
# frozen_string_literal: true
module
QA
RSpec
.
describe
'Create'
do
context
'Gitaly'
,
:orchestrated
,
:mtls
do
describe
'Using mTLS'
do
let
(
:intial_commit_message
)
{
'Initial commit'
}
let
(
:first_added_commit_message
)
{
'commit over git'
}
let
(
:second_added_commit_message
)
{
'commit over api'
}
it
'pushes to gitaly'
,
testcase:
'https://gitlab.com/gitlab-org/quality/testcases/-/issues/1118'
do
project
=
Resource
::
Project
.
fabricate!
do
|
project
|
project
.
name
=
"mTLS"
project
.
initialize_with_readme
=
true
end
Resource
::
Repository
::
ProjectPush
.
fabricate!
do
|
push
|
push
.
project
=
project
push
.
new_branch
=
false
push
.
commit_message
=
first_added_commit_message
push
.
file_content
=
'First commit'
end
Resource
::
Repository
::
Commit
.
fabricate_via_api!
do
|
commit
|
commit
.
project
=
project
commit
.
commit_message
=
second_added_commit_message
commit
.
add_files
([
{
file_path:
"file-
#{
SecureRandom
.
hex
(
8
)
}
"
,
content:
'Second commit'
}
])
end
expect
(
project
.
commits
.
map
{
|
commit
|
commit
[
:message
].
chomp
})
.
to
include
(
intial_commit_message
)
.
and
include
(
first_added_commit_message
)
.
and
include
(
second_added_commit_message
)
end
end
end
end
end
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