@@ -44,7 +44,7 @@ Feature: Self Update
4444
4545 Scenario : Automatically Selfupdate
4646 Given an outdated initialised environment
47- And the configuration file has been primed with "sdkman_auto_selfupdate =true"
47+ And the configuration file has been primed with "sdkman_auto_answer =true"
4848 And the system is bootstrapped
4949 When I enter "sdk help"
5050 Then I see "A new version of SDKMAN is available..."
@@ -54,14 +54,22 @@ Feature: Self Update
5454
5555 Scenario : Do not automatically Selfupdate
5656 Given an outdated initialised environment
57- And the configuration file has been primed with "sdkman_auto_selfupdate =false"
57+ And the configuration file has been primed with "sdkman_auto_answer =false"
5858 And the system is bootstrapped
5959 When I enter "sdk help" and answer "n"
6060 Then I see "A new version of SDKMAN is available..."
6161 And I see "Would you like to upgrade now? (Y/n)"
6262 And I see "Not upgrading today..."
6363 And I do not see "Successfully upgraded SDKMAN."
6464
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+
6573 Scenario : Bother the user with Upgrade message once a day
6674 Given an outdated initialised environment
6775 And the system is bootstrapped
0 commit comments