Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First draft of pinning versions. #793

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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