@@ -14,75 +14,6 @@ Feature: Self Update
1414 And I see "Updating SDKMAN..."
1515 And I see "Successfully upgraded SDKMAN."
1616
17- Scenario : Selfupdate when out of date
18- Given an outdated initialised environment
19- And the system is bootstrapped
20- When I enter "sdk selfupdate"
21- Then I do not see "A new version of SDKMAN is available..."
22- And I do not see "Would you like to upgrade now? (Y/n)"
23- And I do not see "Not upgrading today..."
24- And I see "Updating SDKMAN..."
25- And I see "Successfully upgraded SDKMAN."
26-
27- Scenario : Agree to a suggested Selfupdate
28- Given an outdated initialised environment
29- And the system is bootstrapped
30- When I enter "sdk help" and answer "Y"
31- Then I see "A new version of SDKMAN is available..."
32- And I see "Would you like to upgrade now? (Y/n)"
33- And I see "Successfully upgraded SDKMAN."
34- And I do not see "Not upgrading today..."
35-
36- Scenario : Do not agree to a suggested Selfupdate
37- Given an outdated initialised environment
38- And the system is bootstrapped
39- When I enter "sdk help" and answer "N"
40- Then I see "A new version of SDKMAN is available..."
41- And I see "Would you like to upgrade now? (Y/n)"
42- And I see "Not upgrading today..."
43- And I do not see "Successfully upgraded SDKMAN."
44-
45- Scenario : Automatically Selfupdate
46- Given an outdated initialised environment
47- And the configuration file has been primed with "sdkman_auto_answer=true"
48- And the system is bootstrapped
49- When I enter "sdk help"
50- Then I see "A new version of SDKMAN is available..."
51- And I do not see "Would you like to upgrade now? (Y/n)"
52- And I do not see "Not upgrading today..."
53- And I see "Successfully upgraded SDKMAN."
54-
55- Scenario : Do not automatically Selfupdate
56- Given an outdated initialised environment
57- And the configuration file has been primed with "sdkman_auto_answer=false"
58- And the system is bootstrapped
59- When I enter "sdk help" and answer "n"
60- Then I see "A new version of SDKMAN is available..."
61- And I see "Would you like to upgrade now? (Y/n)"
62- And I see "Not upgrading today..."
63- And I do not see "Successfully upgraded SDKMAN."
64-
65- Scenario : Do not check and prompt for update
66- Given an outdated initialised environment
67- And the configuration file has been primed with "sdkman_selfupdate_enable=false"
68- And the system is bootstrapped
69- When I enter "sdk help"
70- Then I do not see "A new version of SDKMAN is available..."
71- And I do not see "Would you like to upgrade now? (Y/n)"
72-
73- Scenario : Bother the user with Upgrade message once a day
74- Given an outdated initialised environment
75- And the system is bootstrapped
76- When I enter "sdk help" and answer "N"
77- Then I see "A new version of SDKMAN is available..."
78- And I see "Would you like to upgrade now? (Y/n)"
79- And I see "Not upgrading today..."
80- And I enter "sdk help"
81- Then I do not see "A new version of SDKMAN is available..."
82- And I do not see "Would you like to upgrade now? (Y/n)"
83- And I do not see "Not upgrading now..."
84- And I do not see "Successfully upgraded SDKMAN."
85-
8617 Scenario : Selfupdate when not out of date
8718 Given an initialised environment
8819 And the system is bootstrapped
0 commit comments