Bo Maryniuk
c6135975b0
Rename Zypper products static test data file
2016-02-24 11:20:53 +01:00
justinta89
fd1e2838ea
Lint
2016-02-23 19:40:42 -07:00
justinta89
421a112914
Added config_dir to test minion config
2016-02-23 19:40:22 -07:00
justinta89
bf6a4c0983
Fixed lint error
2016-02-23 16:20:06 -07:00
justinta89
3566fbbcca
More updates to beacons test
2016-02-23 16:19:07 -07:00
justinta89
37c4bf22d2
Updated beacons integration test
2016-02-23 15:46:21 -07:00
rallytime
1931c61563
Only run this pkg.info_installed test on distros that have that func
2016-02-23 15:22:14 -07:00
rallytime
0488668a00
Fix lowpkg.info function for Ubuntu 12 - make sure we have a pkg name
...
Fixes #31370
2016-02-23 11:09:36 -07:00
Bo Maryniuk
e87864986d
Add Zypper unit test: test_list_products and test_refresh_db
2016-02-23 17:35:48 +01:00
Bo Maryniuk
cd6419fc9c
Add Zypper Unit Test installed products sample data
2016-02-23 17:34:37 +01:00
Mike Place
64ed9fcd01
Merge pull request #31418 from terminalmage/fix-debian-grains
...
Fix core grains when Debian OS detected as 'Debian GNU/Linux'
2016-02-23 08:49:49 -07:00
Erik Johnson
5c833efc01
Support running grains tests
2016-02-22 21:55:32 -06:00
Erik Johnson
0e0cd17160
Rename core.py to core_test.py
2016-02-22 21:54:49 -06:00
Erik Johnson
d3cd1b596d
Add unit test for core grains
2016-02-22 16:37:03 -06:00
justinta89
6db628be1a
Basic integration tests for beacons execution module
2016-02-22 11:22:34 -07:00
Erik Johnson
c7bd13c9c9
Merge pull request #31376 from cro/suse_service2
...
Some distros don't have a /lib/systemd
2016-02-22 12:11:39 -06:00
Mike Place
105821efc7
Merge pull request #31352 from ticosax/pull-image-on-running
...
[dockerng] Pull missing images when calling dockerng.running
2016-02-22 09:54:10 -07:00
justinta89
3b238c2e68
Started adding beacons execution module tests
2016-02-22 08:53:02 -07:00
C. R. Oldham
f3fec5562e
We need one more mocked return from listdir.
2016-02-21 21:55:08 -07:00
Nicolas Delaby
8c86eeb4dc
Pull missing images when calling dockerng.running
...
fixes #29727
2016-02-19 15:43:52 +01:00
Nicolas Delaby
a8dc33a5e3
Saltnado provide also get parameters to the context
2016-02-19 09:11:15 +01:00
Mike Place
f0ba9c1eca
Merge pull request #31326 from ticosax/2015.8-dockerng-detect-settings-removal
...
[dockerng ] Detect settings removal
2016-02-18 15:02:50 -07:00
Nicolas Delaby
7bedd86ebe
Add detection of removed settings.
...
When removing settings from dockerng.running state definition,
changes where ignored as `_compare()` was iterating only over user defined
parameters.
By looping over all available options we are now sure to not miss
removed entries.
Extend definition of expected default values:
- Some default values are predictable and hardcoded in the VALID_CREATE_OPTS dict.
- Some default needs to be read from images (`image_path`)
- Some defaults values are unpredictable (hostname, mac_address)
we are comparing desired value against value reported by the container
(`get_default_from_container`).
2016-02-18 20:23:31 +01:00
Joe Julian
783e9b2e13
Rework tests and fix reverse peering with gluster 3.7
...
Reworked the test structure design for the gluster module and state so I
could create a test that mimiced the behavior difference between 3.7 and
prior versions when reverse probing by ip a server that already exists.
Added the additional data given by gluster 3.7 to the output of
glusterfs.list_peers to allow us to compare a requested peering against
a host's aliases.
Fixes #30932
2016-02-17 13:10:07 -08:00
rallytime
023ad4635c
Merge branch '2015.5' into '2015.8'
...
Conflicts:
- salt/modules/win_update.py
- salt/states/win_update.py
2016-02-17 09:33:08 -07:00
Mike Place
c5e5af827c
Merge pull request #31171 from Ch3LL/megan-20158
...
added logic to check for installed package
2016-02-12 15:10:21 -07:00
Mike Place
a024d3536f
Merge pull request #31177 from Ch3LL/test_content_pillars
...
add integration test for issue #30934
2016-02-12 15:09:31 -07:00
Ch3LL
9204e3f562
add integration test for issue 30934w
2016-02-12 12:21:50 -07:00
Ch3LL
a12e2f566b
fix lint error
2016-02-12 11:38:29 -07:00
Ch3LL
a123efd4ef
added logic to check for installed package
2016-02-12 11:01:35 -07:00
Tarjei Husøy
ceae2a16f8
Support match-sets in iptables module
...
Based on work by @l13t in https://github.com/saltstack/salt/pull/29426 .
Added tests and fixed incorrect appending of the built rule.
Closes #29423 .
2016-02-12 10:24:50 -07:00
Mike Place
b831e0a865
Merge pull request #31131 from Ch3LL/megan-20158
...
integration test for issue #31014
2016-02-11 10:33:23 -07:00
Mike Place
a4040da46d
Fix bad unit test
2016-02-11 10:31:40 -07:00
Ch3LL
af82b1233a
integration test for issue #31014
2016-02-10 21:46:22 -07:00
Mike Place
c56a819fd8
Merge pull request #31108 from jtand/npm_test_fix
...
Changed npm integration test to install request.
2016-02-10 14:52:02 -07:00
Mike Place
5bf5848e04
Fixup unit test
2016-02-10 14:36:21 -07:00
justinta89
a5eac47b25
Changed npm integration test to install request.
...
Later versions of npm were having trouble installing pm2 with the git link.
2016-02-10 14:31:16 -07:00
Mike Place
de1abae9d1
Merge pull request #31105 from cachedout/lint_30975
...
Lint 30975
2016-02-10 14:11:21 -07:00
Mike Place
446b4c2aff
Lint #30975
2016-02-10 14:04:59 -07:00
Mike Place
c73b5a4a66
Fix boto_secgroup
2016-02-09 11:52:15 -07:00
Mike Place
25bcc68357
Fix boto test failures
2016-02-09 11:50:26 -07:00
Mike Place
c3f115724a
Merge pull request #30987 from youngnick/add-back-localhost-peer-handling
...
Changed glusterfs.peer() module so state can handle localhost peering attempts.
2016-02-09 10:51:58 -07:00
Mike Place
1950359580
Merge pull request #31012 from terminalmage/fix-gitfs-provider-lc
...
Fix gitfs/git_pillar/winrepo provider to allow lowercase values
2016-02-09 10:24:25 -07:00
Nick Young
730b5ef3e2
Update tests to cover new peering return val.
2016-02-09 10:58:44 +11:00
Erik Johnson
763581798b
Add unit tests to ensure a valid provider
2016-02-08 15:18:11 -06:00
Mike Place
3b7b6f2398
Merge pull request #31002 from rmtmckenzie/cloud-lxc-provide-fix
...
Fix lxc cloud provided minion reporting present
2016-02-08 11:14:50 -07:00
justinta89
962e0deda5
Fixed rabbitmq_vhost test failure.
2016-02-08 10:02:43 -07:00
Morgan McKenzie
9b17fdce5e
Fix lxc cloud provided minion reporting present
...
LXC minion is reporting as present when configured
with cloud state, even though it is not.
Fixes issue #31000
2016-02-08 15:06:56 +00:00
Tim Harper
b4fe9aaa11
fixes issue in which s3.role_arn was defaulting to ''
...
fixes #30899
2016-02-06 14:10:20 -07:00
Mike Place
d9785451c0
Merge pull request #30941 from rallytime/bp-30879
...
Back-port #30879 to 2015.8
2016-02-05 14:15:20 -07:00
Richard Hansen
eb6f289fc1
change default for volume_present()'s force parameter to False
...
This is safer, as it avoids surprising the user with permanent data
loss.
2016-02-05 09:41:19 -07:00
Richard Hansen
34f3057e04
add 'force' to replace (or not) volumes with driver mismatch
...
Add a new 'force' option that will cause volume_present() to delete
and re-create a volume if the existing volume's driver doesn't match
the specified driver. Set the default to True to preserve existing
behavior.
2016-02-05 09:41:18 -07:00
Joe Julian
f96650f3c3
Add realpath to lvm.pvdisplay and use it in vg_present
...
Any sort of symlink could be used for inclusion into an lvm vg but lvm's
pvdisplay may show a real device name, or a mapper device name which is
a symlink.
Since we're interested in finding out if the actual device is part of
our volgroup, we test the realpath of both the device requested and the
device returned by pvdisplay to ensure they're the same device.
Fixes #26867 and #30882
2016-02-04 17:21:38 -08:00
Mike Place
4ae2d829f0
Merge pull request #30888 from ticosax/backport-30797
...
Backport #30797 to 2015.8
2016-02-04 14:02:25 -07:00
Mike Place
4372851ad9
Merge pull request #30895 from bdrung/2015.8
...
Fix various typos
2016-02-04 13:55:10 -07:00
Colton Myers
89bac9076a
Merge pull request #30867 from rallytime/boto-utils-fix
...
Pass in 'pack' variable to utils.boto.assign_funcs function from ALL boto modules
2016-02-04 11:37:05 -07:00
rallytime
6ad7642f6d
Lint
2016-02-04 11:00:02 -07:00
rallytime
58778dfc88
Fix failing boto_vpc module unit tests
2016-02-04 10:33:41 -07:00
Benjamin Drung
56ce7479b1
Fix typo catched -> caught
2016-02-04 12:57:20 +01:00
Richard Hansen
68b51be869
add additional states.dockerng.volume_present() unit tests
...
The unit tests now test for the bug fixed in the previous commit
(among other things).
2016-02-04 10:07:51 +01:00
rallytime
adb85892de
Fix failing state module tests
2016-02-04 00:01:11 +00:00
rallytime
b5ec0991b0
Pylint fix
2016-02-03 15:00:44 -07:00
Erik Johnson
58c4c01743
Add __role to master opts for gitfs integration tests
2016-02-02 21:58:50 -06:00
Erik Johnson
ef14956db0
Integration test for #30820
2016-02-02 15:34:19 -06:00
Mike Place
ec4e2bb9bb
Merge pull request #30823 from yannis666/fix-for-mine-update-merge2
...
Fix for mine to merge configuration on update.
2016-02-02 13:21:24 -07:00
Mike Place
a3feba4a26
Merge pull request #30826 from cachedout/fix_30682
...
Fix 30682
2016-02-02 12:40:05 -07:00
Mike Place
3b246db0b0
Fix stupid test
2016-02-02 12:39:24 -07:00
yannis
99c7c12aba
Fix for mine to merge configuration on update.
...
This fix was previously applied to 2015.5.
It fixes #30722
2016-02-02 10:43:00 -08:00
Erik Johnson
8a836c88f4
Update systemd tests
2016-02-01 10:18:08 -06:00
Colton Myers
84eeab7720
Merge remote-tracking branch 'upstream/2015.5' into merge-forward-2015.8
...
Conflicts:
salt/returners/local_cache.py
2016-01-29 14:57:31 -07:00
Steve Hajducko
3544dd995e
Fix lsscsi issues for certain platforms
...
The lsscsi command doesn't support the '-s' flag on any RHEL/CentOs system
until RHEL7.
The command now have an option to specify 'get_size' to enable
compatibility with the older platforms.
Also fixes some issues with lsscsi not being installed and exceptions
getting thrown because of that.
2016-01-27 21:15:26 -08:00
Colton Myers
5bc11d7539
Merge pull request #30631 from rallytime/fix-7811
...
Refactor rabbitmq_cluster states to use test=true functionality correctly
2016-01-26 09:23:49 -07:00
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
Mike Place
cdc731b8c5
Merge pull request #30521 from basepi/merge-forward-2015.8
...
[2015.8] Merge forward from 2015.5 to 2015.8
2016-01-21 16:05:03 -07:00
Colton Myers
f22f5ff851
Fix lint
2016-01-21 15:33:15 -07:00
Erik Johnson
ea0ca70187
Add git.list_worktrees unit test
2016-01-21 15:42:30 -06:00
Colton Myers
117fb205de
Merge remote-tracking branch 'upstream/2015.5' into merge-forward-2015.8
...
Conflicts:
tests/unit/modules/boto_vpc_test.py
2016-01-21 14:37:32 -07:00
Erik Johnson
393015edbb
Remove git.list_worktrees tests
...
These are being added back as unit tests.
2016-01-21 15:13:02 -06:00
Justin Findlay
66f06f2bd3
disable pkgrepo test for ubuntu 15.10+
2016-01-21 10:55:37 -07: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
Justin Findlay
fb9972f590
modules.pkg: disable repo int test for ubuntu 15.10
2016-01-19 15:27:12 -07: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
Thomas S Hatch
ab61f78295
Merge pull request #29775 from lyft/listen-id-declaration-resolution-stable
...
Change listen requisite resolution from name to ID declaration
2015-12-16 15:56:03 -07:00
Paul Fisher
ff3a809c11
Change listen requisite resolution from name to ID declaration
2015-12-16 13:54:49 -08: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
6a7a95f28a
Merge pull request #28501 from twangboy/jmoney_26898
...
Requested fixes for 26898
2015-12-02 18:12:12 -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
Mike Place
39667fda12
Merge pull request #29240 from clan/linux_acl
...
handle acl_type [[d]efault:][user|group|mask|other]
2015-12-01 10:56:20 -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
Z. Liu
02429aca69
handle acl_type [[d]efault:][user|group|mask|other]
2015-12-01 14:55:08 +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
Mike Place
d651d7167e
Merge pull request #29067 from jacksontj/2015.8
...
Fix infinite recursion in state compiler for prereq of SLSs
2015-11-30 13:27:09 -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
2477ff2eab
Add __init__ and pydsl test
2015-11-25 10:50:30 -07:00
Mike Place
063f075a99
Add integration renderer tests to the suite
2015-11-25 10:14:46 -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
Mike Place
68d6c454b8
Merge pull request #29141 from optix2000/full_sls_import
...
Add test case for require: sls with only import statements
2015-11-24 09:17:57 -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
Weilu Jia
596843e8d6
Add test case for sls with only import
...
Tests https://github.com/saltstack/salt/issues/10852
2015-11-23 18:27:56 -08:00
Weilu Jia
64e439cda2
Add test for infinite recursion with sls prerequisites
2015-11-23 09:12:06 -08:00
Mike Place
714ef8ff27
Merge pull request #29057 from lyft/file-manage-local-source-list
...
Add local file support for file.managed source list
2015-11-19 14:57:34 -07: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