Nicole Thomas
08d6b96171
Merge pull request #39977 from bodhi-space/infra4506
...
INFRA-4506 - various fixes as detailed below
2017-03-14 15:52:32 -06:00
rallytime
f6cd372358
Update boto_asg state file unit test mocks to account for changes in #3997
2017-03-14 14:05:20 -06:00
Pedro Algarvio
0b41b92d7d
Use salt.utils.versions
instead of distutils.version
2017-03-08 19:22:33 +00:00
Mike Place
71410047f0
Merge pull request #39682 from ni3mm4nd/mongodb_user
...
Add support for user roles in present state
2017-03-02 10:17:38 -07:00
Mike Place
320b39bc12
Fix broken test and lint issue
2017-03-01 11:57:28 -07:00
Mike Place
4a0c2dfcc3
Merge pull request #39725 from bodhi-space/infra4487
...
INFRA-4487 - 'test=True' should return True rather than None if no changes are scheduled.
2017-03-01 10:02:11 -07:00
Kadlec Jan
d5d99d6399
recteate unit tests
2017-03-01 07:13:28 +01:00
Tom Williams
aa8d822e78
INFRA-4487 - fix unit test to match corrected return value
2017-02-28 21:01:57 -05:00
Pedro Algarvio
40a64191a1
Absolute imports and A LOT of code cleanup.
2017-03-01 01:33:07 +00:00
Pedro Algarvio
3beb3fb801
Move whatever we need from salttesting to salt.
...
Let's drop the salttesting dependency cycle.
2017-02-28 22:52:49 +00:00
Pedro Algarvio
1e2753c875
Fix imports after renames
2017-02-23 23:19:43 +00:00
Pedro Algarvio
15af4c9728
Test filenames conformity. Adjust for pytest.
2017-02-23 23:19:42 +00:00
Pedro Algarvio
e48ea8fa1b
Don't use assert_called_once()
or assert_not_called()
.
...
These worked in Py2 but not in Py3.
A read of http://engineroom.trackmaven.com/blog/mocking-mistakes/ specially the section "Mocking the unexpected" will enlighten one.
2017-02-23 10:40:58 +00:00
rallytime
2595ac383d
Merge branch '2016.11' into 'develop'
...
Conflicts:
- salt/config/__init__.py
- salt/modules/docker.py
- salt/states/docker.py
2017-02-22 16:24:36 -07:00
rallytime
c613d19e76
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- salt/modules/dockerng.py
- salt/states/dockerng.py
2017-02-21 13:59:14 -07:00
Erik Johnson
c673d06f48
Rename dockerng state/execution module to docker
2017-02-18 21:58:25 -06:00
Erik Johnson
6e24dd85c4
Remove dockerio state/module (moved to salt-contrib)
2017-02-18 21:58:24 -06:00
Pedro Algarvio
90adbe925f
Force dictionary order
2017-02-17 20:48:56 +00:00
Pedro Algarvio
1d060096e3
Force ordering under Py3
2017-02-17 20:48:55 +00:00
Mike Place
e652a45592
Fix mocks in win_disim tests
2017-02-16 12:26:49 -07:00
Nicole Thomas
3a39e15dff
Rewrite blockdev unit test to target more specific state returns ( #39402 )
...
The previous way this test was written was over-mocking some of the
state returns as well as tested and asserted against incorrect
behavior as shown in issue #39255 . (The test asserted that a return
of '' from the call to _checkblk() was correct, which was hiding a
bug as noted in #39255 and fixed in #39272.)
2017-02-14 13:49:14 -07:00
rallytime
609e6e4b23
Merge branch '2016.11' into 'develop'
...
Conflicts:
- salt/config/__init__.py
- salt/modules/win_lgpo.py
- salt/utils/aws.py
- tests/unit/utils/schema_test.py
2017-02-09 10:29:40 -07:00
nicholasmhughes
8d8ba9c7d2
added the new getconfig function to the test
2017-02-06 09:55:09 -05:00
rallytime
ee2edda14e
[PY3] Test comment contents more carefully for list stability
...
Stabilizes these tests by avoiding errors when cheese, crackers
order changes in the comment and gives errors like:
- 'comment': 'Kernel modules crackers, cheese are already present',
? --------
+ 'comment': 'Kernel modules cheese, crackers are already present',
? ++++++++
2017-02-02 22:34:20 +00:00
Winston Liu
c2d35d181f
update botocore dependencies, skip if not met.
2017-01-31 10:49:34 -08:00
Julien BONACHERA
1e06f388bb
make openvswitch state work with python3 ( #38873 )
...
* openvswitch: add a basic unit test for openvswitch
* openvswitch: enclose comments_* variables into a map
* openvswitch: only prepare error messages if type parameter is present
* openvswitch: add test case: create a GRE port
* openvswitch: remove trailing whitespace
* openvswitch: add missing "comments" variable
* openvswitch: pep8 compliance
* openvswitch: mock dig.check_ip
* openvswitch: rename "type" argument into "tunnel_type"
* openvswitch: reference bridge_exists before assignment
* openvswitch: reference port_list before assignment
* openvswitch: add upgrade note about "type" option renaming
2017-01-30 09:56:10 -07:00
rallytime
3f74d697b9
Merge branch '2016.11' into 'develop'
...
Conflicts:
- pkg/windows/build_pkg.bat
- salt/modules/archive.py
2017-01-20 12:07:19 -07:00
Erik Johnson
d10c068e25
Update archive state unit tests to reflect symlinks in archive.list
2017-01-20 08:49:40 -06:00
Mike Place
67383b01e1
Merge pull request #38717 from rallytime/py3-test-fixes
...
A couple of Python 3 compatibility fixes
2017-01-14 22:44:28 -07:00
rallytime
29fec06671
[module_test.py] Don't rely on list ordering: assert items are in
...
comment
2017-01-12 14:19:31 -07:00
Alexandru Bleotu
0b848ec184
Fixed WinrepoTestCase.test_genrepo to load BASE_FILE_ROOTS_DIR from salt.syspaths
2017-01-05 17:31:33 +00:00
rallytime
9ad362fbde
Merge branch '2016.11' into 'develop'
...
Conflicts:
- salt/states/kapacitor.py
2017-01-03 10:17:18 -05:00
Mike Place
aa0c843553
Merge pull request #38461 from alprs/fix-kapacitor_changes
...
Improvements/fixes to kapacitor task change detection
2016-12-29 10:08:46 -07:00
Andreas Lutro
52721e97d6
clean up and fix tests
2016-12-29 11:14:24 +01:00
twangboy
e96bfe8fa2
Change OSX/OS X to macOS where possible
2016-12-28 14:49:46 -07:00
Sevag Hanssian
727194b2a0
Add strict flag to ini.options_present
2016-12-27 11:50:10 -05:00
rallytime
494a06bee2
Merge branch '2016.11' into 'develop'
...
Conflicts:
- doc/ref/configuration/minion.rst
2016-12-20 10:03:44 -07:00
Erik Johnson
79231a5d8a
archive.extracted: don't try to cache local sources ( #38285 )
...
* archive.extracted: don't try to cache local sources
This will keep us from trying to cache file when we already have it
locally, which will help significantly with larger archives.
* Update tests to reflect change in cache behavior
* Add mock return for /bin/tar
This fixes failing tests for Ubuntu 14
2016-12-19 14:37:58 -07:00
Mike Place
86c53b8efd
Merge pull request #38172 from rallytime/win-deprecations
...
Remove support for deprecation options/functions in win* files
2016-12-19 07:33:05 -07:00
Erik Johnson
845e3d0e75
Update tests to reflect change in cache behavior
2016-12-16 14:09:48 -06:00
rallytime
05ec9f4b5b
Merge branch '2016.11' into 'develop'
...
Conflicts:
- salt/netapi/rest_cherrypy/app.py
2016-12-15 20:47:35 -07:00
rallytime
a9f90b881a
Remove suport for the "win_repo", "win_repo_mastercachefile", and "win_gitrepos" options
...
The "winrepo_dir", "winrepo_cachefile", and "winrepo_remotes" options should be used instead,
respectively.
2016-12-15 13:14:47 -07:00
Mike Place
6c1ca9dae7
Merge pull request #38236 from gtmanfred/2016.11
...
SELINUXTYPE should not be changed
2016-12-15 03:37:06 -07:00
Daniel Wallace
d1b070c894
clean up selinux unit test
2016-12-14 11:33:00 -06:00
rallytime
4998b8d116
Merge branch '2016.11' into 'develop'
...
Conflicts:
- doc/ref/configuration/master.rst
- doc/ref/peer.rst
- doc/topics/reactor/index.rst
2016-12-07 16:31:11 -07:00
rallytime
fec9dec23a
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- salt/modules/win_pkg.py
- tests/unit/daemons_test.py
- tests/unit/states/file_test.py
2016-12-06 16:23:51 -07:00
rallytime
186e2d0d03
Don't allow libcloud mock module injection in unit/states/libcloud_dns_test.py either
2016-12-06 09:24:07 -07:00
rallytime
1da7aacfbe
Update unit tests to account for additional file.search call
...
Also removed some mocks that were not needed anymore for the
calls to ``file.contains_regex_multiline`` because that function
is no longer called in the state file.
2016-12-02 11:22:10 -07:00
Mike Place
6ffea40dee
Merge pull request #37813 from twangboy/windows_perms
...
Windows Perms for file.directory and file.managed
2016-11-30 11:12:26 -07:00
rallytime
4760455600
Merge branch '2016.11' into 'develop'
...
Conflicts:
- salt/grains/core.py
- salt/modules/dockerng.py
- tests/unit/modules/linux_acl_test.py
2016-11-29 09:31:05 -07:00