Pedro Algarvio
abe608d739
Drop @patch
usage
2017-04-28 13:36:42 +01:00
Pedro Algarvio
61003bca0a
Take care of resource leakage on tests
2017-04-04 18:58:20 +01:00
Pedro Algarvio
e6f43b46c0
Import from the original modules
2017-04-04 18:58:20 +01:00
Pedro Algarvio
8031ac0209
Move mixins to tests.support.mixins.
...
The adapted config mixin get config methods are not static methods
2017-04-04 17:29:34 +01:00
rallytime
2222e1cae9
Merge branch '2016.11' into 'develop'
...
Conflicts:
- salt/modules/napalm_network.py
- tests/integration/states/test_archive.py
- tests/integration/states/test_file.py
- tests/unit/modules/test_docker.py
2017-03-21 10:19:52 -06:00
rallytime
f4d4768a6d
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- salt/utils/__init__.py
2017-03-20 11:08:28 -06:00
Ivan Babrou
af1545deed
Use the first address if cannot connect to any
...
This fixes #39995 . The previous work happened in #39289 .
2017-03-18 21:09:16 -07:00
Pedro Algarvio
0b41b92d7d
Use salt.utils.versions
instead of distutils.version
2017-03-08 19:22:33 +00:00
Pedro Algarvio
40a64191a1
Absolute imports and A LOT of code cleanup.
2017-03-01 01:33:07 +00:00
Pedro Algarvio
3beb3fb801
Move whatever we need from salttesting to salt.
...
Let's drop the salttesting dependency cycle.
2017-02-28 22:52:49 +00:00
rallytime
b4366103a6
Merge branch '2016.11' into 'develop'
...
Conflicts:
- .pylintrc
- .testing.pylintrc
- salt/fileclient.py
- salt/minion.py
- salt/modules/docker.py
- salt/modules/win_iis.py
- salt/states/docker.py
- salt/states/file.py
- salt/utils/__init__.py
- tests/integration/modules/test_sysmod.py
2017-02-27 15:11:37 -07:00
Pedro Algarvio
7fff27627a
Code cleanup
2017-02-24 00:49:32 +00:00
Pedro Algarvio
15af4c9728
Test filenames conformity. Adjust for pytest.
2017-02-23 23:19:42 +00:00
rallytime
7b9b3f700d
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- salt/modules/dockerng.py
- salt/states/dockerng.py
2017-02-22 16:27:08 -07:00
Pedro Algarvio
04b4d0947e
Disable tests on Py3.
...
The order of attributes is sketchy under Py3 and this code will be
deprecated.
2017-02-17 20:48:55 +00:00
Ivan Babrou
e8a2cc0488
Do no try to connect to salt master in syndic config test
2017-02-14 11:16:32 -08:00
rallytime
609e6e4b23
Merge branch '2016.11' into 'develop'
...
Conflicts:
- salt/config/__init__.py
- salt/modules/win_lgpo.py
- salt/utils/aws.py
- tests/unit/utils/schema_test.py
2017-02-09 10:29:40 -07:00
rallytime
f6aad99db2
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- salt/loader.py
- salt/output/highstate.py
- salt/runners/fileserver.py
2017-02-08 16:57:54 -07:00
Erik Johnson
1b9217d636
Update jsonschema tests to reflect change in jsonschema 2.6.0 ( #39260 )
...
Version 2.6.0 changed the wording of one of the exceptions tested,
causing tests to fail when jsonschema 2.6.0 is installed. This commit
updates the tests to change the assert for 2.6.0 and later.
2017-02-08 16:51:56 -07:00
Stefano Pogliani
23468cbcd1
Apply glob pattern to file_roots and pillar_roots (master & minion).
...
Implements #38736
2017-01-23 23:30:34 +00:00
rallytime
3f74d697b9
Merge branch '2016.11' into 'develop'
...
Conflicts:
- pkg/windows/build_pkg.bat
- salt/modules/archive.py
2017-01-20 12:07:19 -07:00
rallytime
64d866f7ab
Merge branch '2016.3' into '2016.11'
...
No conflicts.
2017-01-17 11:44:26 -07:00
rallytime
05587201b6
Pylint fix: add line at end of file
2017-01-17 10:26:43 -07:00
rallytime
fa01367599
Keep a copy of the DEFAULT_API_OPTS and restore them after the test run
...
Without this copy, the settings in DEFAULT_API_OPTS was getting overridden
by the new settings in the unit test. Let's copy those default settings,
and then restore them at the end of the test. These tests have also been
marked as destructive.
2017-01-11 10:35:55 -07:00
rallytime
2ad07634d9
Test clean up
2017-01-10 11:35:48 -07:00
rallytime
fd2ee7db30
Add some simple unit tests for salt.config.api_config function
...
This will help prevent regressions in this area as discussed in
PR #38527 .
2017-01-09 16:44:48 -07:00
Mike Place
6646a95c1e
Merge pull request #38490 from eradman/cloud_config
...
Change map and profile extends merge strategy to use recursive update
2017-01-05 16:35:41 -07:00
Alexandru Bleotu
54e41b16a5
Updated config_test tests to use CONFIG_DIR and not /etc/salt
2017-01-05 17:31:40 +00:00
Eric Radman
3ec910cf34
Change map and profile extends merge strategy to use recursive update
...
Previously only top-level data elements could be overridden in a map or
extended profile entry. This change adjusts map and profile evaluation
to use a recursive merge using salt.utils.dictupdate.update().
This is a break with compatibility, but in the common case a cloud
profile or map is not structured to truncate configuration but to add
further detail to the profile that it extends.
Update map docs with an example from VMware where we chan now change a
network parameter without having to repeat other device information such
as disk controllers.
2017-01-04 14:11:53 -05:00
rallytime
627242ab5d
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- tests/unit/config/config_test.py
2016-12-09 11:45:14 -07:00
Denys Havrysh
cd0154ee93
Master config includes may contain errors and be safely skipped
2016-12-08 15:58:44 +02:00
Mihai Dinca
b0f0b4effc
Make sha256 the default hash_type
2016-08-15 10:02:19 +02:00
rallytime
1fe0b69a6c
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/modules/blockdev.py
- salt/modules/ddns.py
- salt/modules/inspectlib/collector.py
- salt/modules/linux_sysctl.py
- salt/modules/status.py
- salt/modules/x509.py
- salt/utils/process.py
- salt/utils/verify.py
- tests/integration/__init__.py
- tests/integration/modules/state.py
- tests/integration/states/cmd.py
2016-08-12 16:21:58 -06:00
rallytime
cf038ee3fe
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/grains/core.py
- salt/modules/file.py
- salt/modules/hosts.py
- salt/modules/inspectlib/collector.py
- salt/modules/portage_config.py
- salt/modules/x509.py
- salt/scripts.py
- tests/integration/shell/enabled.py
2016-08-11 11:33:54 -06:00
Mike Place
ec8a6ebab3
Correct config test errors
2016-07-20 10:00:31 -06:00
rallytime
0baf92a972
Remove tests that were deleted in develop already
2016-07-18 11:14:21 -06:00
rallytime
d679c09e65
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/config/__init__.py
- salt/utils/parsers.py
- tests/unit/config/config_test.py
2016-07-18 10:34:03 -06:00
Mike Place
4625ee65b8
Remove unnedeed config test
...
Refs #34607
2016-07-18 09:12:18 -06:00
Bo Maryniuk
6dcdc59f7e
Fix lint: unused import
2016-06-15 14:41:43 +02:00
Bo Maryniuk
be00b90067
Remove unnecessary tests: no fallback to what was already looked at
2016-06-15 13:45:54 +02:00
rallytime
760f479424
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/cli/daemons.py
- salt/config/__init__.py
- salt/scripts.py
- salt/state.py
- tests/unit/config/config_test.py
2016-04-05 15:09:27 -06:00
rallytime
e195376f61
Patch isdir call and test seach path tuple positions as well
2016-04-01 15:09:57 -06:00
rallytime
b86f6922c4
Print search_paths return for debugging
2016-04-01 13:52:43 -06:00
rallytime
bf48922e7d
Add test for 'deploy_scripts_search_path' contents in salt.config.cloud_config
2016-04-01 09:43:30 -06:00
Mike Place
f2bf2dff14
Adjust test for syndic config
...
Refs #28115
2015-12-02 09:35:48 -07:00
Pedro Algarvio
359348ba1c
Fix SSH Roster Schema unittests
2015-07-28 12:37:19 +01:00
Pedro Algarvio
034353040c
Make the tests discoverable
2015-07-28 12:23:18 +01:00
Pedro Algarvio
d649252878
Fix class reference
2015-07-28 10:33:08 +01:00
Pedro Algarvio
63cecaddf4
Implement the Roster
config schema
2015-07-28 00:42:55 +01:00
Pedro Algarvio
eabc84d93c
Implemented RosterEntryConfig
and added unit tests for it
2015-07-28 00:42:55 +01:00