Skip to content

Instantly share code, notes, and snippets.

@renatomefi
Last active February 27, 2019 21:15
Show Gist options
  • Save renatomefi/fd7617304872e05cb7670537515f9324 to your computer and use it in GitHub Desktop.
Save renatomefi/fd7617304872e05cb7670537515f9324 to your computer and use it in GitHub Desktop.
$ chmod +x ./test.sh
$ ./test.sh ./test.sh alpine-app        
Starting a container for 'alpine-app'
=============== test session starts =======================================================
platform linux2 -- Python 2.7.15, pytest-4.3.0, py-1.8.0, pluggy-0.9.0 -- /usr/bin/python2
rootdir: /tests, inifile:
plugins: testinfra-1.19.0
collected 1 item                                                                                                                                                                            

test_user.py::test_userPresent[docker://e05f29e4d535] PASSED                         [100%]

=============== 1 passed in 0.74 seconds ==================================================

$ docker ps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment