container-structure-test
container-structure-test copied to clipboard
Setup in command test fails to create dir or touch file
I tried setup to create an file which is required to be present or mapped from outside while running the docker image. I tired touch and mkdir but the file is not created. Can you please help me.
- name: "cli command with Config map"
setup: [[ "mkdir", "/data/vishal" ]]
command: "ls"
args: ["-a"]
expectedError: [""]
expectedOutput: ["vishal"]
--- FAIL
stdout: .
..
Error: Expected string 'vishal' not found in output '.
..
'
More info about this, /data is volume in Image that can be mounted from outside. /data is the current working directory for all commands we send.