rallytime
8e36e90966
Merge branch '2015.5' into '2015.8'
...
Conflicts:
- tests/unit/modules/boto_vpc_test.py
2016-06-21 14:47:23 -06:00
Mike Place
3669048654
Merge pull request #34077 from rallytime/grains-tests
...
Add some grains targeting tests
2016-06-21 09:06:30 -07:00
rallytime
2199bb8a78
Add integration tests for grains.append
2016-06-20 16:44:22 -06:00
Justin Anderson
b7ac6c735a
Moved imports to top, out of _get_moto_version function
2016-06-20 13:20:43 -06:00
Justin Anderson
02f9ba99ba
Updated version check. Moved check into it's own function
2016-06-20 10:33:13 -06:00
Justin Anderson
d445026c56
Updated test to work with new moto version. Changed strings to unicode
2016-06-20 09:26:39 -06:00
Pablo Suárez Hernández
97f1958863
some cleanup and renaming
2016-06-20 15:47:34 +01:00
Pablo Suárez Hernández
548971bdc9
Fix for SUSE OS grains in 2015.8
2016-06-20 13:13:00 +01:00
Justin Findlay
6d0d52fa86
modules.pkg int tests: skip refresh_db upon error ( #34072 )
2016-06-17 09:35:47 -06:00
rallytime
37cfe70724
Add some grains targeting tests
2016-06-16 17:02:46 -06:00
rallytime
60561ac6fc
Add a test to check for disconnected minion messaging
2016-06-16 14:07:05 -06:00
rallytime
77f44f3087
Merge branch '2015.5' into '2015.8'
...
Conflicts:
- salt/modules/aptpkg.py
- salt/modules/ebuild.py
- salt/modules/zypper.py
- salt/states/pkg.py
- tests/integration/output/output.py
2016-06-14 15:47:35 -06:00
Nicole Thomas
871f7966ce
Lint fix for #34000 ( #34005 )
2016-06-14 11:12:14 -04:00
Mike Place
f758e42172
Fix incorrectly written test ( #34000 )
...
This should be using the test suite method of generating opts
2016-06-14 11:10:21 -04:00
Mike Place
9bd2317992
Merge pull request #33951 from jfindlay/gem_tests
...
modules.gem int tests: more fixes
2016-06-13 17:46:43 -07:00
Mike Place
53baae6eb1
Merge pull request #33984 from jfindlay/disk_capacity
...
Add docs and tests to disk state
2016-06-13 17:43:38 -07:00
Mike Place
fa5efb6a69
Merge pull request #33985 from rallytime/more-batch-tests
...
Write some more simple batch command tests
2016-06-13 17:38:05 -07:00
rallytime
3e7ab8c7b3
Write some more simple batch command tests
2016-06-13 16:25:19 -06:00
Justin Findlay
6cbe31e6c2
states.disk: rewrite unit tests
2016-06-13 16:13:40 -06:00
Justin Findlay
6080846cce
acl.ClientACL: add unit tests ( #33684 )
2016-06-13 16:00:35 -04:00
Justin Findlay
2eb633ccad
modules.gem int tests: only check known installed gems
2016-06-13 11:33:25 -06:00
Justin Findlay
9f3e18b037
modules.gem int tests: (un)install a non-core gem
2016-06-13 10:46:56 -06:00
Mike Place
378dd7ca06
Merge pull request #33888 from jfindlay/random_check
...
random.org checks
2016-06-10 08:45:07 -07:00
Justin Findlay
82f95429db
modules.random_org unit tests: skip if random.org down
2016-06-08 20:46:20 -06:00
rallytime
b8e4706074
Merge branch '2015.5' into '2015.8'
...
Conflicts:
- salt/modules/saltutil.py
- salt/states/archive.py
2016-06-08 14:26:18 -06:00
Mike Place
f7b3d0eda0
Merge pull request #33839 from cachedout/fix_pkgresource_test_stacktrace
...
Fix another unit test stacktrace in pkg_resource
2016-06-08 06:32:55 -07:00
Mike Place
5f081ef31c
Merge pull request #33840 from cachedout/remove_matcher_unit_tests
...
Remove matcher tests
2016-06-08 06:31:41 -07:00
Mike Place
6297448377
Remove matcher tests
...
These all assert directly against mock objects. They're pointless.
2016-06-07 16:36:01 -06:00
Mike Place
435547a747
Fix another unit test stacktrace in pkg_resource
2016-06-07 15:55:52 -06:00
Mike Place
453fb1ac91
Fixing more stupid unit tests
...
This time win_servermanager
2016-06-07 15:33:12 -06:00
Mike Place
1db559afe9
Merge pull request #33805 from jfindlay/pkg_tests
...
states.pkg int tests: skip if pkg mgr unavailable
2016-06-07 07:40:46 -07:00
Mike Place
3984b65486
Merge pull request #33808 from jfindlay/gem_tests
...
fix some problems with the gem module integration tests
2016-06-07 07:40:25 -07:00
Justin Findlay
f13f914755
states.service: add integration tests
2016-06-06 23:11:49 -06:00
Justin Findlay
f7c19a1a58
modules.gem int tests: relax version checks
2016-06-06 21:58:58 -06:00
Justin Findlay
0c069ddc95
states.pkg int tests: skip if pkg mgr unavailable
2016-06-06 17:44:43 -06:00
Justin Findlay
6af47d2ba7
modules.gem int tests: remove pkgs before testing install
2016-06-06 17:32:17 -06:00
Justin Findlay
90aee79c39
states.service.mod_watch: update unit test
2016-06-06 10:54:16 -06:00
Mike Place
7fdfbe9a28
Merge pull request #33691 from jtand/gem_integration_test
...
Gem integration test
2016-06-06 04:13:23 -07:00
Mike Place
11e39e7203
Merge pull request #33712 from meaksh/fix-for-groupadd-module-failures-in-SLE11-2015.8
...
Fix for groupadd execution module failures in SLES11 systems
2016-06-03 09:13:06 -07:00
Justin Anderson
ff2dae103d
ubuntu doesn't install default gems when ruby is installed
2016-06-03 08:54:51 -06:00
Pablo Suárez Hernández
ab738416ba
pylint fix
2016-06-03 13:57:13 +01:00
Pablo Suárez Hernández
bf27e5d36e
test_members cleanup
2016-06-03 13:25:05 +01:00
Pablo Suárez Hernández
ba815dbf76
improvements on groupadd unit tests
2016-06-03 13:17:13 +01:00
Justin
504df9a65a
Fixed lint error
2016-06-03 04:28:42 -06:00
Justin Findlay
87e018af2a
states.test.configurable_test_state: add unit tests
2016-06-02 17:20:36 -06:00
Justin Anderson
0cb1bfa0d3
Removed extra :
2016-06-02 16:35:40 -06:00
Justin Anderson
ebee8a89af
glance.warn_until shouldn't be checked for a doc string
2016-06-02 16:30:36 -06:00
Justin Anderson
86f59b3e80
Made more pythonic
2016-06-02 14:37:05 -06:00
Justin Anderson
2f36f34981
Fixed salt.util import. Added status check to make sure external resource is available
2016-06-02 14:32:08 -06:00
Justin Anderson
400a71ec33
Removed redundancies
2016-06-02 11:16:23 -06:00
Justin Anderson
91db411bea
A couple lint fixes
2016-06-02 09:03:10 -06:00
Justin Anderson
c97f3319b9
Add check for gem binary
2016-06-02 08:56:09 -06:00
twangboy
6c7b21676a
Fix lint and tests
2016-06-01 17:10:55 -06:00
Justin Anderson
210aceb402
Refactored tests to not use return messages
2016-06-01 16:57:37 -06:00
Mike Place
c8dc70b96a
Merge pull request #33685 from jfindlay/get_url_test
...
modules.cp.get_url: add test for https://
2016-06-01 15:25:41 -07:00
Mike Place
5e022ff29c
Merge pull request #33581 from dincamihai/2015.8
...
Call zypper refresh after adding/modifying a repository
2016-06-01 15:25:11 -07:00
Justin Anderson
9d437bd45d
Removed artifact from testing
2016-06-01 15:32:41 -06:00
Justin Anderson
134e1fa888
Fixed typos, and added destructiveTest decorator
2016-06-01 15:25:18 -06:00
Justin Anderson
37bc3ad8fd
Fixed typo, uninstalled to uninstall
2016-06-01 15:16:15 -06:00
Justin Findlay
2b5035fdc0
modules.cp.get_url: add test for https://
2016-06-01 15:10:12 -06:00
Justin Anderson
5b23b91ac6
Integration test for gem module
2016-06-01 15:09:55 -06:00
Mihai Dinca
788730ea72
DRY test
2016-05-30 13:52:46 +02:00
Mihai Dinca
1d3769ccfa
Improve zypper_patcher_config looks
2016-05-30 13:52:45 +02:00
Mihai Dinca
42d8d4195c
Assert only gpgautoimport: True works
2016-05-30 13:51:54 +02:00
Mihai Dinca
80bfbe5c52
Reduce dicts and lists to one line where possible
2016-05-30 10:47:41 +02:00
Mihai Dinca
1d5d6d7d60
Update test method names to pass pylint
2016-05-30 10:05:07 +02:00
Dan Slimmon
180099ae9f
Wrote test for broken server connection
2016-05-30 03:23:18 +00:00
twangboy
79bc7195dc
Fix unit tests
2016-05-27 11:33:52 -06:00
Mihai Dinca
c7ae5907ee
Call zypper refresh after adding/modifying a repository
...
Calling `zypper --gpg-auto-import-keys refresh` is required after
adding/modifying a repository because `--gpg-auto-import-keys` doesn't
do anything when called with `zypper ar` or `zypper mr`.
Without calling `zypper --gpg-auto-import-keys refresh` here, calling
`zypper ref` after adding/removing would still ask for
accepting/rejecting the gpg key.
2016-05-27 16:17:10 +02:00
Mike Place
d052908729
Merge pull request #33501 from meaksh/zypper-download-check-signature-2015.8
...
unit tests for rpm.checksum() and zypper.download()
2016-05-26 07:34:27 -07:00
Pablo Suárez Hernández
eaaef25c79
lint issue fixed
2016-05-26 08:26:24 +01:00
Mike Place
70eb7b66f3
Merge pull request #33487 from jtand/glance_doc_fixes
...
Add docstring examples to glance.py and nova.py [2015.8]
2016-05-25 09:47:25 -07:00
Pablo Suárez Hernández
6b6febb211
unit tests for rpm.checksum() and zypper.download()
2016-05-25 17:08:16 +01:00
Blaine Chatman
7599b18995
fix jobs.list_jobs failing with search_target
2016-05-24 17:56:45 -07:00
Justin Anderson
ebf1256545
Don't need to check swift.head due to it having no body
2016-05-24 15:26:28 -06:00
Justin Anderson
59e90064e6
modules.swift.head does not have a body. Should not be checked for a docstring right now.
2016-05-24 14:58:32 -06:00
Mihai Dincă
c8b4f338d8
Make --gpg-auto-import-keys a global param when calling zypper ( #33432 )
2016-05-23 14:15:29 -07:00
Nicole Thomas
0c4e38ced4
Fix the saltutil.wheel function and add integration tests ( #33414 )
...
* Fix the saltutil.wheel function and add integration tests
Fixes #32446
* Provide a more useful message when command is run on non-local minion
2016-05-23 14:11:16 -07:00
Nicole Thomas
4fdb097c01
Update job_cache and keep_jobs docs to be more specific to their behavior ( #33328 )
...
* Update job_cache and keep_jobs docs to be more specific to their behavior
Also fixed a bug discovered when investigating job_cache/keep_jobs functionality
where the jid directory and files were removed by the cache cleaner, but not the
original jid clash detection directory created in /var/cache/salt/master/jobs/.
Fixes #29286
* Add testcase for the changes in the local_cache.clean_old_jobs func
* Mark tests as destructive
* Put destructive test decorator in correct location
2016-05-19 09:32:32 -07:00
Erik Johnson
855bed36c1
Check rendered YAML for invalid keys ( #33213 )
...
* Check rendered YAML for invalid keys
PyYAML will for some reason allow improper YAML, specifically double
curly-braces like ``{{ }}``, to be formed into an unhashable dict (that
is, one with a dict as a key). This commit will change the YAML renderer
such that the rendered data is recursively checked for keys that are
dicts, and raises an SaltRenderError if such a key is encountered.
Resolves #33073 .
* Fix smtp returner test
This test was using jinja placeholders but was not passing the template
through the jinja renderer. This commit adds the use of the jinja
renderer to this test to fix the failure caused by the addition of
verification of the loaded YAML inthe previous commit.
2016-05-13 09:22:43 -07:00
Nicole Thomas
730bec1eef
[2015.8] Merge forward from 2015.5 to 2015.8 ( #33207 )
...
* Fix file.managed for Windows (#33181 )
* Revert back to import string_types
For some reason, there is a problem with the following
code when run from the file.py module:
```
from salt.ext import six
comment = 'This is a string'
isinstance(comment, six.string_types)
```
When run from within the python shell it works fine.
* Add six import
* Fix some lint
* Use correct six import
* Changed it back to explicit import
* Additional comments specific to 2015.5
* Fix file.managed for real
* Move comment to clarify purpose
* update 2015.5.11 release notes (#33197 )
* Add pip installed and removed test (#33178 )
* Resolve issue with pkg module on Mint Linux (#33205 )
Closes #32198
2016-05-12 13:54:47 -07:00
Justin Anderson
a09e1b6335
Add pip installed and removed test ( #33178 )
2016-05-12 08:31:41 -07:00
Mike Place
033bef2ed2
Hash fileclients by opts ( #33142 )
...
* Hash fileclients by opts
There was an issue whereby the cache of the fileclient was being overwritten
by dueling minion instances in multimaster mode. This protects them by hashing
by the id of opts.
Closes #25040
* Silly typo!
* Remove tests which do not test any actual functionality or are too tightly coupled to the implementation
2016-05-10 15:04:52 -06:00
rallytime
449176f06e
Merge branch '2015.5' into '2015.8'
...
No conflicts.
2016-05-10 11:58:55 -06:00
Justin Anderson
8b1e34fb17
Skipping salt-call --local test
2016-05-10 10:48:18 -06:00
rallytime
0fd5e9d157
Merge branch '2015.5' into '2015.8'
...
Conflits:
- salt/minion.py
- tests/integration/states/file.py
2016-05-06 12:04:06 -06:00
Justin Anderson
d4928c5a22
Use saltstack repo in buildpackage.py on CentOS 5 ( #33080 )
2016-05-06 08:27:31 -07:00
Mike Place
6d604926d3
Merge pull request #33088 from isbm/isbm-zypper-fix-booleans
...
Bugfix: Restore boolean values from the repo configuration
2016-05-06 08:13:27 -07:00
Megan Wilhite
2c6326f14a
fix tests for file.blockplace to remove newline ( #33082 )
2016-05-06 08:44:20 -06:00
Bo Maryniuk
79a46e091c
Add repo config test
2016-05-06 12:57:52 +02:00
Bo Maryniuk
222b8369ca
Add test data for repos
2016-05-06 12:57:36 +02:00
Mike Place
fb89877cf2
Merge pull request #32892 from isbm/isbm-zypper-env-variables
...
Resolve Zypper locks on asynchronous calls
2016-05-05 07:34:59 -07:00
Megan Wilhite
61d126cb98
add test for installing package while using salt-call --local ( #33025 )
...
* add test for installing package while using salt-call --local
* fix pylint
2016-05-05 07:17:12 -07:00
Nicole Thomas
111701c8bb
[2015.8] Merge forward from 2015.5 to 2015.8 ( #33054 )
...
* Add run_on_start docs to schedule.rst (#32958 )
Fixes #22580
* Backport #33021 manually to 2015.5 (#33044 )
* Saltfile with pillar tests (#33045 )
* add file.managed with pillar data tests
* do not require git for other tests
* Whitespace...
2016-05-05 07:05:55 -07:00
Justin Anderson
1066063a19
File and User test fixes for 2015.8 on Fedora23 ( #33056 )
...
* Fix failing user present test
* Fix file_test.test_symlink failure on 2015.8
2016-05-05 07:05:10 -07:00
Justin Anderson
6d3e4e8935
File and User test fixes for 2015.5 on Fedora23 ( #33055 )
...
* Fix file_test.test_symlink on 2015.5
* Fix failing user present test
2016-05-05 07:00:59 -07:00
Megan Wilhite
d48b2b8b52
test pillar.items output ( #33060 )
2016-05-05 06:51:27 -07:00
Megan Wilhite
f8757631b2
Saltfile with pillar tests ( #33045 )
...
* add file.managed with pillar data tests
* do not require git for other tests
2016-05-04 14:37:57 -06:00
Justin Anderson
00fbeaba5f
Fix boto_secgroup_test ( #32986 )
2016-05-02 10:46:19 -06:00
Bo Maryniuk
c55b0fab58
Test DOM parsing
2016-04-27 15:43:35 +02:00