rallytime
bf9ffded6d
Refactor rabbitmq_cluster states to use test=true functionality correctly
...
Fixes #7811
2016-01-25 16:47:54 -07:00
rallytime
1e8e86007c
Refactor rabbitmq_policy states to use test=true functionality correctly
...
Fixes #25658
2016-01-25 15:21:19 -07:00
Erik Johnson
ea0ca70187
Add git.list_worktrees unit test
2016-01-21 15:42:30 -06:00
Evan Borgstrom
e148ea2d52
Allow recursive salt:// imports
...
Fixes #30465
2016-01-20 11:29:00 -08:00
Evan Borgstrom
6bbac64d3a
Add test to prove that recursive imports are currently broken
...
Refs #30465
This also exposes some other issues with the Registry being in an
inconsistent state when an exception occurs when we are rendering.
2016-01-20 11:22:51 -08:00
Evan Borgstrom
b46df0e4b5
Allow recursive salt:// imports
...
Fixes #30465
2016-01-20 11:20:50 -08:00
Evan Borgstrom
51bfa16173
Add test to prove that recursive imports are currently broken
...
Refs #30465
This also exposes some other issues with the Registry being in an
inconsistent state when an exception occurs when we are rendering.
2016-01-20 09:57:16 -08:00
Sean Jenkins
e44a30620b
Remove recurse_list from pillar_source_merging_strategy and add pillar_merge_list (bool) instead
2016-01-19 15:06:30 -07:00
justinta89
00943ff1e6
Boto uses False for is_default instead of None
2016-01-19 10:15:35 -07:00
justinta89
2f77152479
Boto uses False for is_default instead of None
2016-01-19 10:12:11 -07:00
Mike Place
d5b8776355
Merge pull request #30340 from jtand/seed_test_fix
...
Updated seed_test.py for changes made to seed module
2016-01-13 15:50:34 -07:00
Mike Place
10b5728f84
Merge pull request #30308 from rallytime/bp-30257
...
Back-port #30257 to 2015.8
2016-01-13 12:20:13 -07:00
justinta89
ee764ee952
Updated seed_test.py for changes made to seed module
2016-01-13 11:58:05 -07:00
Mike Place
dcfba51556
Lint
2016-01-13 10:42:03 -07:00
Mike Place
b9921128af
Kill pointless tests
2016-01-13 10:15:26 -07:00
Mike Place
63c157d0a3
Fix test_managed
2016-01-13 09:54:33 -07:00
abednarik
deeeb71dda
Add test in npm state.
...
Updated nmp module to append --dry-run when executing nmp state in test mode.
Fixes #30250 .
2016-01-12 14:30:32 -07:00
Jacob Hammons
53d17f1f85
Changed examples to use the "example.com" domain instead of "mycompany.com" or "company.com"
2016-01-12 13:37:09 -07:00
Mike Place
2c62b464b1
Accept whatever comes into hightstate mock for state tests
2016-01-12 11:30:25 -07:00
Mike Place
11d27ba694
Mock config module in utils test
2016-01-11 16:31:21 -07:00
Mike Place
cf440036dd
Remove unused import
2016-01-11 14:14:50 -07:00
Mike Place
36d55ea0ad
Allow modules to be packed into boto utils
...
A workaround to allow modules to be packed into the namespace for the boto utils.
2016-01-11 14:13:07 -07:00
Mike Place
70681bf03b
Fix for mock state PR #30118
2016-01-06 15:10:19 -07:00
Mike Place
5419699bd2
Merge pull request #30075 from iodatacenters/2015.8_gluster_usexml
...
Convert glusterfs module to use xml
2016-01-04 13:33:58 -07:00
Joe Julian
01a8e7ee10
Convert glusterfs module to use xml
...
The gluster cli has the option to produce xml output from most every
command, and to avoid pausing for questions when being run in script
mode. Make use of that capability and avoid scraping text output that is
often subject to change between versions.
This should help future-proof this module as any changes to the xml
output should be automatically integrated.
As part of this change, I added a glusterfs.info function and added the
force keywords to volume start and volume stop.
Fixes #30051
2016-01-04 09:47:59 -08:00
rallytime
f7e58a241c
Merge branch '2015.5' into '2015.8'
...
Conflicts:
- salt/modules/boto_vpc.py
- tests/unit/modules/boto_vpc_test.py
2015-12-29 15:27:03 -07:00
Mike Place
bad6daca93
Merge pull request #30049 from rallytime/esxi-unit-tests
...
Add some more unit tests for the vsphere execution module
2015-12-29 10:07:41 -07:00
rallytime
1a83147986
Remove unnecessary import block
2015-12-28 16:14:13 -07:00
rallytime
695107ae6e
Add some more unit tests for the vsphere execution module
...
And fix a coupl of small bugs found in the module through testing
2015-12-28 16:11:33 -07:00
Andreas Lutro
ca290ec3e1
change how alternatives states check for installed
2015-12-28 12:31:19 -07:00
justinta89
e706642152
Skipping some Boto tests until resolved moto issue
...
Similar to #29725 . Though, some of the tests are different, due to the older
branch. I'm not condisidering this a backport because of that.
2015-12-27 22:34:09 -07:00
Mike Place
4f46255044
Merge pull request #29856 from rallytime/esxi-unit-tests
...
Added some initial unit tests for the salt.modules.vsphere.py file
2015-12-21 10:12:20 -07:00
rallytime
b908ebd123
Added some initial unit tests for the salt.modules.vsphere.py file
...
More will follow to cover the remaining functions.
2015-12-18 16:18:01 -07:00
Andreas Lutro
51088d938a
add tests, rename a function to more closely mirror influxdb
2015-12-17 21:58:51 +01:00
Mike Place
d19827fd3a
Disable some boto tests per resolution of moto issue
...
Pending resolution of https://github.com/spulec/moto/issues/493
2015-12-15 14:59:14 -07:00
Andreas Lutro
7c69c177ed
update test
2015-12-09 13:18:47 +01:00
Colton Myers
e59364ad1d
Fix failing unit test
2015-12-08 13:45:34 -07:00
Colton Myers
9673fd0937
Merge remote-tracking branch 'upstream/2015.5' into merge-forward-2015.8
...
Conflicts:
salt/cloud/clouds/ec2.py
tests/unit/states/file_test.py
2015-12-08 12:23:26 -07:00
Mike Place
7efd6dd140
Merge pull request #29399 from jfindlay/second_up
...
modules.status: add human_readable option to uptime
2015-12-07 12:53:52 -07:00
Justin Findlay
48e7beb0eb
modules.status: add in_seconds option to uptime
...
Implements #29311 .
2015-12-04 18:52:59 -07:00
Mike Place
d2c0fcbc97
Merge pull request #29398 from cachedout/lint_29288
...
Lint 29288
2015-12-03 11:03:53 -07:00
Mike Place
3b0033e529
Lint #29288
2015-12-03 11:02:49 -07:00
Mike Place
17d80c051a
Merge pull request #29334 from rallytime/bp-29237
...
Back-port #29237 to 2015.8
2015-12-02 12:37:31 -07:00
Mike Place
5ec7947595
Merge pull request #29300 from ticosax/dockerng-volumes
...
[dockerng] Add support for volume management in dockerng
2015-12-02 10:48:53 -07:00
Nicolas Delaby
cb9cb463b0
Provide states for managing docker volumes
2015-12-02 17:27:20 +01:00
Nicolas Delaby
dff6fa1fb2
Add execution module to manage docker volumes
2015-12-02 17:27:20 +01:00
Jorge Schrauwen
598226def1
fix unit test (attempt 1)
2015-12-02 08:34:59 -07:00
Mike Place
99b7d87688
Merge pull request #29218 from clan/service_state
...
check service enable state in test mode
2015-12-02 08:31:00 -07:00
Justin Findlay
4d6c71aa80
modules.glusterfs: fix start_volume unit test
2015-12-01 10:53:32 -07:00
Z. Liu
a1250a9729
check service enable state in test mode
2015-12-01 15:02:00 +08:00
Mike Place
8d32d8d43d
Merge pull request #29264 from alprs/fix-ssh_auth_absent_test
...
Prevent ssh_auth.absent from running when test=True
2015-11-30 14:54:15 -07:00
Mike Place
87e4aa4fae
Merge pull request #28994 from timcharper/2015.8.1-dev
...
add support to s3 for aws role assumption
2015-11-30 13:52:17 -07:00
Andreas Lutro
9193676f9c
fix ssh_auth_test
...
there were 4 side_effect return values, when it should only return 2
times - 2 of the 4 states.ssh_auth.absent calls are done with test=True
test=True and should therefore not call modules.ssh.rm_auth_key
2015-11-30 20:13:52 +01:00
Tim Harper
e060986828
add support to s3 for aws role assumption
2015-11-28 00:57:45 -07:00
Bastiaan Bakker
5226cd8f79
remove trailing whitespace
...
fix subdict_match test cases
2015-11-25 20:41:13 -07:00
Bastiaan Bakker
44713cdb95
fix issue 29191: only try partial matches when a wildcard has been specified
2015-11-25 20:41:13 -07:00
Mike Place
81bf332be4
Migrate pydsl tests to integration test suite
...
This marks the beginning of a migration of the pydsl renderer tests
to the integration test suite and away from the unit test suite.
The unit test approach is becoming too difficult to maintain due to its complex approach to trying to internally manage a highstate run instead of calling into the salt state system to fully manage it.
2015-11-24 15:46:14 -07:00
Nicolas Delaby
e98d18ba41
Expose docker networking as state
2015-11-24 13:55:22 +01:00
Nicolas Delaby
17ff5c1ab5
Add expose networking to modules.dockerng
2015-11-24 13:55:22 +01:00
Mike Place
b692ab1cfb
Merge pull request #29047 from schwing/fix-gpg-exception
...
Fix salt.modules.gpg.import_key exception: 'GPG_1_3_1 referenced before assignment'
2015-11-19 12:07:36 -07:00
John Schwinghammer
813f6e6808
Fix 'GPG_1_3_1 referenced before assignment'
...
- Fix gpg.import_key() exception:
"local variable 'GPG_1_3_1' referenced before assignment"
- Update the unit tests to test both the gpg.GPG_1_3_1=True and
gpg.GPG_1_3_1=False cases.
2015-11-19 09:27:46 -06:00
Justin Findlay
0c0bce3ea6
cache runner test: add new unit tests
2015-11-18 16:33:46 -07:00
Mike Place
1e9214f4e4
Merge pull request #28787 from chrigl/fix-28784
...
closes #28784
2015-11-17 08:54:04 -07:00
Mike Place
5b680c938a
Merge pull request #28950 from DSRCompany/pr/28812_which
...
PR 28812 which test fix
2015-11-17 08:32:16 -07:00
Dmitry Kuzmenko
18571000c5
Fix which test in PR#28812
2015-11-17 11:29:41 +03:00
Christoph Glaubitz
8639e3e9c3
closes #28784
...
In fact this test will fail on the current code, but that is like
intended. This tests the fix of #28783 , which was introduced in 2015.5.
2015-11-16 20:30:37 +01:00
Justin Findlay
5ce61abf57
rewrite GPG unit tests
2015-11-16 09:36:29 -07:00
Justin Findlay
e32a9aab85
rh_service._chkconfig_is_enabled unit tests
2015-11-13 23:38:40 -07:00
Todd Tomkinson
ba94878f45
marathon and chronos proxy minions
2015-11-12 10:03:38 -07:00
twangboy
c0cf33332c
Fixed some Lint...
2015-11-11 14:27:06 -07:00
Justin Findlay
bc7e0cfe64
add file.symlink unit tests
2015-11-11 13:37:47 -07:00
Justin Findlay
9381dc7215
orthogonalize file.symlink unit tests
2015-11-11 13:37:18 -07:00
rallytime
e2b0fee57e
Don't change perms list, only existing perms should be a dictionary.
...
Refs #28269
2015-11-11 12:31:51 -07:00
rallytime
7601647d69
Revert "rabbitmq.list_user_permissions returns a dict, not a list. Don't expect a list."
...
This reverts commit 07482211eb
.
2015-11-11 12:23:17 -07:00
rallytime
07482211eb
rabbitmq.list_user_permissions returns a dict, not a list. Don't expect a list.
...
Refs #28269
2015-11-11 09:45:35 -07:00
Colton Myers
c90431eddc
Rip out unit test that doesn't apply anymore
...
We now use -q with the command so we don't have to test our ability to
strip "Listing vhosts" out of the test
2015-11-09 15:22:01 -07:00
Mike Place
5293150d25
Fix tests
2015-11-05 08:29:55 -07:00
Mike Place
7ca7ed4b37
Merge pull request #28579 from jfindlay/virt_ret
...
fix __virtual__ returns: tls,uptime mods
2015-11-04 15:00:02 -07:00
Justin Findlay
333c132378
fix __virtual__ returns: tls,uptime mods
2015-11-04 13:10:38 -07:00
Mike Place
ec924e8410
Merge pull request #28560 from bdrung/2015.8
...
Fix various typos
2015-11-04 08:06:36 -07:00
Benjamin Drung
470e82f17f
Fix typo an dictionnary -> dictionary
2015-11-04 11:06:09 +01:00
Justin Findlay
11a9a5868f
simplify timezone module unit test mocks
2015-11-03 19:37:54 -07:00
Justin Findlay
476b651c94
update timezone module unit tests for timedatectl
2015-11-03 19:34:01 -07:00
twangboy
7d39091c91
Fixed some more lint
2015-11-02 16:51:16 -07:00
twangboy
3dbd62af2c
Fixed some tests... hopefully
2015-11-02 16:13:07 -07:00
Colton Myers
238411c8ce
Merge pull request #28464 from basepi/merge-forward-2015.8
...
[2015.8] Merge forward from 2015.5 to 2015.8
2015-11-02 13:18:21 -07:00
Colton Myers
6f6e687cb4
Mock master_uri for even tests
2015-11-02 12:15:53 -07:00
Christophe Drevet-Droguet
eee2318873
grains state: allow deleting grain with 'False' value
...
and destroy a grain previously set to None, with destructive=True:
The f46722aaeb
commit, from Bruno Binet <bruno.binet@gmail.com> was
effectively reverted during my work on nested and complex values support.
This commit get it back, plus the ability to destroy a existing grain that
was previously set to None, plus tests for these.
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
576252da05
grains state: list_present, list_absent support nested grain
...
... and custom delimiter
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
62a1f37d86
grains state: nested support for grains.append
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
c19cff517a
grains state: more tests
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
cc844e4a2c
grains state tests: test the grain file content as well
...
It may be overkill, but I'm nervous about this change and
I don't want to mess with the grain file of a lot of people
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
1c5cd4c82d
grains state: changes comment more accurate
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
c63913e602
grains module: simpler comment for already set key
2015-11-02 09:31:44 -05:00
Christophe Drevet-Droguet
6b8c245b87
grains state: new tests for nested grains
2015-11-02 09:31:43 -05:00
Andreas Lutro
a772ce330a
fix tests
2015-11-02 10:50:51 +01:00
justinta89
7ca79f1f7b
Skipped wipefs test if wipefs does not exist on OS
2015-10-30 15:04:33 -06:00
Justin Findlay
9ec72ca724
fix file state unit tests for win symlink feature
2015-10-29 13:50:38 -06:00
Matthias Erll
042314246f
Unit test for merging included pillars.
2015-10-28 21:45:26 +01:00
Matthias Erll
2f3f2d6f29
Consider each pillar match only once.
2015-10-28 13:56:44 +01:00
Erik Johnson
a44c8d8dab
Merge pull request #28270 from rallytime/refactor_rabbitmq_plugin_state
...
Refactor RabbitMQ Plugin State to correctly use test=true and format errors
2015-10-27 11:18:34 -06:00
Erik Johnson
4efd07eba5
Merge pull request #28269 from rallytime/refactor_rabbitmq_user_state
...
Refactor rabbitmq_user state to use test=True correctly
2015-10-27 11:17:42 -06:00
rallytime
9e40c3a6a6
Fine tuning and fix tests
2015-10-27 10:30:00 -04:00
rallytime
65fdb50246
Get the list indice to compart before looking at keys
2015-10-26 14:20:27 -04:00
rallytime
aebbcb88ea
Pylint fix
2015-10-26 14:10:34 -04:00
rallytime
19b8b868a3
Clean-up/fixes to rabbitmq_user state and test adjustments
2015-10-26 13:48:50 -04:00
rallytime
95defb87c5
Add test for availability_zone check to boto_vpc_tests
2015-10-26 10:15:29 -04:00
Justin Findlay
0dc72135de
update blockdev exec and state module unit tests
2015-10-23 18:12:43 -06:00
twangboy
69c32a663e
Fixed some lint
2015-10-22 11:24:38 -06:00
twangboy
638dec5027
Fixed some tests... let's see if they're really are
2015-10-22 11:05:22 -06:00
Ronald van Zantvoort
46bf6d4fa3
Update file.serialize test for Python serialized
...
pprint.pformat seems non-reversible, so just add the newline there as well
2015-10-21 17:12:53 +02:00
Mike Place
1db6406bef
Merge pull request #28013 from rallytime/bp-27891
...
Back-port #27891 to 2015.8
2015-10-19 06:57:51 -06:00
rallytime
9ea33bf0e4
Pylint fixes
2015-10-16 07:22:46 -06:00
Domingo Kiser
4af5b5c33f
introduce recurse_list pillar_source_merging_strategy
2015-10-16 05:24:40 -06:00
justinta89
cd67843bd0
Fix schedule_test failure
2015-10-15 14:49:26 -06:00
Erik Johnson
2d0b16559e
Merge pull request #27676 from ticosax/no-more-arg-to-docker-start
...
[dockerng] WIP No more runtime args passed to docker.start()
2015-10-14 08:38:41 -05:00
Colton Myers
722327ee5f
Merge pull request #27885 from basepi/merge-forward-2015.8
...
[2015.8] Merge forward from 2015.5 to 2015.8
2015-10-13 16:44:20 -06:00
Colton Myers
5ecd5615f2
Remove failing heavily-mocked test
2015-10-13 15:08:40 -06:00
Nicolas Delaby
a1d0ba392f
fixup! Do not pass any argument to docker.start
2015-10-13 20:53:11 +02:00
Nicolas Delaby
65c8762e1f
Do not pass any argument to docker.start
...
docker.create is responsible to manage all of them, since docker API 1.16
2015-10-13 19:39:32 +02:00
Mike Place
36f05fb526
Merge pull request #27882 from twangboy/win_task_module
...
Created win_task.py module
2015-10-13 10:54:13 -06:00
Mike Place
a158cd50e6
Merge pull request #27746 from alprs/fix-timedatectl_failure
...
timezone module: handle timedatectl errors
2015-10-13 08:55:27 -06:00
Mike Place
9dc19caa79
Merge pull request #27816 from alprs/fix-reboot_delay
...
Make system.reboot use `shutdown -r` when available
2015-10-13 08:52:06 -06:00
twangboy
14e060ed9c
Fixed some tests
2015-10-12 16:54:10 -06:00
Andreas Lutro
04ef51e524
make system.reboot use shutdown -r
when available
...
see issue #27710
2015-10-12 21:54:42 +02:00
Justin Findlay
bc0f167850
update timezone mod unit tests for errors
2015-10-12 11:39:03 -06:00
C. R. Oldham
b049377cbe
Remove rest_sample_test, it wasn't testing anything
2015-10-12 08:34:36 -06:00
Eren Güven
2caf1d21d6
fix test
2015-10-08 14:57:33 +02:00
Nicolas Delaby
821ed72f37
pass filters argument to dockerng.ps
2015-10-07 15:06:16 +02:00
Nicolas Delaby
edf625c8b4
Add support of labels
parameter for dockerng
2015-10-06 13:18:05 +02:00
Colton Myers
77516912fa
Merge pull request #27630 from ticosax/include-container-id-docker-mine
...
Expose container_id in mine.get_docker
2015-10-05 15:56:53 -06:00
Colton Myers
7a4291008e
Merge pull request #27689 from rallytime/fix-tests-27448
...
Merge #27448 with test fixes
2015-10-05 15:17:41 -06:00
rallytime
05a506ec9f
Use correct comment in test
2015-10-05 14:02:13 -06:00
rallytime
8296fefb31
Merge #27448 with test fixes
2015-10-05 12:33:03 -06:00
Nicolas Delaby
9e56a7e9db
Expose container_id in mine.get_docker
...
Because sometimes we should be able to perform additional introspection.
2015-10-02 21:30:33 +02:00
Mike Place
fd11e0cd95
Merge pull request #27522 from twangboy/fix_26629
...
Removed dependency on powershell to restart salt-minion
2015-09-30 10:19:29 -06:00
C. R. Oldham
eb76531e96
Merge pull request #27550 from rallytime/cloud-logging
...
[2015.8] Clean up salt-cloud logging and make it more useful
2015-09-30 09:48:53 -06:00
Nicole Thomas
e5de9409c2
Merge pull request #27525 from basepi/merge-forward-2015.8
...
[2015.8] Merge forward from 2015.5 to 2015.8
2015-09-29 21:38:22 -06:00
rallytime
78c85fbb31
Add unit tests for new recursive function
2015-09-29 21:25:47 -06:00
Colton Myers
1f3eb1c526
Remove useless mocked unit test
2015-09-29 18:23:46 -06:00
twangboy
163c54505d
Fixed tests... hopefully
2015-09-29 15:28:23 -06:00
Colton Myers
73b90f155e
Merge remote-tracking branch 'upstream/2015.5' into merge-forward-2015.8
...
Conflicts:
doc/topics/cloud/gce.rst
doc/topics/windows/windows-package-manager.rst
salt/client/ssh/state.py
salt/cloud/clouds/ec2.py
salt/modules/defaults.py
salt/modules/file.py
salt/utils/cloud.py
2015-09-29 14:56:41 -06:00
Nicole Thomas
e974a3c8aa
Merge pull request #27510 from rallytime/ryan-lane-test-fix
...
Merge #27475 with test fixes
2015-09-29 12:34:32 -06:00
rallytime
cae2c4e715
Syntax fix
2015-09-29 10:02:16 -06:00
rallytime
458547ba03
Fix test failures for boto __state__ changes
2015-09-29 09:55:44 -06:00
Mike Place
d85b0cbd69
Merge pull request #27451 from ticosax/dockerng-host-config-support
...
[dockerng] Enforce usage of host_config and require docker-py>=1.4.0
2015-09-29 09:51:28 -06:00
Nicolas Delaby
fadd9bd43e
Add test to check we don't call inspect_image on absent images.
2015-09-29 15:53:29 +02:00
Nicolas Delaby
b184faa55b
Enforce usage of host_config and require docker-py>=1.4.0
2015-09-28 23:24:57 +02:00
Mike Place
0bc37c0d41
Fix test
2015-09-28 12:57:22 -06:00
Nicolas Delaby
a1ed6cda56
Skip test if docker-py is not installed
2015-09-28 19:53:10 +02:00