Merge remote-tracking branch 'origin/master' into stable
[tails.git] / features / tor_bridges.feature
blob69bc3338cb238a32f587583594c2ca8fdab7aa5c
1 @product
2 Feature: Using Tor bridges and pluggable transports
3   As a Tails user
4   I want to circumvent censorship of Tor by using Tor bridges and pluggable transports
5   And avoid connecting directly to the Tor Network
7   Background:
8     Given I have started Tails from DVD without network and logged in
9     And I capture all network traffic
10     When the network is plugged
11     Then the Tor Connection Assistant autostarts
13   Scenario: Using normal bridges
14     When I configure some normal bridges in the Tor Connection Assistant
15     Then I wait until Tor is ready
16     And tca.conf includes the configured bridges
17     And available upgrades have been checked
18     And all Internet traffic has only flowed through the configured bridges or connectivity check service
20   Scenario: Using obfs4 pluggable transports
21     When I configure some obfs4 bridges in the Tor Connection Assistant in hide mode
22     Then I wait until Tor is ready
23     And tca.conf includes the configured bridges
24     And available upgrades have been checked
25     And all Internet traffic has only flowed through the configured bridges
27   Scenario: Using obfs4 pluggable transports from a QR code
28     When I configure some obfs4 bridges from a QR code in the Tor Connection Assistant in hide mode
29     Then I wait until Tor is ready
30     And tca.conf includes the configured bridges
31     And available upgrades have been checked
32     And all Internet traffic has only flowed through the configured bridges
34   Scenario: TCA can scan QR code after a connection failure
35     Given the Tor network and default bridges are blocked
36     When I unsuccessfully configure a direct connection in the Tor Connection Assistant
37     Then the Tor Connection Assistant reports that it failed to connect
38     And tca.conf is empty
39     Given I scan a QR code from the error page in Tor Connection Assistant
40     And I retry connecting to Tor
41     Then I wait until Tor is ready
42     And tca.conf includes the configured bridges
43     And available upgrades have been checked
44     And all Internet traffic has only flowed through the configured bridges or connectivity check service
46   @supports_real_tor
47   Scenario: Default Tor bridges
48     When I configure the default bridges in the Tor Connection Assistant
49     Then I wait until Tor is ready
50     And Tor is configured to use the default bridges
51     And tca.conf includes no bridge
52     And available upgrades have been checked
53     And Tor is configured to use the default bridges
54     And all Internet traffic has only flowed through the default bridges or connectivity check service
56   Scenario: Fall back to default bridges if failing to connect directly to the Tor network
57     Given the Tor network is blocked
58     When I configure a direct connection in the Tor Connection Assistant
59     Then I wait until Tor is ready
60     And tca.conf includes no bridge
61     And available upgrades have been checked
62     And Tor is configured to use the default bridges
63     And all Internet traffic has only flowed through the default bridges or connectivity check service
65   Scenario: TCA can reconnect after a connection failure
66     Given the Tor network and default bridges are blocked
67     When I unsuccessfully configure a direct connection in the Tor Connection Assistant
68     Then the Tor Connection Assistant reports that it failed to connect
69     And tca.conf is empty
70     Given the Tor network and default bridges are unblocked
71     And I retry connecting to Tor
72     Then I wait until Tor is ready
73     And tca.conf includes no bridge
74     And available upgrades have been checked
75     And all Internet traffic has only flowed through Tor or connectivity check service
77   Scenario: Normal bridges are not allowed in "Hide" mode
78     When I try to configure some normal bridges in the Tor Connection Assistant in hide mode
79     Then the Tor Connection Assistant complains that normal bridges are not allowed
80     And I cannot click the "Connect to Tor" button
82   Scenario: The same Tor configuration is applied when the network is reconnected
83     Given I configure a direct connection in the Tor Connection Assistant
84     And I wait until Tor is ready
85     When I disconnect the network through GNOME
86     And I connect the network through GNOME
87     Then the Tor Connection Assistant autostarts
88     And the Tor Connection Assistant connects to Tor
89     And I wait until Tor is ready
90     And Tor is using the same configuration as before
91     And available upgrades have been checked
92     And all Internet traffic has only flowed through Tor or connectivity check service
94   Scenario: Reconnecting from an unblocked network to a blocked network displays an error
95     Given I configure a direct connection in the Tor Connection Assistant
96     And I wait until Tor is ready
97     And I disconnect the network through GNOME
98     And the Tor network and default bridges are blocked
99     When I connect the network through GNOME
100     Then the Tor Connection Assistant reports that it failed to connect
102   Scenario: Tor Connection honors my choice of using default bridges on retry, too
103     Given the Tor network and default bridges are blocked
104     When I unsuccessfully configure some default bridges in the Tor Connection Assistant
105     Then the Tor Connection Assistant reports that it failed to connect
106     Given the Tor network and default bridges are unblocked
107     When I click "Connect to Tor"
108     Then I wait until Tor is ready
109     And Tor is configured to use the default bridges
110     And all Internet traffic has only flowed through the default bridges or connectivity check service