Commit Graph

6646 Commits

Author SHA1 Message Date
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
Justin Findlay
f671c3bf3b tests.runtests: add minion test runner 2016-02-23 13:47:47 -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
43d531b93d Merge pull request #31392 from vodik/nftables
Changes to nftables module
2016-02-23 09:15:01 -07: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
twangboy
144f7206fe Fix uppercase computer names 2016-02-22 16:42:08 -07:00
Mike Place
873061e2fa Merge pull request #31422 from cachedout/remove_runit_test
Remove useless test
2016-02-22 16:28:01 -07:00
Mike Place
56a899c8d9 Remove useless test
This tests absolutely nothing and has no real point.
2016-02-22 16:26:30 -07:00
Erik Johnson
d3cd1b596d Add unit test for core grains 2016-02-22 16:37:03 -06:00
Mike Place
2bd9af38b0 Merge pull request #31329 from kraney/boto_iam
Extend boto_iam with support for managed policies
2016-02-22 12:28:30 -07:00
justinta89
6db628be1a Basic integration tests for beacons execution module 2016-02-22 11:22:34 -07:00
Mike Place
e1ade05e54 Merge pull request #31355 from rallytime/fix-31330
Fix orchestrate outputter when retcode is appended to orchestrate run
2016-02-22 11:13:07 -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
268180f49b Merge pull request #31386 from rallytime/merge-2016.3
[2016.3] Merge forward from 2015.8 to 2016.3
2016-02-22 10:43:32 -07:00
Kris Raney
04b3a24e78 Update unit tests to reflect changes 2016-02-22 10:58:23 -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
rallytime
8d928ab34a Pylint fix from wierd git behavior 2016-02-22 09:24:13 -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
rallytime
38f89bf8fd Merge branch '2016.3' into 'develop'
Conflicts:
  - salt/beacons/inotify.py
  - salt/beacons/load.py
2016-02-21 15:23:24 -07:00
Simon Gomizelj
c0ac0c0096 Fix check_table
The output of 'nft list tables' has the family included in the output
2016-02-20 21:32:48 -05:00
rallytime
4baea26c58 Merge branch '2015.8' into '2016.3'
Conflicts:
  - doc/topics/netapi/index.rst
  - salt/modules/win_servermanager.py
  - salt/modules/zypper.py
2016-02-20 12:27:41 -07:00
Justin Findlay
8623c24335 add integration tests for minion blackout
Related to #30868.
2016-02-19 18:04:31 -07:00
rallytime
28763be519 Remove unused import 2016-02-19 09:51:18 -07:00
rallytime
9b52e39e90 Add testcase for state.orchestrate output 2016-02-19 09:14:46 -07:00
Nicolas Delaby
8c86eeb4dc Pull missing images when calling dockerng.running
fixes #29727
2016-02-19 15:43:52 +01:00
Ronald van Zantvoort
3110e3424f Additional fixes to test output, unit tests fixes 2016-02-19 13:11:59 +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
Mike Place
3832f9b874 Merge pull request #30979 from dschaller/npm-cache-clean
Adding NPM cache_cleaned state & module functions
2016-02-18 14:51:04 -07:00
Mike Place
b40c611d0d Merge pull request #31067 from jfindlay/deprecate_env
Deprecate env
2016-02-18 14:42:10 -07:00
Mike Place
02f79dc2b3 Merge pull request #31322 from rallytime/merge-2016.3
[2016.3] Merge forward from 2015.8 to 2016.3
2016-02-18 14:28:02 -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
rallytime
cc29092dcb Merge branch '2016.3' into 'develop' 2016-02-18 11:33:24 -07:00
rallytime
01aa33ac12 Merge branch '2015.8' into '2016.3' 2016-02-18 11:13:23 -07:00
rallytime
7ea9dacbdd Merge branch '2015.8' into '2016.3'
Conflicts:
  - salt/beacons/inotify.py
  - salt/beacons/load.py
  - salt/minion.py
  - salt/modules/win_update.py
  - salt/modules/yumpkg.py
  - salt/utils/pkg/rpm.py
2016-02-18 11:10:44 -07:00
Mike Place
fe316eb3d2 Merge pull request #31265 from terminalmage/issue9272
Add skip_verify argument to file.managed state
2016-02-18 10:15:16 -07:00
Mike Place
ce5bc23431 Merge pull request #31289 from jtand/utils_network_tests
Added some additional unit tests to unit.utils.network
2016-02-18 09:56:18 -07:00
Mike Place
9281ff5b1f Merge pull request #31307 from LoveIsGrief/salt-27089-new
[Recreated]Saltcloud virtualbox provider
2016-02-18 08:56:21 -07:00
Erik Johnson
cf2ce95e61 Update test to reflect new position of contents param
The addition of the new skip_verify argument to
salt.modules.file.manage_file() means that the position of contents
param in returner.call_args[0] has changed. This commit updates this
test to reflect the new position.

Additionally, a comment has been added to hopefully make failures in
this test easier to grok for people moving forward.
2016-02-17 20:54:44 -06:00
justinta89
d16b520d79 Fixed lint error 2016-02-17 15:43:03 -07:00
Mike Place
74a8f008f5 Merge pull request #31143 from kraney/boto_apigateway
Boto apigateway
2016-02-17 15:17:16 -07:00
justinta89
b3c1fa8de2 Fixed lint errors 2016-02-17 15:01:59 -07: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
Ch3LL
da9bca625e pkg.latest epoch test for 2016 2016-02-17 09:51:11 -07: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
Justin Findlay
a119fa0e66 tests/unit/utils/url_test.py: remove env support 2016-02-16 20:33:23 -07:00
Justin Findlay
4e709ab2be tests/unit/pydsl_test.py: remove env support 2016-02-16 20:33:23 -07:00
Justin Findlay
728f4e6c05 tests/integration/states/compiler.py: remove env support 2016-02-16 20:33:23 -07:00
Mike Place
52a3c9b0c9 Merge pull request #31130 from ticosax/saltnado_pass_get
Saltnado: provide also get parameters to the context
2016-02-16 10:18:52 -07:00
Nicolas Delaby
f0a6d2b814 Saltnado provide also get parameters to the context 2016-02-15 10:09:02 +01:00
Derek Schaller
8d7ab01c67 Fixing npm cache cleaned lint errors 2016-02-12 20:35:13 -08:00
Derek Schaller
6c88c43f28 Merging in cachedout's test fixes 2016-02-12 20:09:22 -08:00
Derek Schaller
4a133d5ddc cache_clean should return a mocked value 2016-02-12 19:51:22 -08: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
rallytime
73d73e80c1 Merge branch '2016.3' into 'develop'
Conflicts:
  - doc/topics/releases/2015.8.4.rst
  - doc/topics/releases/2015.8.5.rst
  - doc/topics/thorium/index.rst
  - salt/cloud/clouds/opennebula.py
  - salt/engines/thorium.py
  - salt/loader.py
  - salt/modules/archive.py
  - salt/modules/boto_vpc.py
  - salt/modules/data.py
  - salt/modules/reg.py
  - salt/pillar/mysql.py
  - salt/runners/cache.py
  - salt/states/archive.py
  - salt/states/cron.py
  - salt/states/file.py
  - salt/states/glance.py
  - salt/states/reg.py
  - salt/thorium/__init__.py
  - salt/thorium/check.py
  - salt/thorium/file.py
  - salt/thorium/reg.py
  - salt/utils/jid.py
  - salt/utils/parsers.py
  - setup.py
2016-02-12 14:38:50 -07:00
justinta89
d43d24ba6c Added more basic unit tests to unit.utils.network 2016-02-12 13:07:07 -07:00
Ch3LL
9204e3f562 add integration test for issue 30934w 2016-02-12 12:21:50 -07:00
LoveIsGrief
04795b1fd2 Add a little more information to the heavy virtualbox tests
Related to saltstack/salt#27089 Saltcloud virtualbox provider
2016-02-12 19:50:19 +01: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
Mike Place
498dec2e91 Fix tests 2016-02-12 10:56:01 -07:00
LoveIsGrief
6704ad31b4 Remove unused param
Related to saltstack/salt#27089 Saltcloud virtualbox provider
2016-02-12 18:36:33 +01: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
Erik Johnson
23b6c08727 Lint fixes for merge-forward 2016-02-12 10:44:18 -06:00
LoveIsGrief
a944c5d86d Fix python3 pylint error
Related to saltstack/salt#27089 Saltcloud virtualbox provider
2016-02-12 17:41:40 +01:00
Colton Myers
0a7b958ae3 Fix s3 test for new kms_keyid parameter/return 2016-02-12 09:21:49 -07:00
LoveIsGrief
bb6ffa80e2 from ... import ... on top for lint?
Related to saltstack/salt#27089 Saltcloud virtualbox provider
2016-02-12 14:08:45 +01:00
LoveIsGrief
3cd04cbccc Remove unused function
Related to saltstack/salt#27089 Saltcloud virtualbox provider
2016-02-12 12:35:32 +01:00
Derek Schaller
b5815d367e Reset the name to valid package in npm cache_cleaned unit test 2016-02-11 22:22:21 -08:00
Colton Myers
076b49a4ca Merge remote-tracking branch 'upstream/2015.8' into merge-forward-2016.3
Conflicts:
    README.rst
    doc/conf.py
    doc/ref/index.rst
    doc/ref/proxy/all/salt.proxy.ssh_sample.rst
    doc/topics/installation/rhel.rst
    doc/topics/releases/2015.8.4.rst
    doc/topics/tutorials/states_pt5.rst
    salt/cloud/clouds/ec2.py
    salt/cloud/clouds/opennebula.py
    salt/config/__init__.py
    salt/modules/boto_dynamodb.py
    salt/modules/boto_ec2.py
    salt/modules/boto_elasticache.py
    salt/modules/boto_elb.py
    salt/modules/boto_iam.py
    salt/modules/boto_rds.py
    salt/modules/boto_sns.py
    salt/modules/boto_sqs.py
    salt/modules/dracr.py
    salt/modules/git.py
    salt/modules/mine.py
    salt/modules/systemd.py
    salt/modules/win_pkg.py
    salt/modules/yumpkg.py
    salt/pillar/__init__.py
    salt/states/git.py
    salt/states/rabbitmq_vhost.py
    salt/states/saltmod.py
    salt/utils/pkg/rpm.py
    setup.py
    tests/unit/modules/systemd_test.py
    tests/unit/states/rabbitmq_vhost_test.py
2016-02-11 22:33:49 -07:00
Derek Schaller
47f8aeee97 Cleaning up npm cache_cleaned unit tests expected response 2016-02-11 20:39:42 -08:00
Derek Schaller
fe56101584 Update unit test to reflect npm ls directory structure 2016-02-11 19:41:08 -08:00
Winston Liu
6006c404bc use itertools instead of zip. 2016-02-11 17:56:28 -08:00
Winston Liu
bc1a6ecec2 import zip from salt.ext.six.moves 2016-02-11 15:18:01 -08:00
justinta89
61e80d7e2f Added more unit tests to unit.utils.network 2016-02-11 15:52:13 -07:00
Winston Liu
b994bcfae5 lint warnings/errors. 2016-02-11 14:24:35 -08:00
Winston Liu
19bbf51a2e resourcepath -> resourcePath for consistency naming. 2016-02-11 13:26:05 -08:00
Mike Place
f24954dde5 Merge pull request #31139 from exowaucka/develop
Improve %h and %u handling in SSH module
2016-02-11 14:13:05 -07:00
Mike Place
52f6887124 Lint 2016-02-11 13:52:59 -07:00
Alex Wauck
329b25b3f1 Improved ssh_auth path expansion test 2016-02-11 13:49:15 -06:00
justinta89
cfc7075c44 Lint and test fixes 2016-02-11 11:22:35 -07:00
justinta89
053ae0cae6 Updated tests to work with code deprecations 2016-02-11 11:22:35 -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
Winston Liu
59aaec3b4c fixed lint warnings. 2016-02-11 08:38:29 -08:00
LoveIsGrief
7965eaab3c Attempt to fix more pylint errors and warnings
Related to saltstack/salt#27089 Saltcloud virtualbox provider
2016-02-11 16:58:57 +01:00
LoveIsGrief
4eab39e9ca Attempt to fix pylint errors and warnings
Related to saltstack/salt#27089 Saltcloud virtualbox provider
2016-02-11 13:56:38 +01:00
Ch3LL
af82b1233a integration test for issue #31014 2016-02-10 21:46:22 -07:00
Winston Liu
824960503c lint warnings/errors. 2016-02-10 15:05:53 -08:00