Commit Graph

92516 Commits

Author SHA1 Message Date
Bo Maryniuk
00e66fcbec Get all the code content, not just Python sources 2018-04-06 18:21:31 +02:00
Bo Maryniuk
b2a316fb7a Get code checksum into the shim options 2018-04-06 18:21:19 +02:00
Bo Maryniuk
a54aec2969 Collect digest of the code 2018-04-06 17:38:15 +02:00
Bo Maryniuk
44c5a9000f Bufix: recurse calls damages the configuration (reference problem) 2018-04-06 17:38:15 +02:00
Bo Maryniuk
dca1817d54 Add digest collector for file trees etc 2018-04-06 17:38:15 +02:00
Bo Maryniuk
0e65b32338 Support Python 2.6 versions 2018-04-06 17:38:15 +02:00
Bo Maryniuk
5aef263f74 Properly mock a tempfile object 2018-04-06 17:38:15 +02:00
Bo Maryniuk
a9d0d5ba7e Disable wiping if state is executed 2018-04-06 17:38:15 +02:00
Bo Maryniuk
2a2c48ab7c Initialise the options directly to be structure-ready object. 2018-04-06 17:38:15 +02:00
Bo Maryniuk
65ffabc1c3 Fix unit tests for minor version removal of namespaced version-specific directory 2018-04-06 17:38:15 +02:00
Bo Maryniuk
6c94c105e0 Bugfix: remove minor version from the namespaced, version-specific directory 2018-04-06 17:38:14 +02:00
Michael Calmer
41e8ef8e82 require same major version while minor is allowed to be higher 2018-04-06 17:38:14 +02:00
Bo Maryniuk
cd32f14406 Re-phrase docstring for alternative Salt installation 2018-04-06 17:38:14 +02:00
Bo Maryniuk
448944a317 Rephrase Salt SSH doc description 2018-04-06 17:38:14 +02:00
Bo Maryniuk
60872d1441 Fix unit test for catching "supported-versions" was written down 2018-04-06 17:38:14 +02:00
Bo Maryniuk
97fab18f60 Add unit test for get_supported_py_config function ext tops 2018-04-06 17:38:14 +02:00
Bo Maryniuk
96d83dac63 Add unit test for get_supported_py_config function base tops 2018-04-06 17:38:14 +02:00
Bo Maryniuk
a284d73e1f Add unit test for get_supported_py_config function typecheck 2018-04-06 17:38:14 +02:00
Bo Maryniuk
f833d18fd1 Get supported Python executable based on the config py-map 2018-04-06 17:38:14 +02:00
Bo Maryniuk
d26e7317b1 Write all supported minimal python versions into a config file on the target machine 2018-04-06 17:38:14 +02:00
Bo Maryniuk
38295d7633 Make the command more readable 2018-04-06 17:38:14 +02:00
Bo Maryniuk
dadf38ca1e Lintfix: PEP8 extra-line needed 2018-04-06 17:38:14 +02:00
Bo Maryniuk
87990d303e Fix typo 2018-04-06 17:38:14 +02:00
Bo Maryniuk
a0dd7a76e0 Add documentation about updated Salt SSH features 2018-04-06 17:38:14 +02:00
Bo Maryniuk
650d5fe5fc Lintfix 2018-04-06 17:38:14 +02:00
Bo Maryniuk
87b9a16b74 Add unit test for an alternative version pack 2018-04-06 17:38:14 +02:00
Bo Maryniuk
5119ff1b73 Fix docstring 2018-04-06 17:38:14 +02:00
Bo Maryniuk
5186f047ce Add shareable module to the gen_thin unit test 2018-04-06 17:38:14 +02:00
Bo Maryniuk
82d25b180b Add unit test for tree addition to the archive 2018-04-06 17:38:14 +02:00
Bo Maryniuk
1252657407 Move tarfile.open check to the end of the test 2018-04-06 17:38:14 +02:00
Bo Maryniuk
380bc4e21c Mock-out missing methods inside gen_thin 2018-04-06 17:38:13 +02:00
Bo Maryniuk
e3897af114 Add fake tarfile mock handler 2018-04-06 17:38:13 +02:00
Bo Maryniuk
045a21783b Update docstring for fake version info constructor method 2018-04-06 17:38:13 +02:00
Bo Maryniuk
1d73186df6 Add unit test for gen_thin if control files are written correctly 2018-04-06 17:38:13 +02:00
Bo Maryniuk
5ce6531b9e Add check for correct archiving mode is opened 2018-04-06 17:38:13 +02:00
Bo Maryniuk
a8b9329c7d Update unit test doc 2018-04-06 17:38:13 +02:00
Bo Maryniuk
275b827bf0 Move helper functions up by the class code 2018-04-06 17:38:13 +02:00
Bo Maryniuk
d5c71158c1 Add unit test for gen_thin compression type fallback 2018-04-06 17:38:13 +02:00
Bo Maryniuk
985ee3e127 Use object attribute instead of indeces. Remove an empty line. 2018-04-06 17:38:13 +02:00
Bo Maryniuk
26af4380fd Fix gen_thin exception on Python 3 2018-04-06 17:38:13 +02:00
Bo Maryniuk
c594d4021d Add unit test for gen_thin verify for 2.6 Python version is a minimum requirement 2018-04-06 17:38:13 +02:00
Bo Maryniuk
0d4a3add87 Add unit test for min_sum hashing 2018-04-06 17:38:13 +02:00
Bo Maryniuk
a99659f647 Add unit test for thin_sum hashing 2018-04-06 17:38:13 +02:00
Bo Maryniuk
cee46478b8 Add unit test for shared object modules top addition 2018-04-06 17:38:13 +02:00
Bo Maryniuk
54afe21579 Add unit test for get_tops with extra modules 2018-04-06 17:38:13 +02:00
Bo Maryniuk
5b44785069 Add unit test to add tops based on the current interpreter 2018-04-06 17:38:13 +02:00
Bo Maryniuk
4c9c533afc Add unit test for getting namespace failure when python maj/min versions are not defined 2018-04-06 17:38:13 +02:00
Bo Maryniuk
e83ee01e42 Remove unused variable 2018-04-06 17:38:13 +02:00
Bo Maryniuk
3016bed316 Add get_ext_namespaces for namespace extractions into a tuple for python version 2018-04-06 17:38:13 +02:00
Bo Maryniuk
875beb7ffd Add unit test for get_ext_namespaces on empty configuration 2018-04-06 17:38:13 +02:00