BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
0da1f826
Commit
0da1f826
authored
Apr 23, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix signed commits spec
parent
b933a6de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
28 deletions
+33
-28
signed_commits_spec.rb
spec/features/signed_commits_spec.rb
+33
-28
No files found.
spec/features/signed_commits_spec.rb
View file @
0da1f826
...
@@ -96,10 +96,11 @@ describe 'GPG signed commits', :js do
...
@@ -96,10 +96,11 @@ describe 'GPG signed commits', :js do
within
(
find
(
'.commit'
,
text:
'signed commit by bette cartwright'
))
do
within
(
find
(
'.commit'
,
text:
'signed commit by bette cartwright'
))
do
click_on
'Unverified'
click_on
'Unverified'
within
'.popover'
do
end
expect
(
page
).
to
have_content
'This commit was signed with an unverified signature.'
expect
(
page
).
to
have_content
"GPG Key ID:
#{
GpgHelpers
::
User2
.
primary_keyid
}
"
within
'.popover'
do
end
expect
(
page
).
to
have_content
'This commit was signed with an unverified signature.'
expect
(
page
).
to
have_content
"GPG Key ID:
#{
GpgHelpers
::
User2
.
primary_keyid
}
"
end
end
end
end
...
@@ -110,12 +111,13 @@ describe 'GPG signed commits', :js do
...
@@ -110,12 +111,13 @@ describe 'GPG signed commits', :js do
within
(
find
(
'.commit'
,
text:
'signed and authored commit by bette cartwright, different email'
))
do
within
(
find
(
'.commit'
,
text:
'signed and authored commit by bette cartwright, different email'
))
do
click_on
'Unverified'
click_on
'Unverified'
within
'.popover'
do
end
expect
(
page
).
to
have_content
'This commit was signed with a verified signature, but the committer email is not verified to belong to the same user.'
expect
(
page
).
to
have_content
'Bette Cartwright'
within
'.popover'
do
expect
(
page
).
to
have_content
'@bette.cartwright'
expect
(
page
).
to
have_content
'This commit was signed with a verified signature, but the committer email is not verified to belong to the same user.'
expect
(
page
).
to
have_content
"GPG Key ID:
#{
GpgHelpers
::
User2
.
primary_keyid
}
"
expect
(
page
).
to
have_content
'Bette Cartwright'
end
expect
(
page
).
to
have_content
'@bette.cartwright'
expect
(
page
).
to
have_content
"GPG Key ID:
#{
GpgHelpers
::
User2
.
primary_keyid
}
"
end
end
end
end
...
@@ -126,12 +128,13 @@ describe 'GPG signed commits', :js do
...
@@ -126,12 +128,13 @@ describe 'GPG signed commits', :js do
within
(
find
(
'.commit'
,
text:
'signed commit by bette cartwright'
))
do
within
(
find
(
'.commit'
,
text:
'signed commit by bette cartwright'
))
do
click_on
'Unverified'
click_on
'Unverified'
within
'.popover'
do
end
expect
(
page
).
to
have_content
"This commit was signed with a different user's verified signature."
expect
(
page
).
to
have_content
'Bette Cartwright'
within
'.popover'
do
expect
(
page
).
to
have_content
'@bette.cartwright'
expect
(
page
).
to
have_content
"This commit was signed with a different user's verified signature."
expect
(
page
).
to
have_content
"GPG Key ID:
#{
GpgHelpers
::
User2
.
primary_keyid
}
"
expect
(
page
).
to
have_content
'Bette Cartwright'
end
expect
(
page
).
to
have_content
'@bette.cartwright'
expect
(
page
).
to
have_content
"GPG Key ID:
#{
GpgHelpers
::
User2
.
primary_keyid
}
"
end
end
end
end
...
@@ -142,12 +145,13 @@ describe 'GPG signed commits', :js do
...
@@ -142,12 +145,13 @@ describe 'GPG signed commits', :js do
within
(
find
(
'.commit'
,
text:
'signed and authored commit by nannie bernhard'
))
do
within
(
find
(
'.commit'
,
text:
'signed and authored commit by nannie bernhard'
))
do
click_on
'Verified'
click_on
'Verified'
within
'.popover'
do
end
expect
(
page
).
to
have_content
'This commit was signed with a verified signature and the committer email is verified to belong to the same user.'
expect
(
page
).
to
have_content
'Nannie Bernhard'
within
'.popover'
do
expect
(
page
).
to
have_content
'@nannie.bernhard'
expect
(
page
).
to
have_content
'This commit was signed with a verified signature and the committer email is verified to belong to the same user.'
expect
(
page
).
to
have_content
"GPG Key ID:
#{
GpgHelpers
::
User1
.
primary_keyid
}
"
expect
(
page
).
to
have_content
'Nannie Bernhard'
end
expect
(
page
).
to
have_content
'@nannie.bernhard'
expect
(
page
).
to
have_content
"GPG Key ID:
#{
GpgHelpers
::
User1
.
primary_keyid
}
"
end
end
end
end
...
@@ -167,12 +171,13 @@ describe 'GPG signed commits', :js do
...
@@ -167,12 +171,13 @@ describe 'GPG signed commits', :js do
within
(
find
(
'.commit'
,
text:
'signed and authored commit by nannie bernhard'
))
do
within
(
find
(
'.commit'
,
text:
'signed and authored commit by nannie bernhard'
))
do
click_on
'Verified'
click_on
'Verified'
within
'.popover'
do
end
expect
(
page
).
to
have_content
'This commit was signed with a verified signature and the committer email is verified to belong to the same user.'
expect
(
page
).
to
have_content
'Nannie Bernhard'
within
'.popover'
do
expect
(
page
).
to
have_content
'nannie.bernhard@example.com'
expect
(
page
).
to
have_content
'This commit was signed with a verified signature and the committer email is verified to belong to the same user.'
expect
(
page
).
to
have_content
"GPG Key ID:
#{
GpgHelpers
::
User1
.
primary_keyid
}
"
expect
(
page
).
to
have_content
'Nannie Bernhard'
end
expect
(
page
).
to
have_content
'nannie.bernhard@example.com'
expect
(
page
).
to
have_content
"GPG Key ID:
#{
GpgHelpers
::
User1
.
primary_keyid
}
"
end
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