Browse Source

infrastructure: minimal molecule verify

keep-around/441bb62798e1d13de9e6fa259e2b013ebcc09baf
Loïc Dachary 4 years ago
parent
commit
c2f5289dc3
  1. 2
      .gitignore
  2. 2
      molecule/infrastructure/molecule.yml
  3. 8
      molecule/infrastructure/tests/test_securedrop_club.py
  4. 4
      requirements.in
  5. 2
      requirements.txt

2
.gitignore

@ -2,3 +2,5 @@
.molecule
secrets.yml
*.retry
__pycache__
.cache

2
molecule/infrastructure/molecule.yml

@ -30,7 +30,5 @@ scenario:
- destroy
verifier:
name: testinfra
options:
n: auto
lint:
name: flake8

8
molecule/infrastructure/tests/test_securedrop_club.py

@ -0,0 +1,8 @@
import pytest
def test_molecule(Command):
c = Command("""
source /srv/virtualenv/bin/activate
which molecule
""")
assert c.rc == 0

4
requirements.in

@ -2,3 +2,7 @@ ansible
pip-tools
molecule
shade
# we need 1.7.1 otherwise it fails but ... molecule wants 1.6.3 so we need
# to patch requirements.txt manually. Debugging conflicts requires running
# pip-compile --verbose because of https://github.com/jazzband/pip-tools/issues/220
testinfra

2
requirements.txt

@ -102,7 +102,7 @@ simplejson==3.11.1 # via osc-lib, python-cinderclient, python-novaclient
six==1.11.0 # via ansible-lint, bcrypt, click-completion, cliff, cmd2, cryptography, debtcollector, fasteners, git-url-parse, keystoneauth1, munch, openstacksdk, osc-lib, oslo.config, oslo.i18n, oslo.serialization, oslo.utils, pip-tools, pynacl, pyopenssl, python-cinderclient, python-dateutil, python-glanceclient, python-ironicclient, python-keystoneclient, python-novaclient, python-openstackclient, shade, stevedore, testinfra, warlock
stevedore==1.26.0 # via cliff, keystoneauth1, openstacksdk, osc-lib, oslo.config, python-keystoneclient
tabulate==0.7.7 # via molecule
testinfra==1.6.3 # via molecule
testinfra==1.7.1
tree-format==0.1.1 # via molecule
unicodecsv==0.14.1 # via cliff
urllib3==1.22 # via requests

Loading…
Cancel
Save