rallytime
bb2c43b52a
Merge branch '2016.3' into 'develop'
...
No conflicts.
2016-07-14 14:10:10 -06:00
Mike Place
eadae09e0a
Merge pull request #34563 from rallytime/py3-state-unit-tests
...
Py3 fixes for running unit tests in the unit/states/ directory.
2016-07-14 08:28:49 -06:00
Anthony Shaw
7786c0020c
Libcloud DNS module fix ( #34628 )
...
* add test module
* add broken test
* fix typo in config dictionary
* remove call to unused function, add called_with assertion
2016-07-13 11:47:20 -04:00
Megan Wilhite
f6dfbac5ca
add num_cpus grain to freebsd ( #34565 )
...
* add num_cpus grain to freebsd
* fix pylint
2016-07-13 11:40:09 -04:00
Justin Anderson
445f8afc69
Fixes failing test on Suse Leap ( #34621 )
2016-07-12 18:48:06 -04: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
Nicole Thomas
b90ae407f9
Add support for edge case when Cmd and Entrypoint can't be blanked ( #34593 )
2016-07-12 15:18:53 -04:00
Justin Anderson
57df38e685
Update github IP for ssh state integration tests ( #34592 )
2016-07-12 15:17:41 -04:00
Nicole Thomas
357649313a
Avoid circular imports when calling salt.utils functions ( #34586 )
...
Also remove unused imports:
- platform
- hashlib.md5
- salt.utils.process.MultiprocessingProcess
- tornado.concurrent
2016-07-12 15:13:57 -04:00
Nicole Thomas
efc2ab9d68
[2016.3] Avoid salt.utils circular imports when using "from" ( #34585 )
...
Also removes an unused import
2016-07-12 15:13:26 -04:00
Nicole Thomas
2e1007254b
Avoid circular imports when calling salt.utils functions ( #34584 )
2016-07-12 13:41:30 -04:00
Justin Anderson
7dd8035c62
Gate docker unit test to check for docker ( #34591 )
...
* Gate docker unit test to check for docker
* Change skipIf to check if docker-py is installed, not version check
2016-07-12 13:33:31 -04:00
rallytime
9f5e275f2e
When writing strings to tmp files, use bytes for Python 3
2016-07-11 16:07:35 -06:00
rallytime
640d8bb5b2
Pylint fixes
2016-07-11 14:26:06 -06:00
rallytime
de93203bf5
Remove object.iteritems() call from boto_elasticsearch_domain_test
...
Also, clean up imports in that file and remove stray ` character from
boto_apigateway state from previous commit.
2016-07-11 14:26:06 -06:00
rallytime
2a5dab3c56
Use six.iteritems(object) in boto_s3_bucket module and boto_s3_bucket_test
2016-07-11 14:26:06 -06:00
rallytime
1f21dfc555
Fix unit.states.kmod_test to pass when running in Py3
...
The join function adds each list item in different orders, resulting
in a failing state comment comparison. This is inaccurate behavior.
2016-07-11 14:26:06 -06:00
rallytime
6b7a305a1b
Rename dockerio.py unit tests to dockerio_test.py
...
These tests have never run automatically because of an incorrect file name.
Added a skipIf on these tests as they are currently non-functioning and the
module they're testing has been deprecated.
2016-07-11 14:26:06 -06:00
rallytime
e6f875cd62
Remove izip import from unit.modules.boto_apigateway_test.py
...
Use six compatible version of zip instead
2016-07-11 14:26:06 -06:00
Mike Place
a733b844be
Fixup unit test for archive module
2016-07-11 11:59:00 -06:00
Mike Place
915652165f
Merge pull request #34542 from rallytime/stringio-migrations
...
Migrate StringIO imports to use the six library for Python2/3 compatibility
2016-07-08 10:47:04 -06:00
rallytime
815c8b38d5
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-07-08 10:34:32 -06:00
rallytime
c539333924
Use six.moves.StringIO()
2016-07-08 09:30:58 -06:00
rallytime
f8a3622be7
Rename unit.states.boto_secgroup to unit.states.boto_secgroup_test
2016-07-07 21:29:36 -06:00
rallytime
1f4a75f268
Move StringIO import to use six for tests.unit.modules.zypper_test.py
2016-07-07 19:27:30 -06:00
rallytime
ceefb6e34c
Rename tests.unit.simple to tests.unit.simple_test
...
These tests are not getting run automatically in a ./runtests.py -u
or on Jenkins runs. This name changes allows them to run automatically.
2016-07-07 17:12:27 -06:00
rallytime
7c216c3a1d
Fix the unit.grains.core_test tests to run with Python3
2016-07-07 16:41:21 -06:00
Mike Place
6b8c76af83
Prevent many errors in the test suite in loader tests ( #34521 )
...
Pack in what the loader needs.
2016-07-07 17:03:45 -04: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
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
Nicole Thomas
3ebba020b6
Rename some unit test files by adding _test ( #34503 )
...
These two test files are currently not running automatically on Jenkins.
Renaming these files will add them to the full runtests.py run.
2016-07-07 12:05:08 -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
2b307b7ea1
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/states/file.py
- tests/unit/states/file_test.py
2016-07-06 09:12:25 -06:00
Bo Maryniuk
d1c2d5aaaa
Lintfix
2016-07-06 10:09:14 +02:00
Bo Maryniuk
88ab5f4755
Fix Python3 compat (StringIO)
2016-07-06 10:09:14 +02:00
Bo Maryniuk
f1d0961e69
Fix boolean comparison
2016-07-06 10:09:14 +02:00
Bo Maryniuk
f275378e24
Add unit test for update an object
2016-07-06 10:09:14 +02:00
Bo Maryniuk
6174f4ad4a
Fix imports
2016-07-06 10:09:14 +02:00
Bo Maryniuk
bf9ba65489
Add unit test for deleting objects
2016-07-06 10:09:14 +02:00
Bo Maryniuk
1ce88be0ef
Add unit test for criteria matcher
2016-07-06 10:09:14 +02:00
Bo Maryniuk
a20019d859
Add unit test for "matches" criteria selector
2016-07-06 10:09:14 +02:00
Bo Maryniuk
844eefd758
Add unit test for "less than" criteria selector
2016-07-06 10:09:14 +02:00
Bo Maryniuk
fac88ac41b
Add unit test for "equals" criteria selector
2016-07-06 10:09:14 +02:00
Bo Maryniuk
1dfe81bfe6
Add unit test for "more than" criteria selector
2016-07-06 10:09:14 +02:00
Bo Maryniuk
99848659c9
Add unit test on getting objects
2016-07-06 10:09:14 +02:00