You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/resources/features/checksum_verification.feature
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@ Feature: Verify checksums
3
3
Background:
4
4
Given the internet is reachable
5
5
And an initialised environment
6
+
And I have configured "sdkman_checksum_enable" to "true"
6
7
7
8
Scenario: Install a specific Version with a valid SHA-256 checksum
8
9
Given the system is bootstrapped
@@ -85,7 +86,18 @@ Feature: Verify checksums
85
86
And the candidate "grails" version "1.3.9" is installed
86
87
And the response headers file is created for candidate "grails" and version "1.3.9"
87
88
And the exit code is 0
88
-
89
+
90
+
Scenario: Do not fail if checksums are disabled
91
+
Given the system is bootstrapped
92
+
And I have configured "sdkman_checksum_enable" to "false"
93
+
And the candidate "grails" version "1.3.9" is available for download with checksum "abc-checksum-00000" using algorithm "SHA-256"
94
+
When I enter "sdk install grails 1.3.9"
95
+
Then I see "Checksums are disabled, skipping verification"
96
+
And I see "Done installing!"
97
+
And the candidate "grails" version "1.3.9" is installed
98
+
And the response headers file is created for candidate "grails" and version "1.3.9"
99
+
And the exit code is 0
100
+
89
101
Scenario: Abort installation after download of a binary with invalid SHA checksum
90
102
Given the system is bootstrapped
91
103
And the candidate "grails" version "1.3.9" is available for download with checksum "c68e386a6deec9fc4c1e18df21f927000000000e" using algorithm "SHA-256"
0 commit comments