Skip to content

Commit

Permalink
add/update test scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
fmirus committed Oct 7, 2024
1 parent 6a4cd75 commit 478640d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions libs/scenario_execution_docker/scenarios/test_docker_exec.osc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import osc.docker
import osc.helpers

scenario test_docker_exec:
timeout(15s)
do parallel:
docker_run(image: 'ubuntu', command: 'sleep 10', detach: true, container_name: 'sleeping_beauty', remove: true, volumes: ['/srv/nfs4/:/data'])
serial:
docker_exec(container: 'sleeping_beauty', command: 'echo hello world')
docker_exec(container: 'sleeping_beauty', command: 'ls /data')
emit end
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import osc.helpers
scenario test_docker_run:
timeout(15s)
do serial:
docker_run(image: 'ubuntu', command: 'sleep 5', detach: true,remove: true, volumes: ['/srv/nfs4/:/data'])
docker_run(image: 'ubuntu', command: 'sleep 10', detach: true, remove: true, container_name: 'roaring_gorilla', volumes: ['/srv/nfs4/:/data'])
docker_run(image: 'ubuntu', command: 'echo hello world', volumes: ['/srv/nfs4/:/data'])
emit end

0 comments on commit 478640d

Please sign in to comment.