add the first test for test.ping connecting the minion to master

This commit is contained in:
Daniel Wallace 2018-08-14 10:42:23 -05:00
parent 9bb118c0d5
commit 2831c54b78
No known key found for this signature in database
GPG key ID: 5FA5E5544F010D48
3 changed files with 11 additions and 10 deletions

View file

@ -101,3 +101,7 @@ suites:
excludes:
- centos-6
verifier:
name: shell
remote_exec: false
command: pytest -v tests/integration/

View file

@ -17,13 +17,3 @@ else:
@pytest.fixture
def host():
return test_host
@pytest.fixture
def salt():
if 'windows' in os.environ.get('KITCHEN_INSTANCE'):
tmpconf = r'c:\Users\vagrant\AppData\Local\Temp\kitchen\etc\salt'
else:
test_host.run('sudo chown -R {0} /tmp/kitchen'.format(os.environ.get('KITCHEN_USERNAME')))
tmpconf = '/tmp/kitchen/etc/salt'
return functools.partial(test_host.salt, config=tmpconf)

View file

@ -0,0 +1,7 @@
# -*- coding: utf-8 -*-
import pytest
def test_ping(host):
with host.sudo():
assert host.salt('test.ping')