summaryrefslogtreecommitdiffstats
path: root/features/torified_git.feature
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2016-03-14 15:36:16 +0100
committerHolger Levsen <holger@layer-acht.org>2016-04-28 21:52:10 +0200
commitda080c472fc415b0ce918f4dd4a1ab143bb1bca4 (patch)
treebf63179f32f0eda0c2d5796e3e31c18c3c1185cf /features/torified_git.feature
parent26a9e8ec2bcae03db4d663d87b44d8708d64fdc2 (diff)
downloadjenkins.debian.net-da080c472fc415b0ce918f4dd4a1ab143bb1bca4.tar.xz
rough attempt to grab the good cucumber bits from recent tails
Diffstat (limited to 'features/torified_git.feature')
-rw-r--r--features/torified_git.feature31
1 files changed, 31 insertions, 0 deletions
diff --git a/features/torified_git.feature b/features/torified_git.feature
new file mode 100644
index 00000000..04e19a53
--- /dev/null
+++ b/features/torified_git.feature
@@ -0,0 +1,31 @@
+#10497: wait_until_tor_is_working
+#10444: Git tests are fragile
+@product @check_tor_leaks @fragile
+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 I have started Tails from DVD and logged in and the network is connected
+
+ @fragile
+ 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
+
+ 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
+
+ Scenario: Cloning git repository over SSH
+ Given I have the SSH key pair for a Git repository
+ When I run "git clone tails@git.tails.boum.org:myprivatekeyispublic/testing" in GNOME Terminal
+ Then process "git" is running within 10 seconds
+ When I verify the SSH fingerprint for the Git repository
+ And process "git" has stopped running after at most 180 seconds
+ Then the Git repository "testing" has been cloned successfully