mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #40337 from Ch3LL/add_unzip_test
Add archive.extracted with use_cmd_unzip argument
This commit is contained in:
commit
ceba1b9bc6
1 changed files with 17 additions and 0 deletions
|
@ -205,6 +205,23 @@ class ArchiveTest(integration.ModuleCase,
|
|||
|
||||
self._check_extracted(UNTAR_FILE)
|
||||
|
||||
def test_archive_extracted_with_cmd_unzip_false(self):
|
||||
'''
|
||||
test archive.extracted using use_cmd_unzip argument as false
|
||||
'''
|
||||
|
||||
ret = self.run_state('archive.extracted', name=ARCHIVE_DIR,
|
||||
source=ARCHIVE_TAR_SOURCE,
|
||||
source_hash=ARCHIVE_TAR_HASH,
|
||||
use_cmd_unzip=False,
|
||||
archive_format='tar')
|
||||
log.debug('ret = %s', ret)
|
||||
if 'Timeout' in ret:
|
||||
self.skipTest('Timeout talking to local tornado server.')
|
||||
self.assertSaltTrueReturn(ret)
|
||||
|
||||
self._check_extracted(UNTAR_FILE)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
from integration import run_tests
|
||||
|
|
Loading…
Add table
Reference in a new issue