Skip to content

Commit 59ef424

Browse files
committed
Fix broken (false positive) test for pre/post hooks.
1 parent 5a8c2f4 commit 59ef424

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed
Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,37 @@
11
Feature: Hooks
22

3+
We can safely remove this feature when `.tar.gz` and `.zip` are supported directly by the backend.
4+
35
Background:
46
Given the internet is reachable
57
And an initialised environment
68

79
Scenario: Pre- and Post-installation Hooks return successfully
810
And a machine with "Linux" installed
911
And the system is bootstrapped
10-
And the candidate "java" version "8u92" is available for download on "Linux"
11-
And a "pre" install hook is served for "java" "8u92" on "Linux" that returns successfully
12-
And a "post" install hook is served for "java" "8u92" on "Linux" that returns successfully
13-
When I enter "sdk install java 8u92"
12+
And the candidate "grails" version "2.1.0" is available for download on "Linux"
13+
And a "pre" install hook is served for "grails" "2.1.0" on "Linux" that returns successfully
14+
And a "post" install hook is served for "grails" "2.1.0" on "Linux" that returns successfully
15+
When I enter "sdk install grails 2.1.0"
1416
Then I see "Pre-installation hook success"
1517
And I see "Post-installation hook success"
18+
And the exit code is 0
1619

1720
Scenario: Pre-installation Hook returns a non-zero code
1821
And a machine with "Linux" installed
1922
And the system is bootstrapped
20-
And the candidate "java" version "8u92" is available for download on "Linux"
21-
And a "pre" install hook is served for "java" "8u92" on "Linux" that returns a failure
22-
When I enter "sdk install java 8u92"
23+
And the candidate "grails" version "2.1.0" is available for download on "Linux"
24+
And a "pre" install hook is served for "grails" "2.1.0" on "Linux" that returns a failure
25+
When I enter "sdk install grails 2.1.0"
2326
Then I see "Pre-installation hook failure"
27+
And the exit code is 1
2428

2529
Scenario: Post-install Hook returns a non-zero code
2630
And a machine with "Linux" installed
2731
And the system is bootstrapped
28-
And the candidate "java" version "8u92" is available for download on "Linux"
29-
And a "pre" install hook is served for "java" "8u92" on "Linux" that returns successfully
30-
And a "post" install hook is served for "java" "8u92" on "Linux" that returns a failure
31-
When I enter "sdk install java 8u92"
32+
And the candidate "grails" version "2.1.0" is available for download on "Linux"
33+
And a "pre" install hook is served for "grails" "2.1.0" on "Linux" that returns successfully
34+
And a "post" install hook is served for "grails" "2.1.0" on "Linux" that returns a failure
35+
When I enter "sdk install grails 2.1.0"
3236
Then I see "Post-installation hook failure"
37+
And the exit code is 1

0 commit comments

Comments
 (0)