Merge remote-tracking branch 'origin/master' into stable
[tails.git] / features / untrusted_partitions.feature
blobaef432a7ecb1dd9288a611aa41a90ea99cc76430
1 @product
2 Feature: Untrusted partitions
3   As a Tails user
4   I don't want to touch other media than the one Tails runs from
6   Scenario: Tails ignores a swap volume and another Tails that are on an internal hard drive
7     Given a computer
8     And I temporarily create a 100 MiB disk named "swap"
9     And I create a gpt swap partition on disk "swap"
10     And I plug SATA drive "swap"
11     And I temporarily create a 2 GiB disk named "live_hd"
12     And I write the Tails ISO image to disk "live_hd"
13     And I plug SATA drive "live_hd"
14     When I start Tails with network unplugged and I login
15     Then a "swap" partition was detected by Tails on drive "swap"
16     And drive "live_hd" is detected by Tails
17     But Tails has no disk swap enabled
18     And drive "live_hd" is not mounted
20   Scenario: The Welcome Screen ignores Persistent Storage stored on a non-removable USB drive
21     Given a computer
22     And I temporarily create a 100 MiB disk named "fake_TailsData"
23     And I create a gpt partition labeled "TailsData" with an ext4 filesystem encrypted with password "asdf" on disk "fake_TailsData"
24     And I plug non-removable USB drive "fake_TailsData"
25     When I start the computer
26     And the computer boots Tails
27     Then drive "fake_TailsData" is detected by Tails
28     And Tails Greeter has not detected a persistence partition
30   Scenario: The Welcome Screen ignores Persistent Storage stored on an internal hard drive
31     Given a computer
32     And I temporarily create a 100 MiB disk named "fake_TailsData"
33     And I create a gpt partition labeled "TailsData" with an ext4 filesystem encrypted with password "asdf" on disk "fake_TailsData"
34     And I plug SATA drive "fake_TailsData"
35     When I start the computer
36     And the computer boots Tails
37     Then drive "fake_TailsData" is detected by Tails
38     And Tails Greeter has not detected a persistence partition
40   Scenario: Booting Tails does not automount untrusted partitions
41     Given a computer
42     And I temporarily create a 100 MiB disk named "gpt_ext2"
43     And I create a gpt partition with an ext2 filesystem on disk "gpt_ext2"
44     And I plug SATA drive "gpt_ext2"
45     And I temporarily create a 100 MiB disk named "msdos_fat32"
46     And I create an msdos partition with a vfat filesystem on disk "msdos_fat32"
47     And I plug SATA drive "msdos_fat32"
48     And I start Tails from DVD with network unplugged and I login
49     Then drive "gpt_ext2" is detected by Tails
50     And drive "gpt_ext2" is not mounted
51     And drive "msdos_fat32" is detected by Tails
52     And drive "msdos_fat32" is not mounted