summaryrefslogtreecommitdiffstats
path: root/features/i2p.feature
blob: ec3c550a9574f15036b8661af4af9016a0e07687 (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
@product
Feature: I2P
  As a Tails user
  I *might* want to use I2P

  Scenario: I2P is disabled by default
    Given I have started Tails from DVD without network and logged in
    Then the I2P Browser desktop file is not present
    And the I2P Browser sudo rules are not present
    And the I2P firewall rules are disabled

  Scenario: I2P is enabled when the "i2p" boot parameter is added
    Given I have started Tails from DVD with I2P enabled and logged in
    Then the I2P Browser desktop file is present
    And the I2P Browser sudo rules are present
    And the I2P firewall rules are enabled

  Scenario: I2P's AppArmor profile is in enforce mode
    Given I have started Tails from DVD with I2P enabled and logged in and the network is connected
    When I2P is running
    Then the running process "i2p" is confined with AppArmor in enforce mode

  Scenario: The I2P Browser works as it should
    Given I have started Tails from DVD with I2P enabled and logged in and the network is connected
    And the I2P router console is ready
    When I start the I2P Browser through the GNOME menu
    Then the I2P router console is displayed in I2P Browser
    And the I2P Browser uses all expected TBB shared libraries

  Scenario: Closing the I2P Browser shows a stop notification and properly tears down the chroot.
    Given I have started Tails from DVD with I2P enabled and logged in and the network is connected
    And the I2P router console is ready
    When I successfully start the I2P Browser
    And I close the I2P Browser
    Then I see the I2P Browser stop notification
    And the I2P Browser chroot is torn down

  Scenario: The I2P internal websites can be viewed in I2P Browser
    Given I have started Tails from DVD with I2P enabled and logged in and the network is connected
    And the I2P router console is ready
    When I start the I2P Browser through the GNOME menu
    Then the I2P router console is displayed in I2P Browser
    And I2P successfully built a tunnel
    When I open the address "http://i2p-projekt.i2p" in the I2P Browser
    Then the I2P homepage loads in I2P Browser

 Scenario: I2P is configured to run in Hidden mode
    Given I have started Tails from DVD with I2P enabled and logged in and the network is connected
    And the I2P router console is ready
    When I start the I2P Browser through the GNOME menu
    Then the I2P router console is displayed in I2P Browser
    And I2P is running in hidden mode

  @fragile
  Scenario: Connecting to the #i2p IRC channel with the pre-configured account
    Given I have started Tails from DVD with I2P enabled and logged in and the network is connected
    And the I2P router console is ready
    And I2P successfully built a tunnel
    When I start Pidgin through the GNOME menu
    Then I see Pidgin's account manager window
    When I activate the "I2P" Pidgin account
    And I close Pidgin's account manager window
    Then Pidgin successfully connects to the "I2P" account
    And I can join the "#i2p" channel on "I2P"

  Scenario: I2P displays a notice when bootstrapping fails
    Given I have started Tails from DVD with I2P enabled and logged in
    And I2P is not running
    When the network is plugged
    And Tor has built a circuit
    And I2P is running
    And I2P's reseeding started
    And the network is unplugged
    Then I see a notification that I2P is not ready
    And I2P's reseeding failed
    But I2P is still running
    When I start the I2P Browser through the GNOME menu
    Then the I2P router console is displayed in I2P Browser

  Scenario: I2P displays a notice when it fails to start
    Given I have started Tails from DVD with I2P enabled and logged in
    And I2P is not running
    And I block the I2P router console port
    Then I2P is not running
    When the network is plugged
    And Tor has built a circuit
    Then I2P is running
    But the network is unplugged
    Then I see a notification that I2P failed to start
    And I2P is not running