Skip to content

Commit

Permalink
STAC-2599 Downgrade pytest due to pytest-dev/pytest#4304
Browse files Browse the repository at this point in the history
  • Loading branch information
TizianoPerrucci committed Nov 9, 2018
1 parent 885b3be commit 551f766
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions test/molecule-role/molecule/default/tests/test_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('agent_vm')


def test_opt_stackstate_directory(host):
f = host.file('/opt/stackstate-agent/')
assert f.is_directory
def test_stackstate_agent_is_installed(host):
agent = host.package("stackstate-agent")
assert agent.is_installed
# TODO
# assert agent.version.startswith("2")


def test_stackstate_agent_running_and_enabled(host):
agent = host.service("stackstate-agent")
assert agent.is_running
assert agent.is_enabled
2 changes: 1 addition & 1 deletion test/molecule-role/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pycodestyle==2.3.1
pycparser==2.19
pyflakes==1.6.0
PyNaCl==1.3.0
pytest==3.10.0
pytest==3.9.3
python-dateutil==2.7.5
python-gilt==1.2.1
PyYAML==3.13
Expand Down

0 comments on commit 551f766

Please sign in to comment.