|  | 
|  | 1 | +Feature: Pinned version series | 
|  | 2 | + | 
|  | 3 | +	Background: | 
|  | 4 | +		Given the internet is reachable | 
|  | 5 | +		And an initialised environment | 
|  | 6 | +		 | 
|  | 7 | +	Scenario: A major series is pinned for the default vendor to continuously upgrade | 
|  | 8 | +		Given a machine with "Linux" installed | 
|  | 9 | +		And the system is bootstrapped | 
|  | 10 | +		And the default vendor is "AdoptOpenJDK" with label "adpt" | 
|  | 11 | +		And the following candidate versions are available for download | 
|  | 12 | +		| java      | 11.0.6   | 11     | AdoptOpenJDK | Linux    | | 
|  | 13 | +		| java      | 11.0.5   | 11     | AdoptOpenJDK | Linux    | | 
|  | 14 | +		| java      | 8.0.121  | 8      | AdoptOpenJDK | Linux    | | 
|  | 15 | +		| java      | 8.0.111  | 8      | AdoptOpenJDK | Linux    | | 
|  | 16 | +		| java      | 8.0.101  | 8      | AdoptOpenJDK | Linux    | | 
|  | 17 | +		When I enter "sdk pin java 8" | 
|  | 18 | +		And I enter "sdk install java" | 
|  | 19 | +		Then the candidate "java" version "8.0.121" is installed | 
|  | 20 | +		Given the following candidate versions are available for download | 
|  | 21 | +		| java      | 8.0.131  | 8      | default | Linux    | | 
|  | 22 | +		And I enter "sdk install java" | 
|  | 23 | +		Then the candidate "java" version "8.0.131" is installed | 
|  | 24 | +		 | 
|  | 25 | +	Scenario: A major version is pinned for a specific vendor to continuously upgrade | 
|  | 26 | +		Given a machine with "Linux" installed | 
|  | 27 | +		And the system is bootstrapped | 
|  | 28 | +		And the default vendor is "AdoptOpenJDK" with label "adpt" | 
|  | 29 | +		And an additional vendor is "Amazon" with label "amzn" | 
|  | 30 | +		And the following candidate versions are available for download | 
|  | 31 | +			| java      | 11.0.5   | 11     | AdoptOpenJDK | Linux    | | 
|  | 32 | +			| java      | 11.0.5   | 11     | Amazon       | Linux    | | 
|  | 33 | +			| java      | 8.0.121  | 8      | Amazon       | Linux    | | 
|  | 34 | +			| java      | 8.0.111  | 8      | AdoptOpenJDK | Linux    | | 
|  | 35 | +			| java      | 8.0.111  | 8      | Amazon       | Linux    | | 
|  | 36 | +			| java      | 8.0.101  | 8      | AdoptOpenJDK | Linux    | | 
|  | 37 | +			| java      | 8.0.101  | 8      | Amazon       | Linux    | | 
|  | 38 | +		When I enter "sdk pin java 8 adpt" | 
|  | 39 | +		And I enter "sdk install java" | 
|  | 40 | +		Then the candidate "java" version "8.0.111" is installed | 
|  | 41 | +		Given the following candidate versions are available for download | 
|  | 42 | +			| java      | 8.0.121  | 8      | AdoptOpenJDK | Linux    | | 
|  | 43 | +		And I enter "sdk install java" | 
|  | 44 | +		Then the candidate "java" version "8.0.121" is installed | 
0 commit comments