Skip to content

Commit

Permalink
First draft of pinning versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
marc0der committed Sep 3, 2020
1 parent d98cb32 commit de3b221
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions src/test/resources/features/pinned_version_series.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
@review
Feature: Pinned version series

Background:
Given the internet is reachable
And an initialised environment

Scenario: A major series is pinned for the default vendor to continuously upgrade
Given a machine with "Linux" installed
And the system is bootstrapped
And the default vendor is "AdoptOpenJDK" with label "adpt"
And the following candidate versions are available for download
| java | 11.0.6 | 11 | AdoptOpenJDK | Linux |
| java | 11.0.5 | 11 | AdoptOpenJDK | Linux |
| java | 8.0.121 | 8 | AdoptOpenJDK | Linux |
| java | 8.0.111 | 8 | AdoptOpenJDK | Linux |
| java | 8.0.101 | 8 | AdoptOpenJDK | Linux |
When I enter "sdk pin java 8"
And I enter "sdk install java"
Then the candidate "java" version "8.0.121" is installed
Given the following candidate versions are available for download
| java | 8.0.131 | 8 | default | Linux |
And I enter "sdk install java"
Then the candidate "java" version "8.0.131" is installed

Scenario: A major version is pinned for a specific vendor to continuously upgrade
Given a machine with "Linux" installed
And the system is bootstrapped
And the default vendor is "AdoptOpenJDK" with label "adpt"
And an additional vendor is "Amazon" with label "amzn"
And the following candidate versions are available for download
| java | 11.0.5 | 11 | AdoptOpenJDK | Linux |
| java | 11.0.5 | 11 | Amazon | Linux |
| java | 8.0.121 | 8 | Amazon | Linux |
| java | 8.0.111 | 8 | AdoptOpenJDK | Linux |
| java | 8.0.111 | 8 | Amazon | Linux |
| java | 8.0.101 | 8 | AdoptOpenJDK | Linux |
| java | 8.0.101 | 8 | Amazon | Linux |
When I enter "sdk pin java 8 adpt"
And I enter "sdk install java"
Then the candidate "java" version "8.0.111" is installed
Given the following candidate versions are available for download
| java | 8.0.121 | 8 | AdoptOpenJDK | Linux |
And I enter "sdk install java"
Then the candidate "java" version "8.0.121" is installed

0 comments on commit de3b221

Please sign in to comment.