Colton Myers
a471832fa7
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
salt/cloud/clouds/ec2.py
salt/config/__init__.py
salt/modules/git.py
salt/modules/hosts.py
salt/modules/htpasswd.py
salt/states/boto_secgroup.py
salt/states/htpasswd.py
tests/unit/modules/schedule_test.py
2015-10-20 18:13:11 -06:00
justinta89
d88ac2589f
Changed grain to look at osmajorrelease instead of osrelease
2015-10-14 10:42:55 -06:00
Colton Myers
6537da77fe
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
salt/grains/core.py
salt/loader.py
salt/minion.py
salt/modules/dockerng.py
salt/modules/rest_package.py
salt/modules/ssh.py
salt/modules/state.py
salt/modules/timezone.py
salt/modules/zypper.py
salt/runners/state.py
salt/state.py
salt/states/virtualenv_mod.py
salt/utils/cloud.py
2015-10-13 17:27:48 -06:00
Mike Place
ba2a39d4b7
Merge pull request #27748 from multani/fix-8646
...
Fix #8646
2015-10-12 09:55:57 -06:00
Colton Myers
35425b14ad
Merge remote-tracking branch 'upstream/2015.5' into merge-forward-2015.8
...
Conflicts:
doc/man/salt-api.1
doc/man/salt-call.1
doc/man/salt-cloud.1
doc/man/salt-cp.1
doc/man/salt-key.1
doc/man/salt-master.1
doc/man/salt-minion.1
doc/man/salt-run.1
doc/man/salt-ssh.1
doc/man/salt-syndic.1
doc/man/salt-unity.1
doc/man/salt.1
doc/man/salt.7
salt/modules/pip.py
salt/states/user.py
2015-10-07 12:06:12 -06:00
Jonathan Ballet
6d95cbc998
Fix lint errors
2015-10-07 17:49:07 +02:00
Jonathan Ballet
4ff9f4be2a
Fix file.directory with clean=true and require_in with states ID
...
In order to know which files need to be cleaned up, a file.directory state
looks at its requirements.
Previously, it only looked at the name attribute of the required state and
supposed it was the name of the file to keep within this directory. It's
not completely right, as a requirement can also be made against a state ID,
in which case the 'name' attribute of the required state then have to be
used.
Fix #8646
2015-10-07 14:53:04 +02:00
Jonathan Ballet
0d391275de
Test cases to demonstrate bug #8646
2015-10-07 12:06:35 +02:00
Oleg Gashev
2a88028595
Added skip test_ext_pillar_env_mapping if git module does not exist.
...
If module named git does not exist, test test_ext_pillar_env_mapping
fail:
======================================================================
ERROR: test_ext_pillar_env_mapping
(integration.modules.pillar.PillarModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/git/salt/tests/integration/modules/pillar.py", line 120, in
test_ext_pillar_env_mapping
import git
ImportError: No module named git
Added skip test_ext_pillar_env_mapping test.
2015-10-05 14:47:25 -06:00
Oleg Gashev
4e2d21ac68
Added skip test_ext_pillar_env_mapping if git module does not exist.
...
If module named git does not exist, test test_ext_pillar_env_mapping
fail:
======================================================================
ERROR: test_ext_pillar_env_mapping
(integration.modules.pillar.PillarModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/git/salt/tests/integration/modules/pillar.py", line 120, in
test_ext_pillar_env_mapping
import git
ImportError: No module named git
Added skip test_ext_pillar_env_mapping test.
2015-10-05 12:49:06 +00:00
Colton Myers
41cad702e3
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
salt/minion.py
salt/modules/rest_service.py
salt/states/dockerng.py
salt/utils/cloud.py
2015-09-29 18:13:33 -06:00
Erik Johnson
519bdd6438
Fix integration tests for worktree addition in git >= 2.6
...
The output from 'git worktree add' changed slightly in 2.6.
2015-09-29 12:01:45 -05:00
Matti Niemenmaa
8eb5036f1f
states.file: allow prepending to non-existent file ( #27401 )
...
Remove the redundant file.touch invocation also from file.append, to
simplify the flow.
2015-09-27 09:06:51 +03:00
Colton Myers
26b6c92975
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
doc/conf.py
salt/config/__init__.py
salt/modules/rh_ip.py
salt/pillar/s3.py
salt/returners/local_cache.py
salt/states/user.py
salt/templates/rh_ip/rh7_eth.jinja
2015-09-17 11:10:37 -06:00
Colton Myers
274464a85b
Merge remote-tracking branch 'upstream/2015.5' into merge-forward-2015.8
...
Conflicts:
doc/topics/reactor/index.rst
salt/cloud/clouds/digital_ocean_v2.py
salt/modules/groupadd.py
salt/modules/localemod.py
salt/modules/mysql.py
salt/modules/useradd.py
salt/modules/win_pkg.py
salt/modules/win_useradd.py
salt/netapi/rest_cherrypy/app.py
salt/pillar/s3.py
salt/returners/local_cache.py
salt/states/htpasswd.py
salt/states/user.py
2015-09-14 14:39:03 -06:00
rallytime
a0de117a0f
Merge branch '2015.8' into develop
...
Conflicts:
salt/cloud/__init__.py
salt/cloud/clouds/proxmox.py
salt/config/__init__.py
2015-09-11 09:33:21 -06:00
Seth House
e47fe835c9
Remove mocks from rest_cherrypy integration tests
...
These mocks predated the inclusion of salt-api into Salt core. They are
now no longer needed and counter-productive.
2015-09-09 10:39:35 -06:00
Seth House
6d22514934
Rename the rest_cherrypy tests to conform to our convention
...
Previously they conformed to the default unittest2 convention.
2015-09-09 10:39:34 -06:00
Nicole Thomas
eddb532713
Merge pull request #26915 from rallytime/joyent-tests
...
Update Joyent Cloud Tests
2015-09-09 09:04:50 -06:00
Seth House
d68aefcfde
Remove mocks from rest_cherrypy integration tests
...
These mocks predated the inclusion of salt-api into Salt core. They are
now no longer needed and counter-productive.
2015-09-08 15:40:06 -06:00
Seth House
2aa3da8911
Rename the rest_cherrypy tests to conform to our convention
...
Previously they conformed to the default unittest2 convention.
2015-09-08 15:40:06 -06:00
Pedro Algarvio
10a9189d83
Merge remote-tracking branch 'upstream/2015.8' into hotfix/merge-forward-develop
2015-09-06 12:42:58 +01:00
rallytime
d4ad42d697
Update Joyent Cloud Tests
2015-09-04 12:23:05 -06:00
Mike Place
1d5fd71fa3
Merge pull request #26880 from s0undt3ch/hotfix/26848-event-backwards-compat
...
Restore backwards compatibility to `salt.utils.event`
2015-09-03 17:04:45 -06:00
Colton Myers
307d3d05a4
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
doc/man/salt.7
salt/modules/yumpkg.py
2015-09-03 14:24:45 -06:00
justinta89
1aadbdfc6b
Fixed lint error
2015-09-03 13:40:43 -06:00
justinta89
06bea434e1
fixed an unboundlocalerror
2015-09-03 13:16:36 -06:00
justinta89
8c42178e1a
Fixed a lint error
2015-09-03 10:21:41 -06:00
justinta89
5a33017791
Gets the azure version correctly on python-azure 1.0.0
2015-09-03 10:00:36 -06:00
Pedro Algarvio
00b9cc9a83
Only place salt's code root dir in sys.path, not anything above that
2015-09-03 10:49:01 +01:00
Erik Johnson
22341b3139
Add debug logging
...
This is a massive test function with steps dependent on each other.
These log messages make it easier to look through the log file to
troubleshoot failures.
2015-09-02 20:58:06 -05:00
Erik Johnson
37c8852584
Update git.config_set tests to use new state name
2015-09-02 20:58:06 -05:00
Colton Myers
278e8dda5b
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
salt/cloud/clouds/gce.py
2015-09-01 15:15:13 -06:00
Colton Myers
3b696d97b3
Fix lint
2015-08-28 17:39:41 -06:00
Colton Myers
1bbe45538e
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
salt/cloud/__init__.py
salt/modules/smartos_vmadm.py
salt/utils/s3.py
setup.py
2015-08-28 16:44:08 -06:00
Colton Myers
b509cdfa4b
Merge remote-tracking branch 'upstream/2015.5' into merge-forward-2015.8
...
Conflicts:
doc/conf.py
salt/cloud/clouds/gce.py
salt/cloud/clouds/linode.py
salt/grains/ssds.py
salt/modules/git.py
salt/modules/pip.py
tests/integration/cloud/providers/gogrid.py
tests/integration/cloud/providers/linode.py
tests/integration/cloud/providers/msazure.py
tests/integration/cloud/providers/rackspace.py
tests/unit/modules/pip_test.py
2015-08-28 16:33:54 -06:00
Colton Myers
964a47c643
Fix tests
2015-08-28 13:50:31 -06:00
Colton Myers
2db2451cdf
Merge pull request #26607 from cachedout/minion_opts_dep
...
Minion opts generation in yaml test
2015-08-28 10:00:07 -06:00
Mike Place
d3abc786cb
Lint
2015-08-27 13:46:29 -06:00
Erik Johnson
b401328558
tests/integration/states/ssh.py: remove raw string formatting
2015-08-26 23:26:08 -05:00
Erik Johnson
8053d1f952
tests/integration/states/mysql.py: remove raw string formatting
2015-08-26 23:26:08 -05:00
Erik Johnson
e2342aadb7
tests/integration/modules/state.py: remove raw string formatting
2015-08-26 23:26:08 -05:00
Erik Johnson
93e2f4eff7
tests/integration/modules/mysql.py: remove raw string formatting
2015-08-26 23:26:08 -05:00
Erik Johnson
d6b4e8d033
tests/integration/__init__.py: remove raw string formatting
2015-08-26 23:26:07 -05:00
Colton Myers
40718af1d5
Merge remote-tracking branch 'upstream/2014.7' into merge-forward-2015.5
...
Conflicts:
doc/conf.py
salt/modules/win_service.py
tests/integration/cloud/providers/digital_ocean.py
2015-08-26 14:29:57 -06:00
Colton Myers
3d6f7b0e6a
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
salt/utils/aws.py
2015-08-25 13:57:49 -06:00
rallytime
c0d83d558d
Don't use id as variable
2015-08-25 11:03:30 -06:00
rallytime
2b4bc1679d
Keep ec2 instance creation test the same - it works better for the ec2 output
2015-08-25 11:01:02 -06:00
rallytime
b5b58eb31f
Skip digital ocean tests since we can't use API v1 with v2 tests
2015-08-25 10:44:28 -06:00
rallytime
9ae1539c62
Update cloud tests to be more efficient and accurate
2015-08-25 09:49:32 -06:00
rallytime
e14931ff2d
Also add -Z to script args for cloud tests
2015-08-24 16:11:01 -06:00
rallytime
9ae27193d8
Also add -Z to script args for cloud tests
2015-08-24 16:02:26 -06:00
Nicole Thomas
2964700609
Merge pull request #26619 from rallytime/cloud-test-fixes
...
Apply cloud test fixes from 2015.5 to 2015.8
2015-08-24 15:49:33 -06:00
David Boucha
5522d87a11
Merge pull request #26603 from terminalmage/issue13550
...
Fixes for git.latest, git module integration tests, etc.
2015-08-24 16:47:16 -05:00
Nicole Thomas
ed166ebd4f
Merge pull request #26618 from rallytime/pip-undate-cloud-tests
...
Add script_args: '-P' to Ubuntu 14 profiles for nightly cloud tests
2015-08-24 15:15:24 -06:00
rallytime
0d6eebf3c3
Extra lines
2015-08-24 15:12:31 -06:00
rallytime
c69c918b46
Add script_args: '-P' to Ubuntu 14 profiles for nightly cloud tests
2015-08-24 15:12:25 -06:00
rallytime
7b594ef6d6
Use an available image to test against
2015-08-24 15:12:19 -06:00
rallytime
5a2c8825ba
Extra lines
2015-08-24 15:02:44 -06:00
rallytime
d28672b69e
Add script_args: '-P' to Ubuntu 14 profiles for nightly cloud tests
2015-08-24 15:01:30 -06:00
rallytime
1401255287
Use an available image to test against
2015-08-24 11:45:28 -06:00
Erik Johnson
f033571d7e
No shell needed when checking git version
2015-08-24 11:32:51 -05:00
Erik Johnson
398f779d92
Add debug logging to troubleshoot worktree test failures
2015-08-24 10:44:08 -05:00
Mike Place
7e00702863
Prefer a fresh copy of minion opts in yaml test
...
Avoids deprecation warning
2015-08-24 09:34:19 -06:00
Erik Johnson
b9b44a3434
Don't set global user.name or user.email if they already exist
2015-08-23 23:43:12 -05:00
Pedro Algarvio
2f9b40ca25
Merge pull request #26577 from basepi/merge-forward-2015.8
...
[2015.8] Merge forward from 2015.5 to 2015.8
2015-08-23 08:14:04 +01:00
Colton Myers
75f48b4a96
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
doc/topics/targeting/grains.rst
2015-08-21 16:48:48 -06:00
Colton Myers
667dfcee14
Merge remote-tracking branch 'upstream/2015.5' into merge-forward-2015.8
...
Conflicts:
salt/renderers/gpg.py
tests/integration/loader/loader.py
2015-08-21 16:44:59 -06:00
Jenkins
41541e4e2b
Fix many errors with __virtual__ in tests
...
Also stop using __salt__ in __virtual__ which is not guaranteed to exist
2015-08-21 14:01:03 -06:00
Erik Johnson
73537300cb
Lint fixes
2015-08-21 13:48:55 -05:00
Jenkins
0266757948
Merge branch '2015.8' of http://github.com/saltstack/salt into develop
2015-08-21 12:38:49 -06:00
Erik Johnson
e7099af0f6
Get rid of useless unit tests and add integration test for winrepo
2015-08-21 13:14:42 -05:00
Justin Findlay
2fee5708bb
Merge pull request #26501 from terminalmage/git_pillar_docs
...
Update git_pillar docs, add git.list_worktrees function
2015-08-20 23:34:02 -06:00
Erik Johnson
9a87f052d5
Update class name for old git pillar class
2015-08-20 10:39:36 -05:00
Erik Johnson
43fef21907
Add list_worktrees tests
2015-08-19 19:09:59 -05:00
Colton Myers
2695e3159e
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
2015-08-19 15:05:52 -06:00
Jenkins
9149cfbeb2
Fixing more tarfile tests on py2.6
2015-08-19 14:12:18 -06:00
Mike Place
ed71476ca2
Merge pull request #26477 from cachedout/fix_26_tarfile
...
Fix integration.modules.git.GitModuleTest.test_archive on py26
2015-08-19 11:34:06 -06:00
Jenkins
dbbe206e19
Fix integration.modules.git.GitModuleTest.test_archive on py26
...
Fix borrowed from: http://stackoverflow.com/questions/6086603/statement-with-and-tarfile
2015-08-19 11:31:38 -06:00
Colton Myers
73282d51cc
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
salt/cli/daemons.py
salt/master.py
salt/minion.py
salt/modules/gpg.py
salt/modules/pw_group.py
salt/utils/http.py
setup.py
tests/unit/modules/schedule_test.py
2015-08-19 11:29:45 -06:00
justinta89
c542895bd2
--annotate and --message aren't valid options in older versions of git.
2015-08-19 09:09:34 -06:00
Andreas Lutro
2f55d60293
git.latest: add test for no rev
...
technically, rename existing test and add a new simpler test with the
old name.
2015-08-18 16:38:24 +02:00
Erik Johnson
b7447fcadb
Fix git.clone tests to reflect new return data
2015-08-18 03:39:27 -05:00
Erik Johnson
8dc8eb4b41
Fix test_add_dir
...
Paths in the expected output needed to be relative, not full
2015-08-18 02:40:25 -05:00
Erik Johnson
7c9f2027f6
Remove usage of os.chdir except in setUp
...
Additionally, take measures to ensure that we chdir back to the original
cwd at the conclusion of the test.
A redundant test has also been removed, was likely a stray copypasta.
2015-08-18 02:15:21 -05:00
Erik Johnson
dd9bcc896e
Lint fixes
2015-08-17 22:10:39 -05:00
Erik Johnson
294aad298e
Add proper tests for git execution module
2015-08-17 22:10:39 -05:00
Colton Myers
f3c8ba85dc
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
salt/cloud/clouds/opennebula.py
salt/modules/systemd.py
salt/utils/aws.py
2015-08-17 17:06:59 -06:00
Mike Place
35d6ae2be7
Use with
2015-08-12 12:14:12 -06:00
Colton Myers
1b0b21394e
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
salt/cloud/clouds/vmware.py
salt/modules/win_system.py
2015-08-10 13:27:31 -06:00
Thomas S Hatch
2ddf5c4e58
lint
2015-08-08 20:17:45 -06:00
Thomas S Hatch
912d6041f5
apply @cachedout's tests
2015-08-08 09:37:16 -06:00
Mike Place
bbc6f84c75
Merge pull request #26105 from cachedout/fix_25221
...
Fix failing test
2015-08-07 12:11:10 -06:00
Mike Place
1a18013330
Fix failing test
2015-08-07 12:10:40 -06:00
Mike Place
c5e1f5bee6
Merge pull request #25221 from jet9/istextfile_utf8
...
Extend salt.utils.istextfile() with detection of utf-8 content instead of binary
2015-08-07 12:10:27 -06:00
Andreas Lutro
ceda2b7274
users: integration test for empty GECOS fields
2015-08-07 09:25:21 +02:00
Dmitry Kurbatov
2a349ff102
Extend salt.utils.istextfile() with utf-8 instead of binary detection
2015-08-07 10:06:20 +03:00
Mike Place
662962c196
Merge pull request #25981 from basepi/merge-forward-develop
...
Merge forward from 2015.8 to develop
2015-08-04 09:28:15 -06:00
Dmitry Kuzmenko
5c6276ac7d
Subscribe event to bus is optional now
...
Once subscribed to publisher SUB socket gets collecting all incoming
messages that is unwanted behavior for fire-only events.
Fixed by using listen=<True|False> constructor argument.
2015-08-03 16:10:38 -06:00
Colton Myers
d5fbd960fe
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
salt/cloud/clouds/vmware.py
salt/fileserver/s3fs.py
salt/modules/chocolatey.py
salt/modules/s3.py
salt/modules/zpool.py
salt/pillar/s3.py
salt/utils/s3.py
tests/unit/modules/s3_test.py
2015-08-03 15:01:35 -06:00