rallytime
f2c045520d
Write an integration test demonstrating the issue
2016-12-01 16:52:03 -07:00
Mike Place
1e3bb2e12a
Newline for lint
2016-11-30 13:22:53 -07:00
Erik Johnson
23bb90a7ce
Add integration test for archive.extracted with user/group set to root
2016-11-30 13:11:41 -06:00
Ch3LL
8c9e9de335
change name
2016-11-30 10:27:37 -07:00
Ch3LL
1d52c18316
add init_delay option for service.dead state module
2016-11-30 10:22:05 -07:00
rallytime
6479a22c1d
Merge branch '2016.11' into 'develop'
...
Conflicts:
- salt/modules/napalm_network.py
2016-11-18 07:50:16 -07:00
Mike Place
f3496297a6
Don't check archive if the archive can't be found ( #37723 )
...
Fixes possible false postive failure in archive test
2016-11-16 09:23:39 -07:00
Mike Place
bc65697502
Require network for npm tests
2016-11-15 12:45:17 +13:00
rallytime
1b5f89577e
Merge branch '2016.11' into 'develop'
...
Conflicts:
- salt/cloud/clouds/vmware.py
2016-11-14 09:19:49 -07:00
rallytime
4c245a3fa5
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- salt/modules/x509.py
2016-11-10 16:51:52 -07:00
rallytime
7b2341bbfd
Merge branch '2016.11' into 'develop'
...
Conflicts:
- doc/topics/releases/releasecandidate.rst
- salt/modules/file.py
- salt/states/file.py
- salt/utils/network.py
2016-11-10 15:59:51 -07:00
Erik Johnson
2810b85cac
Add a test to ensure we don't check for fast-forward before fetching ( #37571 )
2016-11-09 12:43:25 -07:00
rallytime
9b3e4414c8
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- pkg/windows/modules/get-settings.psm1
- salt/modules/mac_power.py
- salt/modules/win_dsc.py
- salt/modules/win_servermanager.py
- salt/states/file.py
- salt/utils/event.py
- salt/utils/gitfs.py
2016-11-04 15:23:49 -06:00
Mike Place
580eca709b
Merge pull request #37121 from nevins-b/2016.3
...
allow the file.recurse state to support saltenv
2016-11-04 18:59:28 +13:00
rallytime
70851807bd
Merge branch 'carbon' into 'develop'
...
Conflicts:
- salt/modules/status.py
2016-10-24 09:35:00 -06:00
rallytime
caa8fc9169
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- pkg/deb/salt-api.service
- pkg/deb/salt-master.service
- salt/client/__init__.py
- salt/fileclient.py
- salt/modules/cp.py
- salt/modules/status.py
- tests/integration/__init__.py
- tests/integration/modules/cp.py
2016-10-21 15:50:03 -06:00
Nevins Bartolomeo
bc4b0e7cda
adding test for saltenv in file.recurse source url
2016-10-21 08:44:58 -04:00
twangboy
f1c8d98119
Skip weird_install test on Mac OS X
2016-10-20 11:05:34 -06:00
twangboy
90de794290
Fix test_issue_6833_pip_upgrade_pip test on OSX
2016-10-20 11:05:28 -06:00
Mike Place
71e35d3c82
Check for a second place a transient error can occur in an SSH test
2016-10-05 16:32:57 +09:00
rallytime
861a001749
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-09-23 15:06:28 -06:00
Nicole Thomas
07c9d040c0
Fixup the rabbitmq_user state test failure ( #36541 )
2016-09-23 15:05:40 -06:00
rallytime
1755f22de1
Merge branch '2016.3' into 'carbon'
...
No conflicts.
2016-09-22 10:01:17 -06:00
Mike Place
85907ef008
Merge pull request #36485 from gtmanfred/carbon
...
clean up keystone tests
2016-09-22 13:12:36 +09:00
Daniel Wallace
8deb342488
clean up keystone tests
...
Don't want to overwrite the stuff for the glance tests
2016-09-21 14:43:42 -05:00
rallytime
77f8120395
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- doc/topics/installation/windows.rst
- salt/engines/sqs_events.py
- salt/grains/core.py
2016-09-21 10:43:38 -06:00
rallytime
8805b57a1e
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-09-21 09:32:53 -06:00
Mike Place
41d3c09857
Merge pull request #35433 from terminalmage/issue34790
...
git.latest: Add a hint for possible rev changes resulting in non-fast-forward failures
2016-09-21 16:02:18 +09:00
rallytime
7bcbf8dc36
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- doc/faq.rst
- salt/modules/win_service.py
2016-09-20 10:43:55 -06:00
rallytime
2740fb7bfd
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/grains/core.py
2016-09-20 10:39:53 -06:00
Erik Johnson
aab02f28b4
Ensure we have a test venv created using virtualenv < 13.0
...
The test that runs these states is testing for behavior that was
obsoleted by virtualenv 13.0. Ensure that we have older virtualenv
available, and then create a venv with that older version. Use the
2nd virtualenv to attempt the "weird" install.
2016-09-19 14:27:30 -06:00
Thomas S Hatch
5625827ee2
Merge pull request #36378 from terminalmage/issue36321
...
git.latest Treat an up-to-date checkout with local changes as up-to-date
2016-09-19 12:43:29 -06:00
rallytime
c64e489f6f
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-09-19 11:22:54 -06:00
Erik Johnson
bb4d69f58a
git.latest: fail gracefully for misconfigured remote repo ( #36391 )
...
* git.latest: fail gracefully for misconfigured remote repo
When the remote repo's HEAD refers to a nonexistent ref, this was
causing a traceback when we tried to check if the upstream tracking
branch needed to be changed after cloning the repo. This commit fixes
this traceback by gracefully failing the state when the remote HEAD is
not present in the ``git ls-remote`` output, but the desired remote
revision doesn't exist.
Additionally, a similar graceful failure now happens if the state is run
again after we gracefully fail the first time, and we need to set the
tracking branch. Trying to set the tracking branch when there is no
local branch would fail with an ambiguous error like "fatal: branch
'master' does not exist", so before we even attempt to set the tracking
branch, the state is failed with a more descriptive comment.
* Add integration test for #36242
2016-09-19 09:33:00 -06:00
Erik Johnson
71b51f49ba
Add integration tests for PR #35433
2016-09-17 22:55:47 -05:00
Erik Johnson
7b1f621206
Fix git.latest test with local changes to reflect changes in state
2016-09-17 21:56:31 -05:00
Mike Place
52e9ba4076
Revert "Skip some tests on MacOS" ( #36341 )
2016-09-15 11:12:04 -06:00
Thomas S Hatch
d69878127e
Merge pull request #36284 from jfindlay/mac_skip
...
Skip some tests on MacOS
2016-09-15 09:46:30 -06:00
Erik Johnson
d9726f73a7
Remove reference to no-longer-skipped test
2016-09-15 08:57:38 -05:00
Erik Johnson
83cb406cc9
Merge branch 'twangboy-mac_pip_tests' into carbon
2016-09-15 08:56:49 -05:00
Erik Johnson
55fb5f4d2f
Merge branch 'mac_pip_tests' of https://github.com/twangboy/salt into twangboy-mac_pip_tests
2016-09-15 08:56:21 -05:00
Erik Johnson
f4dded464c
Ensure we have a test venv created using virtualenv < 13.0
...
The test that runs these states is testing for behavior that was
obsoleted by virtualenv 13.0. Ensure that we have older virtualenv
available, and then create a venv with that older version. Use the
2nd virtualenv to attempt the "weird" install.
2016-09-14 22:42:39 -05:00
Justin Findlay
30fd9a622a
skip pip weird install test
2016-09-14 14:40:43 -06:00
rallytime
dd1769ea58
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- salt/modules/file.py
- salt/runners/cloud.py
- salt/utils/gitfs.py
2016-09-14 13:08:42 -06:00
rallytime
9e15df9b23
Switch the order of the decorator
...
When @requires_system_grains is listed before other decorators, wrapper
function gets confused on where the grains kwarg should go.
2016-09-14 12:12:21 -06:00
Mike Place
ee997be6d8
Fix pkg group test by passing a list instead of str
...
Refs integration.states.pkg.PkgTest.test_group_installed_handle_missing_package_group
2016-09-14 09:53:10 -06:00
rallytime
c7d8867096
Gate the pkg.group_installed state test: not all pkg modules have group_install
...
Refs #35907
2016-09-14 09:25:56 -06:00
rallytime
95dbe1ade4
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- salt/fileserver/__init__.py
- setup.py
- tests/integration/modules/git.py
2016-09-14 09:15:29 -06:00
Mike Place
6a76a3a7e0
Merge pull request #36265 from rallytime/merge-carbon
...
[carbon] Merge forward from 2016.3 to carbon
2016-09-14 14:32:15 +09:00
Pablo Suárez Hernández
ed2d2bd331
Integration tests fixes for 2015.8 ( #36262 )
...
* Fixing integration tests if azure is not present
* Fixing integration tests failures if 'git' command is missing
Skip git state integration tests if 'git' does not exists
Prevent OSError if 'git' command not found during _git_version()
2016-09-13 15:24:06 -06:00
Pablo Suárez Hernández
a0bbb0f648
Integration tests fixes for 2016.3 ( #36263 )
...
* Fix PillarModuleTest::test_pillar_items: 'info' does not exist in pillar
* Fixing integration tests if azure is not present
* Fixing integration tests failures if 'git' command is missing
Skip git state integration tests if 'git' does not exists
Prevent OSError if 'git' command not found during _git_version()
2016-09-13 12:40:56 -06:00
twangboy
c01ec228e1
Skip weird_install test on Mac OS X
2016-09-13 11:35:38 -06:00
Daniel Wallace
b488cf2420
add __main__ function for keystone test
2016-09-13 10:23:04 -05:00
rallytime
e6a412dd49
Merge branch '2016.3' into 'carbon'
...
No conflicts.
2016-09-13 08:23:51 -06:00
Mike Place
de06116075
Merge pull request #35688 from cachedout/issue_33525
...
Splat serializer default configs into the serializer kwargs
2016-09-13 18:21:46 +09:00
Ch3LL
9ede50b451
fix archive test to only run on redhat
2016-09-12 15:43:06 -06:00
twangboy
4ae8a43435
Fix test_issue_6833_pip_upgrade_pip test on OSX
2016-09-12 12:17:30 -06:00
Mike Place
1eb67df61e
Merge pull request #36198 from gtmanfred/carbon
...
add keystone state integration tests
2016-09-11 18:16:38 +09:00
Daniel Wallace
1c31d5e464
add keystone state integration tests
...
fix api_version for using connection_args
2016-09-09 17:14:44 -05:00
rallytime
3ed6190ece
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- salt/minion.py
2016-09-09 09:36:57 -06:00
Mike Place
1d5f97d36b
Merge pull request #35907 from rallytime/fix-35819
...
Catch CommandExecutionError when the group in group_installed doesn't exist
2016-09-09 19:14:16 +09:00
rallytime
40d0def479
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- salt/states/archive.py
2016-09-07 10:11:36 -06:00
Thomas S Hatch
40081176af
Merge pull request #34529 from Ch3LL/add_skip_verify_archive
...
Add skip_verify for archive.extracted
2016-09-06 15:05:31 -06:00
rallytime
1bf840b036
Merge branch '2016.3' into 'develop'
...
No conflicts.
2016-09-02 09:43:40 -06:00
rallytime
a63c9dfc6a
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/states/service.py
2016-09-02 08:19:16 -06:00
Mike Place
6cf56843d4
Revert "service state integration tests"
2016-09-02 21:38:15 +09:00
Justin Anderson
9f7994ea40
Suse user state test fix ( #36009 )
2016-09-01 16:28:13 -06:00
rallytime
d7380d83be
requires_system_grains decorator needs a grains=None kwarg
2016-08-31 11:35:02 -06:00
Mike Place
a238666aba
Add serializer test
2016-08-31 23:16:40 +09:00
Ch3LL
38203e3d2c
add tornado web app to serve up static file for test
2016-08-30 15:43:28 -06:00
rallytime
b20f6b9384
Catch CommandExecutionError when group_installed doesn't exist
...
Includes an integration test to make sure this doesn't regress.
Fixes #35819
2016-08-30 11:44:17 -06:00
Mike Place
6725cd458c
Merge pull request #35156 from twangboy/int_states_file
...
Fix integration tests for file state on Windows
2016-08-30 17:45:17 +09:00
Mike Place
353d4b70eb
Merge pull request #35180 from twangboy/int_states_cmd
...
Fix integration tests for cmd state on Windows
2016-08-30 17:44:04 +09:00
twangboy
f1bb655e82
Use returns instead of elses
2016-08-29 16:25:29 -06:00
twangboy
f5e0398cc0
Remove skipIf decorator
2016-08-29 16:13:41 -06:00
twangboy
1f7c4e2a32
Fix other mode tests for Windows
2016-08-29 16:12:06 -06:00
twangboy
ecd58bab06
Fix key error
2016-08-29 16:03:00 -06:00
twangboy
9be5d83a25
fix managed_file_mode test
2016-08-29 15:59:17 -06:00
twangboy
566d9b4982
Close file properly
2016-08-29 15:29:47 -06:00
twangboy
b7263d24b5
Additional cachedout recommendations
2016-08-29 15:22:17 -06:00
twangboy
97f3c1fa71
Add missing import
2016-08-29 14:53:41 -06:00
twangboy
9dfa523cc0
Fix test_symlink for Windows
2016-08-29 14:53:41 -06:00
twangboy
aca27acc9b
Fix test_template_local_file and _noclobber
2016-08-29 14:53:41 -06:00
twangboy
31c983fac5
Fix test_template_local_file_noclobber for Windows
2016-08-29 14:53:41 -06:00
twangboy
a37f250460
Fix a few more tests for Windows
2016-08-29 14:53:41 -06:00
twangboy
85fc2f1adc
Fix test_absent_link, test_managed_contents
2016-08-29 14:53:41 -06:00
twangboy
aafe1aff38
Create missing source for symlink on windows
2016-08-29 14:53:41 -06:00
twangboy
cd2ce9fb01
Use Jinja instead of seperate files
2016-08-29 14:53:41 -06:00
twangboy
ba2047e37b
Fix a few more tests
2016-08-29 14:53:41 -06:00
twangboy
64ca61065d
Use IS_WINDOWS instead of salt.utils.is_windows
2016-08-29 14:53:41 -06:00
twangboy
b647630dd3
Add missing @ on decorators
2016-08-29 14:53:41 -06:00
twangboy
56180cf09d
Fix/Skip tests for windows
2016-08-29 14:53:41 -06:00
twangboy
4d4ffac5ae
Gate stuff that makes windows crash
2016-08-29 14:53:41 -06:00
Justin Anderson
63955392e4
os_family is Suse not SUSE ( #35706 )
2016-08-23 14:55:16 -06:00
Nicole Thomas
28f3ed47ca
Don't assume we have a file to remove in tearDown ( #35709 )
...
Some tests build the state file in the test itself and need to
be removed. However, some tests rely on sls files inside of the
integration file state tree. Therefore, in those tests, we have
nothing to remove.
2016-08-23 14:43:55 -06:00
rallytime
b80ef26cf2
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/cli/batch.py
- salt/minion.py
- salt/modules/cassandra_cql.py
- salt/modules/rsync.py
2016-08-23 10:44:55 -06:00
rallytime
1d819d7cc2
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-08-22 09:29:13 -06:00
rallytime
30f42d5352
Write test for multiple unless commands where 1st cmd passes and 2nd fails
...
This is a regression integration test for #35384 , which was fixed by #35545 ,
and back-ported to the 2015.8 branch in #35566 .
2016-08-18 11:04:08 -06:00
twangboy
1b85aa82a3
Remove unused skipIf import
2016-08-17 10:41:46 -06:00
twangboy
bd2c05b988
Fix skipped windows tests
2016-08-17 10:41:46 -06:00
Erik Johnson
235c9f5fe2
Close file descriptor for temp file
2016-08-17 10:37:46 -06:00
twangboy
4fc64e9e7a
Add missing skipIf import
2016-08-17 10:37:46 -06:00
twangboy
ff96a88374
Fix/Skip tests
2016-08-17 10:37:46 -06: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
Erik Johnson
a375dd7e1f
Clean up open filehandles ( #35359 )
...
* salt/crypt.py: clean up open filehandles
* salt/fileclient.py: clean up open filehandles
* salt/grains/core.py: clean up open filehandles
* salt/modules/cp.py: clean up open filehandles
* salt/modules/data.py: clean up open filehandles
* salt/modules/dnsutil.py: clean up open filehandles
* salt/modules/dockerng.py: clean up open filehandles
* salt/modules/inspectlib/collector.py: clean up open filehandles
* salt/modules/file.py: clean up open filehandles
* salt/modules/hosts.py: clean up open filehandles
* salt/modules/incron.py: clean up open filehandles
* salt/modules/dpkg.py: clean up open filehandles
* salt/modules/linux_sysctl.py: clean up open filehandles
* salt/modules/netbsd_sysctl.py: clean up open filehandles
* salt/modules/network.py: clean up open filehandles
* salt/modules/nftables.py: clean up open filehandles
* salt/modules/openbsd_sysctl.py: clean up open filehandles
* salt/modules/rh_ip.py: clean up open filehandles
* salt/modules/portage_config.py: clean up open filehandles
* salt/modules/status.py: clean up open filehandles
* salt/modules/tls.py: clean up open filehandles
* salt/modules/xapi.py: clean up open filehandles
* salt/modules/x509.py: clean up open filehandles
* salt/modules/virt.py: clean up open filehandles
* salt/modules/zcbuildout.py: clean up open filehandles
* salt/returners/local_cache.py: clean up open filehandles
* salt/utils/cloud.py: clean up open filehandles
* salt/states/pkgrepo.py: clean up open filehandles
* salt/states/x509.py: clean up open filehandles
* salt/transport/mixins/auth.py: clean up open filehandles
* salt/utils/__init__.py: clean up open filehandles
* salt/states/pkg.py: clean up open filehandles
* salt/utils/minion.py: clean up open filehandles
* salt/utils/openstack/nova.py: clean up open filehandles
* salt/utils/openstack/swift.py: clean up open filehandles
* salt/utils/process.py: clean up open filehandles
* salt/utils/templates.py: clean up open filehandles
* salt/utils/virt.py: clean up open filehandles
* tests/integration/__init__.py: clean up open filehandles
* tests/integration/cli/grains.py: clean up open filehandles
* tests/integration/client/standard.py: clean up open filehandles
* tests/integration/modules/hosts.py: clean up open filehandles
* tests/unit/utils/vt_test.py: clean up open filehandles
* tests/integration/shell/enabled.py: clean up open filehandles
* tests/integration/states/cmd.py: clean up open filehandles
* tests/integration/states/file.py: clean up open filehandles
* tests/integration/states/match.py: clean up open filehandles
* tests/unit/config_test.py: clean up open filehandles
* tests/unit/templates/jinja_test.py: clean up open filehandles
* tests/unit/utils/find_test.py: clean up open filehandles
* tests/integration/modules/state.py: clean up open filehandles
* Update dnsutil_test to reflect changes in fopen usage
2016-08-11 10:45:24 -06:00
rallytime
a651962e95
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-08-10 10:02:03 -06:00
Erik Johnson
243909f39d
file.recurse: Do not convert octal mode string to int ( #35309 )
...
* Add integration test for #34945
* file.recurse: Do not convert octal mode string to int
When we run file.makedirs_perms to create the dest directory, we pass
through the mode to file.check_perms. However, file.check_perms expects
an octal string, not an int. This causes the initial directory to be
chmod'ed to the wrong mode. When there are files in the source
directory, file.recurse will invoke the file.directory state to manage
files/dirs in that directory, and this ends up correcting the mode as we
simply pass the dir_mode to it. However, when there are only directories
in the source directory, this never happens and the incorrect mode
remains on the destination directory.
Fixes #34945 .
2016-08-09 13:02:26 -06:00
rallytime
de4b33f2e1
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/client/ssh/__init__.py
- salt/client/ssh/shell.py
- salt/config/__init__.py
- salt/grains/core.py
- salt/utils/gitfs.py
2016-08-08 12:34:23 -06:00
rallytime
2b4c156df1
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/client/ssh/__init__.py
- salt/grains/core.py
- salt/output/highstate.py
2016-08-08 11:15:43 -06:00
Erik Johnson
e2e8bbbfde
Add integration test for #35214
2016-08-05 20:47:24 -05:00
Nicole Thomas
812916b45f
Fix rabbitmq_user state test to check for correct string ( #35007 )
...
This test was failing when I ran it locally - I'm not sure why the
error isn't showing up in Jenkins, but I double checked the string
in the state and there should be single-quotes around the user name.
2016-07-28 08:37:37 -06:00
rallytime
76e8dd974a
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/state.py
- tests/integration/__init__.py
- tests/integration/wheel/key.py
2016-07-26 11:05:24 -06:00
Ch3LL
617f5680e4
add windows path and add custom tar
2016-07-22 17:51:41 -06:00
Mike Place
caf0361bc1
Merge pull request #34807 from terminalmage/issue2707
...
Feature addition: preserve mode in file states
2016-07-22 16:43:31 -06:00
Mike Place
ab84fd273e
Merge pull request #34637 from cachedout/int_tests_interfaces
...
Int tests interfaces
2016-07-22 15:58:59 -06:00
rallytime
109b368d19
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-07-22 10:32:59 -06:00
Erik Johnson
1ca1367289
Fail git.latest states with uncommitted changes when force_reset=False ( #34869 )
...
* Add git.diff function
* Fail git.latest states with uncommitted changes when force_reset=False
Also, discard these changes when running the state if force_reset=True.
* Add integration test for case where there are uncommitted changes
2016-07-22 09:04:05 -06:00
Mike Place
d85aca1f7a
Merge branch 'develop' into int_tests_interfaces
2016-07-21 12:26:21 -06:00
rallytime
1a9d6eee15
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/grains/core.py
- salt/state.py
- tests/unit/grains/core_test.py
2016-07-21 12:06:25 -06:00
Erik Johnson
f9cd83e8bb
Add integration test for mode=keep when source is a local path
2016-07-20 22:26:10 -05:00
Erik Johnson
1cd542edb8
Add integration test for mode=keep in file states
2016-07-20 22:08:16 -05:00
rallytime
094731f4b6
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-07-20 12:32:08 -06:00
twangboy
5bcb27e477
Fix integration tests on windows
2016-07-20 10:00:29 -06:00
Justin Anderson
9abb6f91bb
Skip mysql state test if mysqladmin is not available
2016-07-20 09:24:24 -06:00
Mike Place
aff29906fc
Merge pull request #34671 from isbm/isbm-osmajorrelease-grain-suse-devel
...
Add "osmajorrelease" grain
2016-07-20 08:35:34 -06:00
Bo Maryniuk
3cb6940904
Bugfix: access 'osmajorrelease' as an integer value
2016-07-18 17:14:57 +02:00
rallytime
f20e78b534
Merge branch '2016.3' into 'develop'
...
No conflicts.
2016-07-14 15:35:21 -06:00
rallytime
0c566dce89
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-07-14 14:06:42 -06:00
Mike Place
3e612c3794
Merge pull request #34618 from jtand/network_integration_fix
...
Network state integration test test=True
2016-07-13 10:30:15 -06:00
rallytime
49f40e9d99
Merge branch '2016.3' into 'develop'
...
Conflicts:
- doc/conf.py
- doc/topics/reactor/index.rst
- tests/integration/__init__.py
2016-07-12 16:13:56 -06:00
rallytime
f734afd0b0
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/modules/aptpkg.py
- tests/integration/__init__.py
2016-07-12 14:29:35 -06:00
rallytime
3026df346f
Merge branch '2015.5' into '2015.8'
...
No conflicts.
2016-07-12 13:27:16 -06:00
Justin Anderson
57df38e685
Update github IP for ssh state integration tests ( #34592 )
2016-07-12 15:17:41 -04:00
Justin Anderson
34bcf9ccfc
Changed network state test to use test=True
2016-07-12 12:40:40 -06:00
Justin Anderson
b2616833b0
Some small changes
2016-07-11 14:35:25 -06:00
rallytime
815c8b38d5
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-07-08 10:34:32 -06:00
Ch3LL
c5035118bf
add skip_verify option to archive.extracted
2016-07-07 14:42:27 -06:00
rallytime
86b7c71e09
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/modules/glusterfs.py
- salt/states/pkg.py
2016-07-07 13:37:58 -06:00
Mike Place
685df80929
Merge pull request #34518 from terminalmage/fix-pkg.latest-test
...
Fix pkg.latest integration test for non-LTS ubuntu
2016-07-07 13:29:13 -06:00
rallytime
27988dde48
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- doc/ref/configuration/minion.rst
2016-07-07 12:31:12 -06:00
Justin Anderson
ed59113e94
Change network state integration test to use test=True
2016-07-07 12:27:18 -06:00
Erik Johnson
4aef44ecdf
Fix pkg.latest integration test for non-LTS ubuntu
...
This test uses ``pkg.list_upgrades`` to find a package which it assumes is
installed, to test ``pkg.installed`` with ``only_upgrade=True``. The
problem with that approach is that ``pkg.list_upgrades`` uses a dry-run
of an ``apt-get dist-upgrade`` to find the upgrades. On non-LTS Ubuntu
releases, a ``dist-upgrade`` results in upgrading to an entirely new
Ubuntu release, and new packages which would be installed by the
dist-upgrade (but are not currently installed) will be included in the
return data. This causes the test to fail when we attempt to run
``pkg.latest`` with ``only_upgrade=True`` on a package which is not
already installed.
This commit fixes the test by ensuring that our target package is
already installed, and continuing to iterate through the return data
from ``pkg.list_upgrades`` until a currently-installed package is found.
2016-07-07 12:51:01 -05:00
Mike Place
4c75d4f92b
Integration test for grains data in templatized files ( #34487 )
...
Refs #34433
2016-07-07 12:16:35 -04:00
Justin Anderson
75299456be
Use skipTest for network state integration test ( #34489 )
...
* Updated skipTest to check for debian or redhat
* Removed skipIf import
2016-07-06 13:43:09 -04:00
rallytime
e4a8c585d0
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/states/pkg.py
2016-07-05 13:11:32 -06:00
rallytime
8398de0baf
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-06-30 16:08:57 -06:00
Mike Place
45b8fb10d7
Merge pull request #34373 from jtand/network_state_integration_test
...
Network state integration test
2016-06-30 08:05:44 -07:00
Erik Johnson
d6af1de0b7
Optimize pkg integration tests and add a couple new tests ( #34377 )
...
* Remove redundant usage of destructiveTest decorator
* Remove unnecessary SLS file
This simple state can be run using run_state
* Explicitly order tests
* Use run_state instead of invoking state.sls
* Ensure only one refresh_db done during pkg integration tests
* Add pkg.latest test for package without an epoch
* Optimize pkg.latest_version usage in pkg integration tests
* Clarify outcome when only_upgrade is used
* Add pkg.latest test with only_upgrade=True
2016-06-30 10:48:22 -04:00
Erik Johnson
20ed2c6bcf
Remove repr formatting flag in places where it is used solely for quoting ( #34183 )
...
* salt/cloud/__init__.py: remove repr formatting
* salt/cloud/clouds/azurearm.py: remove repr formatting
* salt/cloud/clouds/ec2.py: remove repr formatting
* salt/cloud/clouds/profitbricks.py: remove repr formatting
* salt/loader.py: remove repr formatting
* salt/modules/win_file.py: remove repr formatting
* salt/modules/zypper.py: remove repr formatting
* salt/pillar/consul_pillar.py: remove repr formatting
* salt/renderers/pyobjects.py: remove repr formatting
* salt/returners/sentry_return.py: remove repr formatting
* salt/states/bower.py: remove repr formatting
* salt/states/cabal.py: remove repr formatting
* salt/states/cmd.py: remove repr formatting
* salt/states/composer.py: remove repr formatting
* salt/states/win_network.py: remove repr formatting
* salt/states/eselect.py: remove repr formatting
* salt/states/file.py: remove repr formatting
* salt/states/htpasswd.py: remove repr formatting
* salt/states/memcached.py: remove repr formatting
* salt/states/npm.py: remove repr formatting
* salt/states/pip_state.py: remove repr formatting
* salt/states/pkg.py: remove repr formatting
* salt/states/pkgrepo.py: remove repr formatting
* salt/states/supervisord.py: remove repr formatting
* salt/states/timezone.py: remove repr formatting
* salt/states/virtualenv_mod.py: remove repr formatting
* salt/states/dockerio.py: remove repr formatting
* salt/states/win_system.py: remove repr formatting
* salt/utils/nb_popen.py: remove repr formatting
* salt/utils/cloud.py: remove repr formatting
* Add pylint disable due to legit usage of repr flag
See https://github.com/saltstack/salt-pylint/pull/6
* Fix composer tests
These tests needed to be updated because quoting was changed in the
state module in 9dc9146. There was an unnecessary !r used for the
exception class there, which means that instead of the exception class
being passed through the formatter and coming out with the equivalent
value of err.__str__(), we get a repr'ed instance of the exception class
(i.e. SaltException('',)) in the state output.
The unit test was asserting that we have that repr'ed instance of
SaltException in the output, a case of writing the test to confirm the
badly-conceived output in the state. This has also been corrected.
* salt/cloud/clouds/azurearm.py: lint fixes
* salt/modules/boto_s3_bucket.py: lint fixes
* salt/modules/minion.py: lint fixes
* salt/modules/reg.py: lint fixes
* salt/modules/testinframod.py: lint fixes
* salt/modules/win_iis.py: lint fixes
* salt/pillar/csvpillar.py: lint fixes
* salt/utils/win_functions.py: lint fixes
* salt/states/nxos.py: lint fixes
* salt/returners/mongo_future_return.py: lint fixes
* tests/integration/__init__.py: lint fixes
* tests/unit/context_test.py: lint fixes
* tests/integration/states/file.py: lint fixes
* tests/integration/utils/test_reactor.py: lint fixes
* tests/integration/utils/testprogram.py: lint fixes
* tests/unit/__init__.py: lint fixes
* tests/integration/shell/minion.py: lint fixes
* tests/unit/modules/boto_apigateway_test.py: lint fixes
* tests/unit/modules/boto_cognitoidentity_test.py: lint fixes
* tests/unit/modules/boto_elasticsearch_domain_test.py: lint fixes
* tests/unit/modules/k8s_test.py: lint fixes
* tests/unit/modules/reg_win_test.py: lint fixes
* tests/unit/states/boto_apigateway_test.py: lint fixes
* tests/unit/states/boto_cognitoidentity_test.py: lint fixes
* tests/unit/states/boto_elasticsearch_domain_test.py: lint fixes
2016-06-29 16:30:18 -04:00
Justin Anderson
84a36369fa
Added network state integration test
2016-06-29 14:28:36 -06:00
rallytime
cc83fa151a
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/modules/status.py
- salt/utils/__init__.py
- tests/unit/modules/boto_vpc_test.py
- tests/unit/modules/mount_test.py
- tests/unit/states/boto_vpc_test.py
2016-06-28 17:34:27 -06:00
rallytime
f9ab8ba46d
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-06-28 14:26:24 -06:00
Erik Johnson
b793426c23
Remove unnecessarily-disabled sanity check ( #34325 )
...
This was commented out for reasons having nothing to do with anything
else going on in 0c069dd
. Uncommenting this sanity check so that we are
notified if we need to update our targets in the future.
2016-06-28 11:12:55 -04:00
rallytime
f078d57b57
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/modules/rabbitmq.py
- salt/modules/win_servermanager.py
- salt/state.py
- salt/states/boto_s3_bucket.py
- salt/states/pip_state.py
- salt/states/win_servermanager.py
- tests/unit/modules/win_servermanager_test.py
- tests/unit/states/dockerng_test.py
2016-06-09 13:06:10 -06:00
rallytime
c5b4ec0b0f
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/cli/salt.py
- salt/modules/groupadd.py
- salt/states/service.py
2016-06-08 11:20:18 -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
Justin Findlay
f13f914755
states.service: add integration tests
2016-06-06 23:11:49 -06:00
Justin Findlay
0c069ddc95
states.pkg int tests: skip if pkg mgr unavailable
2016-06-06 17:44:43 -06:00
Drew Adams
bcd6a1cd77
fix osfamily from Suse to SUSE
2016-05-26 22:08:40 -07:00
rallytime
b1e505f80e
Merge branch '2016.3' into 'develop'
...
Conflicts:
- doc/topics/releases/2015.5.11.rst
- doc/topics/releases/2015.8.9.rst
- salt/cloud/clouds/nova.py
- salt/minion.py
2016-05-13 09:47:46 -06:00
rallytime
679200aeb2
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/scripts.py
2016-05-12 16:52:27 -06: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
Nicole Thomas
b6cf601722
Merge pull request #33103 from rallytime/merge-develop
...
[develop] Merge forward from 2016.3 to develop
2016-05-09 13:24:25 -06:00
Jεan Sacren
479e643b62
Develop 2016 0509 0030 ( #33111 )
...
* Disallow negative value for fib number
Fibonacci number is supposed to be nonnegative. Add this new feature to
disallow negative value to be passed in for fib number.
* Minimize code duplication
* Use /etc/adjtime for Gentoo
* Add integration test for timezone module
2016-05-09 10:06:44 -07:00
rallytime
ced033c0a4
Merge branch '2016.3' into 'develop'
...
Conflicts:
- doc/topics/releases/2016.3.0.rst
- salt/scripts.py
- salt/states/glusterfs.py
2016-05-06 16:05:58 -06:00
rallytime
180c03ca24
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/cli/salt.py
- salt/modules/zypper.py
- salt/scripts.py
- salt/states/boto_elb.py
- tests/integration/states/user.py
- tests/unit/states/file_test.py
2016-05-06 09:20:05 -06:00
Megan Wilhite
2c6326f14a
fix tests for file.blockplace to remove newline ( #33082 )
2016-05-06 08:44:20 -06:00
Mike Place
e9c94a4141
Skip Unicode test if the system does not have a filesystem encoding set ( #33057 )
...
In the case where a user does not have the LANG env set,
Python can't figure out how to encode Unicode during a popen call.
I could not find any combination of tricks, including setting the encoding
or the locale or the environment variable itself in the call to popen that
would mitigate this issue. This may well be a bug in the Python stdlib itself.
2016-05-05 07:06:07 -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
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
rallytime
16c9ce70ad
Merge branch '2016.3' into 'develop'
...
No conflicts.
2016-05-02 12:58:24 -06:00
Justin Findlay
cc854f1464
update pip state and integration tests for newer pip versions ( #32905 )
...
* modules.virtualenv_mod: use correct pip bootstrap url
* modules.pip: raise error on mirrors arg
* states.pip: run mirrors test on < 7.0.0
* update pip integration test states to not use mirrors
* modules.pip: run mirrors tests on pip < 7.0.0
2016-04-29 10:49:29 -07:00
Megan Wilhite
c57a2b8f3b
Fix user present tests ( #32895 )
...
* fix user present tests for mac
* add setup and teardown methods
* add destructive and root decorators
* forgot teardown decorators
* fix pylint
2016-04-29 10:40:54 -06:00
rallytime
5952e3e300
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/modules/mac_brew.py
- salt/states/archive.py
2016-04-28 15:35:34 -06:00
Ch3LL
3520d496ba
add /Users directory for mac minion in user present test
2016-04-26 15:32:11 -06:00
rallytime
cbf42a8407
Merge branch '2016.3' into 'develop'
...
Conflicts:
- conf/master
- doc/ref/configuration/master.rst
- salt/cli/batch.py
- salt/cli/daemons.py
- salt/config/__init__.py
- salt/minion.py
- salt/modules/aptpkg.py
- salt/modules/beacons.py
- salt/states/archive.py
- salt/states/cmd.py
- salt/utils/gitfs.py
- tests/unit/states/cmd_test.py
2016-04-26 14:42:26 -06:00
Kai Howelmeyer
20c2cf176b
Add max_depth parameter to file.directory, fixes #31989 ( #32463 )
2016-04-22 10:11:58 -06:00
Knut Auvor Grythe
d432e4b990
Add support for unicode in all GECOS fields ( #32630 )
...
* Add support for unicode in all GECOS fields
* Stop exposing sdecode from salt.modules.useradd
* Slight rephrase of comment
* Fix lint errors
2016-04-18 08:56:40 -06:00
rallytime
093d833ff1
Merge branch '2016.3' into 'develop'
...
Conflicts:
- pkg/osx/build.sh
2016-04-05 15:38:58 -06:00
Justin Anderson
c6a1d8b7ba
Changed /tmp/ to /home/ user.present test
2016-03-31 15:13:58 -06:00
rallytime
d684d49490
Merge branch '2016.3' into 'develop'
...
Conflicts:
- doc/topics/releases/2015.5.10.rst
- doc/topics/releases/2015.8.8.rst
2016-03-28 11:16:22 -06:00
Justin Anderson
a0d1f42337
Lint fix
2016-03-24 16:33:18 -06:00
Justin Anderson
291a5695d3
Arch does not have the alternatives directory
2016-03-24 16:12:01 -06:00
rallytime
55544a84a1
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/minion.py
2016-03-23 11:04:42 -06:00
Justin Anderson
e86797731a
Removed some unused imports for lint fixes
2016-03-22 09:15:20 -06:00
Andreas Lutro
e9fe661e72
add integration test for alternatives state
...
the alternatives state module has been through some contradictory
changes recently. an integration test should help validate that it
actually works.
2016-03-21 17:53:01 +01:00
rallytime
308aa5fd61
Merge branch '2016.3' into 'develop'
...
Conflicts:
- conf/master
- conf/minion
- doc/ref/proxy/all/index.rst
- salt/cli/daemons.py
- salt/modules/key.py
- salt/modules/reg.py
- salt/modules/win_pkg.py
- salt/utils/__init__.py
- salt/utils/cloud.py
- tests/unit/daemons_test.py
2016-03-18 10:57:15 -06:00
Justin Findlay
e0abe23c7e
states.ssh int tests: run both test cases manually
2016-03-10 10:57:21 -07:00
Justin Findlay
d33b365984
states.pkg int tests: add pkgs for MacOS
2016-03-10 10:57:21 -07:00
Justin Findlay
431a247b66
states.cmd int tests: echo is more portable than true
2016-03-10 10:57:21 -07:00
Justin Findlay
7c48cf7ea6
states.user int tests: check MacOS primary group
2016-03-10 10:57:20 -07:00
Justin Findlay
5d5ce619b7
states.user int tests: disable GECOS for MacOS
2016-03-10 10:57:20 -07:00
Justin Findlay
aa61e1056f
states.file int tests: find root's primary group
2016-03-10 10:57:20 -07:00
rallytime
838dc12b77
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/cli/daemons.py
- salt/config/__init__.py
- salt/exceptions.py
- salt/pillar/foreman.py
- salt/returners/local_cache.py
- salt/states/saltmod.py
- salt/utils/__init__.py
- salt/utils/cloud.py
The merge conflicts in salt/cli/daemons.py are still present in this commit.
@s0undt3ch is going to resolve them after this commit.
2016-03-08 10:14:32 -07:00
rallytime
6559ea15b0
Merge branch '2015.5' into '2015.8'
...
Conflicts:
- doc/glossary.rst
- salt/config.py
- tests/unit/modules/gpg_test.py
2016-03-06 10:59:46 -07:00
Erik Johnson
da954d7b92
Add integration test for packages with epoch in version
...
This starts with cent7, but later I can add cent6 as well.
2016-03-03 15:40:22 -06:00