summaryrefslogtreecommitdiffstats
path: root/cucumber/features/install.feature
blob: 2fa3238622c88c810bf15c907dee784ea5acf41f (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
@product
Feature: Doing variations on d-i installs
  As a normal user
  I should be able to install Debian

  @both-ui
  Scenario Outline: Install Debian, and boot to a login prompt
    Given I install a <target_ui> Debian system, in <install_ui> mode
    When I start the computer
    Then I should see a <login> Login prompt

    Examples:
      | install_ui | target_ui | login |
      | gui        | minimal   | VT    |
      | text       | non-GUI   | VT    |
      #| gui        | Gnome     | Gnome |
      #| gui        | LXDE      | LXDE  |
      #| gui        | XFCE      | XFCE  |
      #| gui        | KDE       | KDE   |

  @gui
  Scenario Outline: Install Debian, and boot to a login prompt
    Given I install a <target_ui> Debian system, in gui mode
    When I start the computer
    Then I should see a <login> Login prompt

    Examples:
      | target_ui | login |
      | non-GUI   | VT    |
      | XFCE      | XFCE  |
      | KDE       | KDE   |

  @text-ui
  Scenario Outline: Install Debian, and boot to a login prompt
    Given I install a <target_ui> Debian system, in text mode
    When I start the computer
    Then I should see a <login> Login prompt

    Examples:
      | target_ui | login |
      | minimal   | VT    |
      | Gnome     | Gnome |
      | LXDE      | LXDE  |

  @broken
  Scenario: Attempt to Install Gnome, expecting it to fail because X doesn't start for some reason
    Given I have started Debian Installer in text mode and stopped at the Tasksel prompt
    And I intend to use text mode
    And I select the Gnome task
    And I wait while the bulk of the packages are installed
    And I install GRUB
    And I allow reboot after the install is complete
    And I wait for the reboot
    And I power off the computer
    And the computer is set to boot from ide drive
    When I start the computer
    Then I should see a Gnome Login prompt

#  Scenario: Get a useful error from a bogus HTTP proxy
#    Given I get d-i to the HTTP proxy prompt
#    When I set the proxy to "127.23.23.23"
#    Then I should get an error message that mentions the proxy

  # this is useful for just proving that the d-i image is able to boot
  @trivial
  Scenario: Minimal Boot test
    Given a disk is created for Debian Installer tests
    And I intend to use gui mode
    When I start the computer
    Then I select the install mode

  @preseed
  Scenario: Preseed using hands.com with checksum
    Given a disk is created for Debian Installer tests
    And I intend to use gui mode
    And I intend to boot with options "auto=true priority=critical url=hands.com classes=jenkins.debian.org/pb10;loc/gb;hands.com/general-tweaks;setup/users;partition/atomic;desktop/lxde hands-off/checksigs=true DEBCONF_DEBUG=5"
    And I start the computer
    And I select the install mode
    And I expect package installation to start
    And I wait while the bulk of the packages are installed
    And the VM shuts down within 20 minutes
    When the computer is set to boot from ide drive
    And I start the computer
    Then I should see a LXDE Login prompt

  @debedu
  Scenario: Install default Debedu
    Given a disk is created for Debian Installer tests
    And I intend to use gui mode
    And I start the computer
    And I select the install mode
    And I select British English
    And I select Standalone Debian-Edu profile
    And I use the Debian-Edu Automatic Partitioning
    And I ignore Popcon
    And I set the root password to "rootme"
    And I set the password for "Philip Hands" to be "verysecret"
    And I wait while the bulk of the packages are installed
    And I install GRUB
    And I allow reboot after the install is complete
    And I wait for the reboot
    And I power off the computer
    And the computer is set to boot from ide drive
    When I start the computer
    Then I should see a Gnome Login prompt