forked from marcelcorso/gcloud-pubsub-emulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
container-structure-test.yaml
47 lines (41 loc) · 1.05 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
43
44
45
46
47
---
schemaVersion: 2.0.0
commandTests:
- name: 'pubsubc'
command: 'pubsubc'
args: ['-help']
expectedOutput:
- '.*Usage: env PUBSUB_PROJECT1="project1,topic1,topic2:subscription1" pubsubc.*'
- name: 'wait-for'
command: 'wait-for'
args: ['--version']
expectedOutput:
- '2\.2\.4'
- name: 'jre'
command: 'java'
args: ['--version']
expectedOutput:
- '.*openjdk 17\.(\d{1,}\.\d{1,}).+'
- '.*OpenJDK Runtime Environment.+'
- '.*OpenJDK 64-Bit Server VM.+'
- name: 'pubsub-emulator'
command: 'gcloud'
args: ['components', 'list', '--only-local-state']
expectedOutput:
- '.*gcloud Beta Commands .+ beta .+'
- '.*Cloud Pub\/Sub Emulator .+ pubsub-emulator .+'
fileExistenceTests:
- name: 'run.sh'
path: '/run.sh'
shouldExist: true
permissions: '-rwxr-xr-x'
uid: 1001
gid: 0
isExecutableBy: 'owner'
- name: 'netcat-openbsd'
path: '/usr/bin/nc'
shouldExist: true
permissions: '-rwxr-xr-x'
uid: 0
gid: 0
isExecutableBy: 'owner'