mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
add the first test for test.ping connecting the minion to master
This commit is contained in:
parent
9bb118c0d5
commit
2831c54b78
3 changed files with 11 additions and 10 deletions
|
@ -101,3 +101,7 @@ suites:
|
|||
excludes:
|
||||
- centos-6
|
||||
|
||||
verifier:
|
||||
name: shell
|
||||
remote_exec: false
|
||||
command: pytest -v tests/integration/
|
||||
|
|
|
@ -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)
|
||||
|
|
7
tests/integration/test_connection.py
Normal file
7
tests/integration/test_connection.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
import pytest
|
||||
|
||||
|
||||
def test_ping(host):
|
||||
with host.sudo():
|
||||
assert host.salt('test.ping')
|
Loading…
Add table
Reference in a new issue