-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcontainer-structure-test.yaml
executable file
·42 lines (40 loc) · 1.14 KB
/
container-structure-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
schemaVersion: "2.0.0"
# check that jbang is in the correct location
fileExistenceTests:
- name: "jbang installation"
path: '/jbang/bin/jbang'
shouldExist: true
commandTests:
- name: "does basic jbang work"
command: "/jbang/bin/jbang"
expectedError:
- "jbang is a tool for building and running"
- "Website: https"
- name: "JBANG_VERSION has a version number"
command: "echo"
args: ["jb $JBANG_VERSION"]
expectedOutput: ["jb \\d+.\\d+\\d+"]
- name: "hello world via url"
command: "entrypoint"
args:
- "https://github.com/jbangdev/jbang/blob/HEAD/itests/helloworld.java"
expectedOutput:
- "Hello World"
- name: "Does trust work"
envVars:
- key: INPUT_TRUST
value: https://github.com/jruby
command: "entrypoint"
expectedError:
- ".*(Trusting permanently:).*"
- ".*(https://github.com/jruby).*"
- name: "Does multiple arguments work"
envVars:
- key: INPUT_SCRIPT
value: hello@jbangdev
- key: INPUT_SCRIPTARGS
value: Hello There
command: "entrypoint"
expectedOutput:
- "Hello Hello"
- "Hello There"