Skip to content

Commit 4de2698

Browse files
authored
Add test to simulate initContainer (#22)
1 parent 583c7b8 commit 4de2698

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

skaffold-duct-tape/test/duct-tape-structure-tests.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,17 @@ fileExistenceTests:
88
path: '/duct-tape/python/lib/python2.7/site-packages/ptvsd/__init__.py'
99
- name: 'ptvsd for python 3.7'
1010
path: '/duct-tape/python/lib/python3.7/site-packages/ptvsd/__init__.py'
11+
12+
13+
commandTests:
14+
- name: "run with no /dbg should fail"
15+
command: "sh"
16+
args: ["/install.sh"]
17+
expectedError: ["Error: installation requires a volume mount at /dbg"]
18+
exitCode: 1
19+
- name: "run with /dbg should install"
20+
setup: [["mkdir", "/dbg"]]
21+
command: "sh"
22+
args: ["/install.sh"]
23+
expectedOutput: ["Installing runtime debugging support files in /dbg", "Installation complete"]
24+
exitCode: 0

0 commit comments

Comments
 (0)