Add scenario for default compatible java version.

This commit is contained in:
Marco Vermeulen
2016-11-28 13:30:57 +00:00
parent 51ddcf5417
commit cea39cceee

View File

@@ -15,7 +15,7 @@ Feature: Java Multi Platform Binary Distribution
Given the internet is reachable
And an initialised environment
Scenario: Platform is supported and a compatible binary is installed
Scenario: Platform is supported and a specific version of compatible binary is installed
Given a machine with "Linux" installed
And the system is bootstrapped
And the candidate "java" version "8u111" is available for download on "Linux"
@@ -27,6 +27,19 @@ Feature: Java Multi Platform Binary Distribution
And the candidate "java" version "8u111" is installed
And the cookie has been removed
Scenario: Platform is supported and a default version of compatible binary is installed
Given a machine with "Linux" installed
And the system is bootstrapped
And the default "java" version is "8u111"
And the candidate "java" version "8u111" is available for download on "Linux"
And a cookie is required for installing "java" "8u111" on "Linux"
And the appropriate multi-platform hooks are available for "java" version "8u111" on "Linux"
When I enter "sdk install java", accept the license agreement and confirm to make this the default installation
Then a download request was made for "java" "8u111" on "Linux" with cookie "oraclelicense=accept-securebackup-cookie"
And I see "Done installing!"
And the candidate "java" version "8u111" is installed
And the cookie has been removed
Scenario: Platform is supported but the User does not agree with the Oracle Binary Code License Agreement
And a machine with "Linux" installed
And the system is bootstrapped