time_syncing.feature 4.96 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

bertagaz's avatar
bertagaz committed
7
8
  #10497: wait_until_tor_is_working
  @fragile
9
  Scenario: Clock with host's time
10
    Given I have started Tails from DVD without network and logged in
11
    When the network is plugged
12
    And Tor is ready
13
14
    Then Tails clock is less than 5 minutes incorrect

bertagaz's avatar
bertagaz committed
15
16
  #10497: wait_until_tor_is_working
  @fragile
17
  Scenario: Clock with host's time in bridge mode
18
    Given I have started Tails from DVD without network and logged in with bridge mode enabled
19
20
21
22
23
24
    When the network is plugged
    And the Tor Launcher autostarts
    And I configure some Bridge pluggable transports in Tor Launcher
    And Tor is ready
    Then Tails clock is less than 5 minutes incorrect

bertagaz's avatar
bertagaz committed
25
26
  #10497: wait_until_tor_is_working
  @fragile
27
  Scenario: Clock is one day in the past
28
    Given I have started Tails from DVD without network and logged in
29
30
    When I bump the system time with "-1 day"
    And the network is plugged
31
    And Tor is ready
32
33
    Then Tails clock is less than 5 minutes incorrect

bertagaz's avatar
bertagaz committed
34
35
  #10497: wait_until_tor_is_working
  @fragile
36
  Scenario: Clock is one day in the past in bridge mode
37
    Given I have started Tails from DVD without network and logged in with bridge mode enabled
38
39
40
41
42
43
44
    When I bump the system time with "-1 day"
    And the network is plugged
    And the Tor Launcher autostarts
    And I configure some Bridge pluggable transports in Tor Launcher
    And Tor is ready
    Then Tails clock is less than 5 minutes incorrect

bertagaz's avatar
bertagaz committed
45
46
  #10497: wait_until_tor_is_working
  @fragile
47
  Scenario: Clock is way in the past
48
    Given I have started Tails from DVD without network and logged in
49
50
    # 13 weeks will span over two Tails release cycles.
    When I bump the system time with "-13 weeks"
51
52
53
54
    And the network is plugged
    And Tor is ready
    Then Tails clock is less than 5 minutes incorrect

bertagaz's avatar
bertagaz committed
55
56
  #10497: wait_until_tor_is_working
  @fragile
57
  Scenario: Clock way in the past in bridge mode
58
    Given I have started Tails from DVD without network and logged in with bridge mode enabled
59
    When I bump the system time with "-6 weeks"
60
61
62
63
64
65
    And the network is plugged
    And the Tor Launcher autostarts
    And I configure some Bridge pluggable transports in Tor Launcher
    And Tor is ready
    Then Tails clock is less than 5 minutes incorrect

bertagaz's avatar
bertagaz committed
66
67
  #10497: wait_until_tor_is_working
  #10440: Time syncing tests are fragile
kytv's avatar
kytv committed
68
  @fragile
69
  Scenario: Clock is one day in the future
70
    Given I have started Tails from DVD without network and logged in
71
72
    When I bump the system time with "+1 day"
    And the network is plugged
73
    And Tor is ready
74
75
    Then Tails clock is less than 5 minutes incorrect

bertagaz's avatar
bertagaz committed
76
77
  #10497: wait_until_tor_is_working
  @fragile
78
  Scenario: Clock is one day in the future in bridge mode
79
    Given I have started Tails from DVD without network and logged in with bridge mode enabled
80
81
82
83
84
85
86
    When I bump the system time with "+1 day"
    And the network is plugged
    And the Tor Launcher autostarts
    And I configure some Bridge pluggable transports in Tor Launcher
    And Tor is ready
    Then Tails clock is less than 5 minutes incorrect

bertagaz's avatar
bertagaz committed
87
88
  #10497: wait_until_tor_is_working
  #10440: Time syncing tests are fragile
kytv's avatar
kytv committed
89
  @fragile
90
  Scenario: Clock way in the future
91
    Given I have started Tails from DVD without network and logged in
92
93
    When I set the system time to "01 Jan 2020 12:34:56"
    And the network is plugged
94
    And Tor is ready
95
96
    Then Tails clock is less than 5 minutes incorrect

bertagaz's avatar
bertagaz committed
97
98
  #10497: wait_until_tor_is_working
  #10440: Time syncing tests are fragile
kytv's avatar
kytv committed
99
  @fragile
100
  Scenario: Clock way in the future in bridge mode
101
    Given I have started Tails from DVD without network and logged in with bridge mode enabled
102
103
104
105
106
107
108
109
    When I set the system time to "01 Jan 2020 12:34:56"
    And the network is plugged
    And the Tor Launcher autostarts
    And I configure some Bridge pluggable transports in Tor Launcher
    And Tor is ready
    Then Tails clock is less than 5 minutes incorrect

Scenario: The system time is not synced to the hardware clock
110
    Given I have started Tails from DVD without network and logged in
111
112
113
    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
114
    Then Tails' hardware clock is close to the host system's time
115

116
  Scenario: Anti-test: Changes to the hardware clock are kept when rebooting
117
    Given I have started Tails from DVD without network and logged in
118
119
120
121
122
    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"

123
  Scenario: Boot with a hardware clock set way in the past and make sure that Tails sets the clock to the build date
124
125
126
127
128
129
    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
    Then the system clock is just past Tails' build date