Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tails
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
952
Issues
952
List
Boards
Labels
Service Desk
Milestones
Merge Requests
10
Merge Requests
10
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tails
tails
Commits
1326c257
Commit
1326c257
authored
Feb 12, 2015
by
Tails developers
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test/8669-anonymous-git' into testing
Fix-committed:
#8669
parents
c579d3f1
7cbb3772
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
8 deletions
+45
-8
features/step_definitions/common_steps.rb
features/step_definitions/common_steps.rb
+8
-0
features/step_definitions/git.rb
features/step_definitions/git.rb
+6
-0
features/torified_git.feature
features/torified_git.feature
+31
-0
wiki/src/contribute/release_process/test.mdwn
wiki/src/contribute/release_process/test.mdwn
+0
-8
No files found.
features/step_definitions/common_steps.rb
View file @
1326c257
...
...
@@ -477,6 +477,14 @@ Given /^process "([^"]+)" is running within (\d+) seconds$/ do |process, time|
end
end
Given
/^process "([^"]+)" has stopped running after at most (\d+) seconds$/
do
|
process
,
time
|
next
if
@skip_steps_while_restoring_background
try_for
(
time
.
to_i
,
:msg
=>
"Process '
#{
process
}
' is still running after "
+
"waiting for
#{
time
}
seconds"
)
do
not
@vm
.
has_process?
(
process
)
end
end
Given
/^process "([^"]+)" is not running$/
do
|
process
|
next
if
@skip_steps_while_restoring_background
assert
(
!
@vm
.
has_process?
(
process
),
...
...
features/step_definitions/git.rb
0 → 100644
View file @
1326c257
Then
/^the Git repository "([\S]+)" has been cloned successfully$/
do
|
repo
|
next
if
@skip_steps_while_restoring_background
assert
(
@vm
.
directory_exist?
(
"/home/
#{
$live_user
}
/
#{
repo
}
/.git"
))
assert
(
@vm
.
file_exist?
(
"/home/
#{
$live_user
}
/
#{
repo
}
/.git/config"
))
@vm
.
execute_successfully
(
"cd '/home/
#{
$live_user
}
/
#{
repo
}
/' && git status"
,
$live_user
)
end
features/torified_git.feature
0 → 100644
View file @
1326c257
@product
Feature
:
Cloning a Git repository
As a Tails user
when I clone a Git repository
all Internet traffic should flow only through Tor
Background
:
Given
a computer
And
I capture all network traffic
And
I start the computer
And
the computer boots Tails
And
I log in to a new session
And
GNOME has started
And
Tor is ready
And
available upgrades have been checked
And
all notifications have disappeared
And
I save the state so the background can be restored next scenario
Scenario
:
Cloning a Git repository anonymously over HTTPS
When I run "git clone https
:
//git-tails.immerda.ch/myprivatekeyispublic/testing"
in
GNOM
E
Terminal
Then
process
"git"
is running within 10 seconds
And
process
"git"
has stopped running after at most 180 seconds
And
the Git repository
"testing"
has been cloned successfully
And
all Internet traffic has only flowed through Tor
Scenario
:
Cloning a Git repository anonymously over the Git protocol
When I run "git clone git
:
//git.tails.boum.org/myprivatekeyispublic/testing"
in
GNOM
E
Terminal
Then
process
"git"
is running within 10 seconds
And
process
"git"
has stopped running after at most 180 seconds
And
the Git repository
"testing"
has been cloned successfully
And
all Internet traffic has only flowed through Tor
wiki/src/contribute/release_process/test.mdwn
View file @
1326c257
...
...
@@ -423,14 +423,6 @@ Start I2P by appending `i2p` to the kernel command line.
# Git
* clone a repository over `git://`
git clone git://git.tails.boum.org/htp
* clone a repository over `https://`
git clone https://git-tails.immerda.ch/htp
* clone a repository over SSH
# SSH
...
...
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