summaryrefslogtreecommitdiffstats
path: root/features/time_syncing.feature
blob: 69a0c9e246a3b6aea21542b07339d04099562568 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
@product @check_tor_leaks
Feature: Time syncing
  As a Tails user
  I want Tor to work properly
  And for that I need a reasonably accurate system clock

  #10497: wait_until_tor_is_working
  @fragile
  Scenario: Clock with host's time
    Given I have started Tails from DVD without network and logged in
    When the network is plugged
    And Tor is ready
    Then Tails clock is less than 5 minutes incorrect

  #10497: wait_until_tor_is_working
  @fragile
  Scenario: Clock with host's time in bridge mode
    Given I have started Tails from DVD without network and logged in with bridge mode enabled
    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

  #10497: wait_until_tor_is_working
  @fragile
  Scenario: Clock is one day in the past
    Given I have started Tails from DVD without network and logged in
    When I bump the system time with "-1 day"
    And the network is plugged
    And Tor is ready
    Then Tails clock is less than 5 minutes incorrect

  #10497: wait_until_tor_is_working
  @fragile
  Scenario: Clock is one day in the past in bridge mode
    Given I have started Tails from DVD without network and logged in with bridge mode enabled
    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

  #10497: wait_until_tor_is_working
  @fragile
  Scenario: Clock is way in the past
    Given I have started Tails from DVD without network and logged in
    # 13 weeks will span over two Tails release cycles.
    When I bump the system time with "-13 weeks"
    And the network is plugged
    And Tor is ready
    Then Tails clock is less than 5 minutes incorrect

  #10497: wait_until_tor_is_working
  @fragile
  Scenario: Clock way in the past in bridge mode
    Given I have started Tails from DVD without network and logged in with bridge mode enabled
    When I bump the system time with "-6 weeks"
    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

  #10497: wait_until_tor_is_working
  #10440: Time syncing tests are fragile
  @fragile
  Scenario: Clock is one day in the future
    Given I have started Tails from DVD without network and logged in
    When I bump the system time with "+1 day"
    And the network is plugged
    And Tor is ready
    Then Tails clock is less than 5 minutes incorrect

  #10497: wait_until_tor_is_working
  @fragile
  Scenario: Clock is one day in the future in bridge mode
    Given I have started Tails from DVD without network and logged in with bridge mode enabled
    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

  #10497: wait_until_tor_is_working
  #10440: Time syncing tests are fragile
  @fragile
  Scenario: Clock way in the future
    Given I have started Tails from DVD without network and logged in
    When I set the system time to "01 Jan 2020 12:34:56"
    And the network is plugged
    And Tor is ready
    Then Tails clock is less than 5 minutes incorrect

  #10497: wait_until_tor_is_working
  #10440: Time syncing tests are fragile
  @fragile
  Scenario: Clock way in the future in bridge mode
    Given I have started Tails from DVD without network and logged in with bridge mode enabled
    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
    Given I have started Tails from DVD without network and logged in
    When I bump the system time with "-15 days"
    And I warm reboot the computer
    And the computer reboots Tails
    Then Tails' hardware clock is close to the host system's time

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

  Scenario: Boot with a hardware clock set way in the past and make sure that Tails sets the clock to the build date
    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