Skip to content

Commit de3b221

Browse files
committed
First draft of pinning versions.
1 parent d98cb32 commit de3b221

File tree

1 file changed

+45
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)