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
2c2a5f85ac
Merge remote-tracking branch 'upstream/2015.5' into merge-forward-2015.8
...
Conflicts:
doc/conf.py
doc/topics/cloud/gce.rst
salt/cli/api.py
salt/cli/call.py
salt/cli/cp.py
salt/cli/key.py
salt/cli/run.py
salt/cli/salt.py
salt/modules/dockerio.py
salt/states/dockerio.py
2015-09-17 10:54:33 -06:00
FELD Boris
5e9c3c7d96
Improve support of Accept header in saltnado.
...
It currently supports 'simple' values like application/json, but Accept header
could also include more than one value with parameters
See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1 .
For example:
```application/json, text/javascript, */*; q=0.01```
This PR add support for multiple media_range in Accept header, support parsing
of parameter (like q=0.01) but discard them and finally iterate on
media_range and take the first compatible.
A more complete implementation may fully supports the RFC and support
q parameter and specific order of priority to find the most compatible
Content-Type but I don't think it's worth the pain.
If we want a better implementation, werkzeug has actually an implementation
http://werkzeug.pocoo.org/docs/0.10/datastructures/#werkzeug.datastructures.Accept.best_match .
2015-09-17 00:48:34 +02:00
twangboy
7992b7e20a
Fixed some tests... hopefully...
2015-09-15 16:27:47 -06:00
FELD Boris
ef3b7ddc2d
Fix lints
2015-09-15 20:29:18 +02:00
FELD Boris
b13f66ee4b
Add support for CORS in saltnado.
...
Add support for CORS and tests in RPC salt-api. The code was inspired by
https://github.com/globocom/tornado-cors .
Also add support for CORS in websocket. By adding some tests, I made
a small refactoring to make the websocket handler more easily testable.
Some documentation about CORS could be found here
https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
for reference.
2015-09-15 18:52:44 +02:00
Justin Findlay
440855b182
Merge pull request #27033 from jfindlay/n0ne
...
Merge #27019
2015-09-15 01:32:17 -06:00
Colton Myers
ab519fb5ff
Remove heavily-mocked unit tests
2015-09-14 17:00:02 -06:00
Justin Findlay
3334b9d548
fix comment and unit test for reg state
2015-09-14 16:04:09 -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
Mike Place
a87a62c5b6
Merge pull request #26857 from bradthurber/add_jboss_domain_mode_to_jboss7_modules
...
add jboss domain mode to jboss7 python modules
2015-09-14 13:40:26 -06:00
Mike Place
b13b6b912a
Merge pull request #26984 from tinyclues/26505_improve_content_type_support
...
[NetAPI] SaltNado - Improve support for Content-Type parsing. Ref #26505
2015-09-14 13:02:28 -06:00
Brad Thurber
5d4798012a
more test updates
2015-09-14 13:05:07 -04:00
Pedro Algarvio
fcb7138efa
Make sure spm tests are picked up by runtests.
...
Lists in py2 don't have the clear method
2015-09-14 17:54:51 +01:00
Brad Thurber
872aabf7fa
update more tests
2015-09-14 11:55:42 -04:00
Brad Thurber
b1ceb221a0
more test updates. It wouldn't surprise me if these changes expose other failing tests.
2015-09-14 10:36:40 -04:00
Brad Thurber
72235f61ce
clean up lint and add profile to tests
2015-09-14 09:03:30 -04: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
Justin Findlay
391a09d5ac
update reg state unit tests
2015-09-10 16:16:15 -06:00
Justin Findlay
b36a7107b2
update win_path exec module unit tests
2015-09-10 15:17:46 -06:00
Justin Findlay
801f2eadb5
Merge pull request #26874 from evverx/use-localectl-on-jessie-and-vivid
...
Use localectl for locale setting/getting on Debian if available
2015-09-10 13:30:05 -06:00
Erik Johnson
30a4915762
Update tests to reflect changes to timezone module
2015-09-10 11:05:38 -05: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
FELD Boris
23c7b4847c
Improve support for Content-Type parsing. Ref #26505
...
It currently supports 'simple' values like application/json, but Content-Type
header could also includes parameter. See RFC http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17 .
When sending JSON from a browser for example, the Content-Type is
`application/json; charset=utf-8` and salt-api failed to detect JSON content.
The proposition is to use cgi.parse_header method (https://docs.python.org/2.7/library/cgi.html?highlight=cgi#cgi.parse_header )
to correctly parse the Content-Type value but ignore parameters, JSON should
always be UTF-8 but I don't know about other supported Content-Type.
2015-09-09 16:41:29 +02: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
Mike Place
a33569a8be
Merge pull request #26910 from s0undt3ch/hotfix/26848-event-backwards-compat
...
Sometimes the event system is just too fast
2015-09-04 09:00:39 -06:00
Pedro Algarvio
503e050a75
Sometimes the event system is just too fast
2015-09-04 15:52:06 +01:00
Evgeny Vereshchagin
8f77b743cd
Use localectl for locale setting on Debian if available
2015-09-04 04:06:55 +03: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
Michael Steed
d6e64ec1a7
lint
2015-09-03 14:30:58 -06:00
Michael Steed
a42651fb38
spm updates
...
- add hash_file() routine to salt.spm.pkgfiles.local
- use os.path.exists() instead of pkgfiles.path.exists() in
_local_install()
2015-09-03 14:28:21 -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
Mike Place
57b78d369a
Make the testing ioloop the current one
...
Otherwise, loops from previous intefere and cause stacktraces on ioloop init
2015-09-03 13:28:28 -06:00
Pedro Algarvio
2f40387290
Add test_event_single_wait_0_no_block_False
test case
2015-09-03 19:54:57 +01:00
Pedro Algarvio
ae9c6c9cff
Workaround wait=0 meaning a blocking call when non blocking is required
2015-09-03 18:06:43 +01:00
Pedro Algarvio
dc0fec3be3
Restore backwards compatibility to salt.utils.event
...
Fixes #26848
Refs #26000
2015-09-03 11:11:58 +01:00
Joe Julian
6108ec4280
Gated dbus for os families that use it
...
Gated the dbus include for os families that are currently using it
within this module at this time.
Renamed some defs to more appropriately express their function.
2015-09-01 15:19:49 -07: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
Mike Place
3c4523237f
Merge pull request #26810 from Unity-Technologies/feature/global-environ-win
...
Added the ability to set permanent environment variables on windows
2015-09-01 11:42:06 -06:00
Daniel Hobley
1c8e6e067f
Fixed lint issues
2015-09-01 13:56:43 +02:00
Daniel Hobley
fc724158de
Added the ability to set permanent environment variables on windows
2015-08-31 13:47:29 +02:00
Erik Johnson
d30eaee653
Add http basic auth tests
2015-08-29 21:14:20 -05:00
Erik Johnson
a605607709
Remove git unit tests, moving them to salt.utils.url tests
2015-08-29 21:14:20 -05: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
Erik Johnson
b45f37a467
Add http basic auth tests
2015-08-28 15:43:24 -05:00
Erik Johnson
1ed42ea4fd
Remove git unit tests, moving them to salt.utils.url tests
2015-08-28 15:41:33 -05:00
Colton Myers
964a47c643
Fix tests
2015-08-28 13:50:31 -06:00
Colton Myers
9e88672e5a
Merge pull request #26683 from basepi/merge-forward-develop
...
Merge forward from 2015.8 to develop
2015-08-27 15:28:14 -06:00
Colton Myers
5628702dd2
lint
2015-08-27 14:41:31 -06:00
Mike Place
cfc61c6629
Merge pull request #26688 from richardhansen/states.host.only
...
new salt.states.host.only() function to limit names associated with an IP
2015-08-27 14:23:00 -06:00
Colton Myers
4f441179aa
Test fixes
2015-08-27 14:11:34 -06:00
Colton Myers
e9674b541f
Another file_test fix
2015-08-27 14:08:14 -06:00
Mike Place
cf487cf0f5
Merge pull request #26709 from rallytime/fix-14612
...
Ensure VM name is valid before trying to create Linode VM
2015-08-27 14:07:49 -06:00
Colton Myers
c3a6280f8c
Merge pull request #26617 from terminalmage/issue9592
...
Fix Windows failures in pip module due to raw string formatting
2015-08-27 13:24:53 -06:00
rallytime
a3ac8e7008
Whitespace fix
2015-08-27 11:41:14 -06:00
rallytime
9a4228d906
Added unit tests for new _validate_name function and adjusted regex
2015-08-27 11:17:28 -06:00
Gareth J. Greenaway
c11cf22abe
fixing ipset unit tests based on changes. Adding additional tests for when ip set type is hash:net
2015-08-27 08:28:23 -07:00
Erik Johnson
96c559d63e
tests/unit/states/eselect_test.py: remove raw string formatting
2015-08-26 23:26:08 -05:00
Erik Johnson
2d51f3d25b
tests/unit/states/dockerng_test.py: remove raw string formatting
2015-08-26 23:26:08 -05:00
Erik Johnson
9fee076477
tests/unit/pydsl_test.py: remove raw string formatting
2015-08-26 23:26:08 -05:00
Erik Johnson
106f386df3
tests/unit/modules/cron_test.py: remove raw string formatting
2015-08-26 23:26:08 -05:00
Colton Myers
ca3f40b94e
More test fixing
2015-08-26 19:32:31 -06:00
Richard Hansen
7457f2302d
salt.states.host.only: new function to limit to specific hostnames
2015-08-26 20:21:45 -04:00
Richard Hansen
9af7f900d4
salt.modules.hosts.set_host: remove entry if alias is empty
2015-08-26 20:21:45 -04:00
Colton Myers
a9cdb633a4
Fix failing test
2015-08-26 16:08:50 -06:00
Colton Myers
64cad371f0
Remove overmocked test
2015-08-26 16:02:42 -06:00
Colton Myers
76c70162db
Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop
...
Conflicts:
doc/conf.py
doc/topics/spm/index.rst
salt/cloud/clouds/gce.py
salt/cloud/clouds/opennebula.py
salt/cloud/clouds/openstack.py
tests/unit/states/file_test.py
2015-08-26 14:47:33 -06:00
Colton Myers
9b34335a20
Merge pull request #26359 from Akilesh1597/develop
...
Ini issues fixed
2015-08-25 15:47:48 -06:00
Colton Myers
6e72ae7f91
Merge pull request #26647 from basepi/merge-forward-develop
...
Merge forward from 2015.8 to develop
2015-08-25 15:15:28 -06:00
Colton Myers
e2b72b8f8e
Merge pull request #26646 from basepi/merge-forward-2015.8
...
[2015.8] Merge forward from 2015.5 to 2015.8
2015-08-25 15:15:14 -06:00
Colton Myers
353ec1ba7a
Remove bad test
2015-08-25 14:08:04 -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
Colton Myers
ed940ad5f5
Merge remote-tracking branch 'upstream/2015.5' into merge-forward-2015.8
...
Conflicts:
salt/cloud/clouds/gce.py
salt/cloud/clouds/openstack.py
tests/unit/modules/artifactory_test.py
tests/unit/modules/groupadd_test.py
tests/unit/modules/jboss7_test.py
tests/unit/states/jboss7_test.py
2015-08-25 13:55:44 -06:00
Joseph Hall
723734308b
Merge pull request #26575 from msteed/raasify-spm
...
Update spm for integration into raas
2015-08-25 12:51:42 -06:00
Erik Johnson
ede057eebc
Fix tests to reflect args being passed as lists instead of strings
2015-08-24 23:54:09 -05:00
Michael Steed
79a76c5cfe
fixes
...
- improve unit test coverage & fix bugs exposed thereby
- lint
2015-08-24 14:11:55 -06:00
Justin Findlay
60087d0861
update unit tests for ini state
2015-08-24 12:08:10 -06:00
Pedro Algarvio
016e350c0f
Merge pull request #26541 from terminalmage/masterless-winrepo
...
Make winrepo execution module use the same code as the runner
2015-08-22 22:47:31 +01:00
Erik Johnson
49d8bd1dbe
Remove unused import
2015-08-21 22:54:54 -05:00
Erik Johnson
81a0d4c915
Skip tests that don't work with older mock
...
This fixes test failures on RHEL6 builds.
This also removes two win_network tests which were clearly made to pass
only in Jenkins, and not in a chrooted build environment.
2015-08-21 21:35:11 -05: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
55ecff1278
Merge branch 'merge-forward-2015.8' of https://github.com/basepi/salt into basepi-merge-forward-2015.8
...
Conflicts:
salt/utils/event.py
2015-08-21 16:37:24 -06:00
Michael Steed
186a4d052c
wip: update spm for integration into raas
2015-08-21 16:20:42 -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
Ivan Babrou
c228088de6
Properly check for ipset ranges, fixes #26453
...
This add support for idempotent runs of `ipset.present` state
if ranges are used as entries. IP1-IP2 and IP/MASK variants
are supported.
2015-08-21 09:42:51 -06:00
Erik Johnson
d2166e95cb
Fix formatting
2015-08-21 10:19:36 -05:00
Nicole Thomas
3d95aad2a5
Merge pull request #26283 from nmadhok/vmware-cloud-tests-develop
...
Additional unit tests for VMware cloud driver
2015-08-21 08:57:39 -06:00
Justin Findlay
4703ac3028
Merge pull request #26535 from bobrik/ipset-ranges
...
Properly check for ipset ranges, fixes #26453
2015-08-21 08:13:01 -06:00
Ageeleshwar Kandavelu
63efe11e4f
ini modules test fix
2015-08-21 16:29:30 +05:30
Nitin Madhok
b2a1ec25e7
Lint fix
2015-08-21 06:46:41 -04:00
Nitin Madhok
df85bf351b
Skip the unit tests that need pyVmomi installed if it is not present
2015-08-21 06:20:18 -04:00
Ageeleshwar Kandavelu
dd48f8ff50
ini_unit test fix
2015-08-21 14:47:13 +05:30
Ivan Babrou
5b82c45746
Properly check for ipset ranges, fixes #26453
...
This add support for idempotent runs of `ipset.present` state
if ranges are used as entries. IP1-IP2 and IP/MASK variants
are supported.
2015-08-21 09:18:54 +01:00
Ageeleshwar Kandavelu
77bc8fcc55
ini lint and formatting fixes
2015-08-21 12:36:11 +05:30
Ageeleshwar Kandavelu
73bfbab452
Merge from upstream
...
Merge branch 'develop' of github.com:saltstack/salt into develop
2015-08-21 08:59:43 +05:30
Colton Myers
ff2d6c6045
Fix git test
2015-08-20 16:23:36 -06:00
Colton Myers
a3fc46da0b
py3 compat
2015-08-20 16:23:32 -06:00
Jenkins
f5131c2b46
More indent
2015-08-20 13:57:36 -06:00