Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 434 Bytes

MEMO.md

File metadata and controls

18 lines (16 loc) · 434 Bytes

Testing to prodction server

  • Add vagrant instance ssh-config
$ vagrant ssh-config >> ~/.ssh/config
  • Install ansible, testinfra into venv
$ pipenv install -d
$ pipenv shell
  • Set invetory file then execute tests
(.venv)$ export MOLECULE_INVENTORY_FILE=.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory
(.venv)$ pytest --hosts='ssh://default'