summaryrefslogtreecommitdiffstats
path: root/features/torified_git.feature
blob: b32db42fc1c1cbd0874690e0b9646d8b2e311ad7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@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

  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
    And all Internet traffic has only flowed through Tor