summaryrefslogtreecommitdiffstats
path: root/features/time_syncing.feature
diff options
context:
space:
mode:
Diffstat (limited to 'features/time_syncing.feature')
-rw-r--r--features/time_syncing.feature41
1 files changed, 41 insertions, 0 deletions
diff --git a/features/time_syncing.feature b/features/time_syncing.feature
new file mode 100644
index 00000000..a32d5a70
--- /dev/null
+++ b/features/time_syncing.feature
@@ -0,0 +1,41 @@
+@product
+Feature: Time syncing
+ As a Tails user
+ I want Tor to work properly
+ And for that I need a reasonably accurate system clock
+
+ Background:
+ Given a computer
+ And I start Tails from DVD with network unplugged and I login
+ And I save the state so the background can be restored next scenario
+
+ Scenario: Clock with host's time
+ When the network is plugged
+ And Tor is ready
+ Then Tails clock is less than 5 minutes incorrect
+
+ Scenario: Clock is one day in the past
+ 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
+
+ Scenario: Clock way in the past
+ When I set the system time to "01 Jan 2000 12:34:56"
+ And the network is plugged
+ And Tor is ready
+ Then Tails clock is less than 5 minutes incorrect
+
+ Scenario: Clock is one day in the future
+ 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
+
+ Scenario: Clock way in the future
+ 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
+
+# Scenario: Clock vs Tor consensus' valid-{after,until} etc.