Merge remote-tracking branch 'flapflap/review_muri-de-index'
[tails/matsa.git] / features / pidgin.feature
blob51d4a77694e259f8bcd640a2bad225f847b64fd6
1 @product
2 Feature: Chatting anonymously using Pidgin
3   As a Tails user
4   when I chat using Pidgin
5   I should be able to use OTR
6   And I should be able to persist my Pidgin configuration
7   And AppArmor should prevent Pidgin from doing dangerous things
8   And all Internet traffic should flow only through Tor
10   Background:
11     Given a computer
12     And I capture all network traffic
13     When I start Tails from DVD and I login
14     Then Pidgin has the expected accounts configured with random nicknames
15     And I save the state so the background can be restored next scenario
17   Scenario: Connecting to the #tails IRC channel with the pre-configured account
18     When I start Pidgin through the GNOME menu
19     Then I see Pidgin's account manager window
20     When I activate the "irc.oftc.net" Pidgin account
21     And I close Pidgin's account manager window
22     Then Pidgin successfully connects to the "irc.oftc.net" account
23     And I can join the "#tails" channel on "irc.oftc.net"
24     And all Internet traffic has only flowed through Tor
26   Scenario: Adding a certificate to Pidgin
27     And I start Pidgin through the GNOME menu
28     And I see Pidgin's account manager window
29     And I close Pidgin's account manager window
30     Then I can add a certificate from the "/home/amnesia" directory to Pidgin
32   Scenario: Failing to add a certificate to Pidgin
33     And I start Pidgin through the GNOME menu
34     And I see Pidgin's account manager window
35     And I close Pidgin's account manager window
36     Then I cannot add a certificate from the "/home/amnesia/.gnupg" directory to Pidgin
38   @keep_volumes
39   Scenario: Using a persistent Pidgin configuration
40     Given the USB drive "current" contains Tails with persistence configured and password "asdf"
41     And a computer
42     And I start Tails from USB drive "current" and I login with persistence password "asdf"
43     When I start Pidgin through the GNOME menu
44     Then I see Pidgin's account manager window
45     # And I generate an OTR key for the default Pidgin account
46     And I take note of the configured Pidgin accounts
47     # And I take note of the OTR key for Pidgin's "irc.oftc.net" account
48     And I shutdown Tails and wait for the computer to power off
49     Given a computer
50     And I capture all network traffic
51     And I start Tails from USB drive "current" and I login with persistence password "asdf"
52     And Pidgin has the expected persistent accounts configured
53     # And Pidgin has the expected persistent OTR keys
54     When I start Pidgin through the GNOME menu
55     Then I see Pidgin's account manager window
56     When I activate the "irc.oftc.net" Pidgin account
57     And I close Pidgin's account manager window
58     Then Pidgin successfully connects to the "irc.oftc.net" account
59     And I can join the "#tails" channel on "irc.oftc.net"
60     And all Internet traffic has only flowed through Tor
61     # Exercise Pidgin AppArmor profile with persistence enabled.
62     # This should really be in dedicated scenarios, but it would be
63     # too costly to set up the virtual USB drive with persistence more
64     # than once in this feature.
65     And I cannot add a certificate from the "/home/amnesia/.gnupg" directory to Pidgin
66     When I close Pidgin's certificate import failure dialog
67     And I close Pidgin's certificate manager
68     Then I cannot add a certificate from the "/live/persistence/TailsData_unlocked/gnupg" directory to Pidgin
69     When I close Pidgin's certificate import failure dialog
70     And I close Pidgin's certificate manager
71     Then I can add a certificate from the "/home/amnesia" directory to Pidgin