File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+
3+ - name : Install testinfra at version 5.0.0
4+ pip : state=present name=testinfra version=5.0.0
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ verify_vm() {
6868 big_step " Verifying the VM..."
6969 cd $REPO_ROOT
7070 step " run integration tests"
71- # testinfra -v --spec --color=yes spec/*.py
71+ py.test -v --color=yes spec/* .py
7272}
7373
7474big_step () {
Original file line number Diff line number Diff line change 1010- hosts : localhost
1111 roles :
1212 - { role: readme, tags: "readme" }
13+ - { role: testinfra, tags: "testinfra" }
Original file line number Diff line number Diff line change 1+
2+ def test_testinfra_is_installed_at_version_5_0_0_ (host ):
3+ cmd = host .run ("pip3 show --disable-pip-version-check testinfra" )
4+ assert cmd .rc is 0
5+ assert "Name: testinfra\n Version: 5.0.0" in cmd .stdout
You can’t perform that action at this time.
0 commit comments