Commit 1326c257 authored by Tails developers's avatar Tails developers

Merge branch 'test/8669-anonymous-git' into testing

Fix-committed: #8669
parents c579d3f1 7cbb3772
......@@ -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),
......
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
@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 GNOME 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 GNOME 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
......@@ -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
......
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