time_syncing.feature 3.29 KB
Newer Older
1
@product @check_tor_leaks
2
3
4
Feature: Time syncing
  As a Tails user
  I want Tor to work properly
Tails developers's avatar
Tails developers committed
5
  And for that I need a reasonably accurate system clock
6
7

  Scenario: Clock with host's time
8
    Given I have started Tails from DVD without network and logged in
9
    When the network is plugged
10
    And Tor is ready
11
12
    Then Tails clock is less than 5 minutes incorrect

13
14
  #11589
  @fragile
15
  Scenario: Clock with host's time while using bridges
16
    Given I have started Tails from DVD without network and logged in
17
    When the network is plugged
18
19
    And the Tor Connection Assistant autostarts
    And I configure some normal bridges in the Tor Connection Assistant
20
21
    And Tor is ready
    Then Tails clock is less than 5 minutes incorrect
22
23
24

  #11589
  @fragile
25
  Scenario: Clock is one day in the future while using bridges
26
    Given I have started Tails from DVD without network and logged in
27
28
    When I bump the system time with "+1 day"
    And the network is plugged
29
30
    And the Tor Connection Assistant autostarts
    And I configure some normal bridges in the Tor Connection Assistant
31
32
    And Tor is ready
    Then Tails clock is less than 5 minutes incorrect
33

34
  @not_release_blocker
anonym's avatar
anonym committed
35
  Scenario: The system time is not synced to the hardware clock
36
    Given I have started Tails from DVD without network and logged in
37
38
39
    When I bump the system time with "-15 days"
    And I warm reboot the computer
    And the computer reboots Tails
kytv's avatar
kytv committed
40
    Then Tails' hardware clock is close to the host system's time
41

42
  @not_release_blocker
43
  Scenario: Anti-test: Changes to the hardware clock are kept when rebooting
44
    Given I have started Tails from DVD without network and logged in
45
46
47
48
49
    When I bump the hardware clock's time with "-15 days"
    And I warm reboot the computer
    And the computer reboots Tails
    Then the hardware clock is still off by "-15 days"

intrigeri's avatar
intrigeri committed
50
  Scenario: The clock is set to the source date when the hardware clock is way in the past
51
52
53
54
55
    Given a computer
    And the network is unplugged
    And the hardware clock is set to "01 Jan 2000 12:34:56"
    And I start the computer
    And the computer boots Tails
56
    Then the system clock is just past Tails' source date
boyska's avatar
boyska committed
57

58
  Scenario: I can connect to obfs4 bridges having a clock East of UTC
boyska's avatar
boyska committed
59
    Given a computer
60
    And the network is unplugged
boyska's avatar
boyska committed
61
62
63
64
65
    And the hardware clock is set to "+8 hours"
    And I start the computer
    And the computer boots Tails
    And I log in to a new session
    And all notifications have disappeared
66
    And I capture all network traffic
boyska's avatar
boyska committed
67
68
    And the network is plugged
    And the Tor Connection Assistant autostarts
69
    # Anti-test: Users east of UTC can't connect to obfs4 bridges
boyska's avatar
boyska committed
70
    When I unsuccessfully configure some obfs4 bridges in the Tor Connection Assistant
boyska's avatar
boyska committed
71
    Then the Tor Connection Assistant reports that it failed to connect
72
73
    # The "set time" button allows users to recover from this bug
    When I set the time zone in TCA to "Asia/Shanghai"
boyska's avatar
boyska committed
74
    Then Tails clock is less than 5 minutes incorrect
boyska's avatar
boyska committed
75
76
77
    # XXX: this fails if tor is too fast to recover after the restart implied by setting the time
    #      TCA will notice this and switch to the success window
    #      so the button "Connect to Tor" cannot be clicked
boyska's avatar
boyska committed
78
    When I click "Connect to Tor"
boyska's avatar
boyska committed
79
80
    Then Tor is ready
    And all Internet traffic has only flowed through the configured bridges