rallytime
fca4e5563a
Merge branch '2016.11' into '2017.7'
...
Conflicts:
- salt/modules/win_pkg.py
- tests/unit/utils/test_parsers.py
2017-09-22 09:40:03 -04:00
Mike Place
e6dc4d64df
Merge pull request #43314 from twangboy/win_fix_unit.utils.test_verify
...
Fix `unit.utils.test_verify` for Windows
2017-09-21 16:26:12 -06:00
Nicole Thomas
d02953ce6a
Merge pull request #43235 from brejoc/improve-async-operation-handling-in-kubernetes-module
...
Improve delete_deployment handling
2017-09-20 17:33:32 -04:00
Jochen Breuer
96f39a420b
Fixed linting
...
Fix for "String format call with un-indexed curly braces".
2017-09-20 16:35:01 +02:00
Jochen Breuer
08fba98735
Fixed several issues with the test
...
* Removed redundant import.
* No longer inheriting from LogSettingsParserTests.
* Replaced test class description with somethin meaninful.
* Fixed identation.
I've also moved the class to the bottom, since all the classes inheriting
from LogSettingsParserTests are in the block above.
2017-09-20 15:37:24 +02:00
Jochen Breuer
3a089e450f
Added tests for pid-file deletion in DaemonMixIn
...
This is a follow up on this PR:
https://github.com/saltstack/salt/pull/43366
Since we can get an OSError durin PIDfile deletion with non-root users, it
would make sense to also test for this. So here are the two test cases.
One with an OSError and the other one without.
2017-09-20 14:34:30 +02:00
Daniel Wallace
f84b50a06b
results and columns are lists for mysql returns
2017-09-19 15:08:17 -06:00
Jochen Breuer
d1b5ec098c
Merge branch '2017.7' into improve-async-operation-handling-in-kubernetes-module
2017-09-19 10:44:31 +02:00
Nicole Thomas
9ada7f626c
Merge branch '2017.7' into win_fix_unit.utils.test_verify
2017-09-13 14:22:38 -04:00
Erik Johnson
4243a2211d
Rewrite the reactor unit tests
...
These have been skipped for a while now because they didn't work
correctly. The old tests have been scrapped in favor of new ones that
test both the old and new config schema.
2017-09-13 10:35:23 -05:00
Mike Place
08d102c869
Merge pull request #41943 from twangboy/win_unit_test_local_cache
...
Fix `unit.returners.test_local_cache` for Windows
2017-09-11 15:34:02 -06:00
Mike Place
50ab79f0cb
Merge pull request #43424 from twangboy/win_unit_test_hosts
...
Fix `unit.modules.test_hosts` for Windows
2017-09-11 15:28:41 -06:00
Mike Place
ca091bc8a4
Merge pull request #43438 from rallytime/merge-2017.7
...
[2017.7] Merge forward from 2016.11 to 2017.7
2017-09-11 12:33:38 -06:00
twangboy
c0dc3f73ef
Use sys.platform instead of salt.utils to detect Windows
2017-09-11 12:22:06 -06:00
twangboy
e496d28cbf
Fix unit.utils.test_verify
for Windows
...
Use Windows api to get and set the maxstdio
Change messages to work with Windows
2017-09-11 12:22:06 -06:00
Mike Place
a9592dd3e2
Merge pull request #43320 from twangboy/win_fix_alternatives
...
Fix `unit.modules.test_alternatives` for Windows
2017-09-11 11:27:59 -06:00
Mike Place
9b89e49846
Merge pull request #43363 from twangboy/scratch_ini_tests
...
Fix `unit.modules.test_ini_manage` for Windows
2017-09-11 11:10:30 -06:00
rallytime
ef7b4242c3
Merge branch '2016.11' into '2017.7'
...
No conflicts.
2017-09-11 12:24:10 -04:00
Mike Place
e89e23a32e
Merge pull request #43422 from twangboy/win_unit_cloud_ec2
...
Fix `unit.cloud.clouds.test_ec2` for Windows
2017-09-11 09:17:19 -06:00
twangboy
90dcf8287c
Fix unit.modules.test_hosts
for Windows
...
Fix problem with TmpStringIO Class on Windows. The module uses this
class twice in normal operation. In Windows there's an additional run
before the real runs where it is opened with mode='w'. This causes the
data to be wiped out. So, this sets it to only save the value in the
instance to data if it is not empty.
Use the windows path to the hosts file in Windows
2017-09-08 17:21:01 -06:00
twangboy
b2cea18d13
Fix unit.modules.test_gem
for Windows
...
Mock `salt.utils.is_windows` to return False so the test will run on
Windows
2017-09-08 15:53:07 -06:00
twangboy
1379627334
Fix unit.cloud.clouds.test_ec2
for Windows
...
Mock instead of create tempfile
2017-09-08 15:36:52 -06:00
Alessandro -oggei- Ogier
496f14a7e7
forgot to mock the proper one
2017-09-08 21:37:09 +02:00
Nicole Thomas
97f05ff603
Merge pull request #43398 from twangboy/win_fix_test_mount
...
Fix `unit.modules.test_mount` for Windows
2017-09-08 09:39:28 -04:00
Nicole Thomas
6a4cc5c1b0
Merge pull request #43399 from twangboy/win_fix_test_pam
...
Fix `unit.modules.test_pam` for Windows
2017-09-08 09:37:49 -04:00
Nicole Thomas
2b5cfae3f8
Merge pull request #43400 from twangboy/win_unit_test_parted
...
Fix `unit.modules.test_parted` for Windows
2017-09-08 09:36:59 -04:00
Nicole Thomas
332deeb013
Merge pull request #43401 from twangboy/win_unit_test_pw_group
...
Fix `unit.modules.test_pw_group` for Windows
2017-09-08 09:35:44 -04:00
Nicole Thomas
c0f54bfef1
Merge pull request #43402 from twangboy/win_unit_test_qemu_nbd
...
Fix `unit.modules.test_qemu_nbd` for Windows
2017-09-08 09:34:57 -04:00
Alessandro -oggei- Ogier
70642e495d
better qemu_static parameter mangle in deboostrap management, tests
2017-09-08 10:17:32 +02:00
twangboy
6ceb895a84
Use os.path.join for paths
2017-09-07 16:51:10 -06:00
twangboy
531ce8022b
Fix unit.modules.test_qemu_nbd
for Windows
...
Use os.sep
2017-09-07 15:44:35 -06:00
twangboy
78e39a1b9d
Fix unit.modules.test_pw_group
for Windows
...
Skip `test_info` and `test_getent` because they require grp which is not
available on Windows
2017-09-07 15:34:57 -06:00
twangboy
8e3e897ee2
Fix unit.modules.test_parted
for Windows
...
Mock salt.utils.is_windows to be False so that the __virtual__ tests
will run
2017-09-07 15:27:11 -06:00
twangboy
6257aa964a
Fix unit.modules.test_pam
for Windows
...
Mocks os.path.exists
2017-09-07 15:18:14 -06:00
twangboy
4a8d7e522c
Fix tests, Use full path to salt.utils.which
2017-09-07 14:41:56 -06:00
Nicole Thomas
6106aec696
Merge pull request #43356 from gtmanfred/2016.11
...
never-download got readded
2017-09-07 13:46:04 -04:00
Nicole Thomas
3f19b247f3
Add handler.messages back in for test comparison
2017-09-07 11:51:39 -04:00
Jochen Breuer
20619b24c4
Fixed test for delete_deployment
...
Due to implementation change, we need to mock the return value.
2017-09-07 10:20:46 +02:00
twangboy
a909813fa5
Remove unused import (lint)
2017-09-06 15:56:24 -06:00
twangboy
3ef8d714cb
Fix unit tests to mock salt.utils.path.readlink
2017-09-06 13:03:14 -06:00
twangboy
7c4460164b
Fix alternatives for Windows
...
Not sure this is necessary... I don't think alternatives is a thing in
Windows. Anyway, it uses `__salt__['file.readlink']` instead of
`os.readlink` as there is no `os.readlink` in Windows.
Modifies the tests to mock `__salt__['file.readlink']` instead of
`os.readlink`
2017-09-06 13:03:14 -06:00
Nicole Thomas
5111cf8bad
Merge branch '2016.11' into 43086-no-member
2017-09-06 10:41:18 -04:00
twangboy
a94319a082
Make sure formatting of TEST_FILE_CONTENT matches original
2017-09-05 17:03:50 -06:00
twangboy
6263bc8983
Remove print statement
2017-09-05 16:48:58 -06:00
twangboy
79cd3831ae
Fix empty value preserved test
2017-09-05 16:44:12 -06:00
twangboy
85997391f1
Is this handled the same on Linux and Windows
2017-09-05 16:32:43 -06:00
Mike Place
6e1b541b46
Merge pull request #43232 from terminalmage/gitfs-inheritance
...
Improve inheritance in salt.utils.gitfs
2017-09-05 14:37:05 -06:00
Daniel Wallace
9911b04208
fix test
2017-09-05 13:52:02 -06:00
twangboy
5bd5ea042a
Fix unit.modules.test_chef
for Windows
...
Mocks the __opts__ to contain cachedir
2017-09-01 14:49:50 -06:00
Nicole Thomas
479e0e06ac
Merge pull request #42975 from brejoc/tests-for-kubernetes-module
...
Added unit tests for Kubernetes module
2017-08-30 16:30:15 -04:00
Nicole Thomas
ca7df1d4cf
Merge pull request #43176 from terminalmage/issue42935
...
docker_image states: Handle Hub images prefixed with "docker.io/"
2017-08-30 16:08:13 -04:00
Nicole Thomas
fdad9177b5
Merge branch '2017.7' into tests-for-kubernetes-module
2017-08-30 14:47:37 -04:00
Nicole Thomas
3777b34572
Merge branch '2017.7' into win_unit_test_local_cache
2017-08-30 12:16:52 -04:00
Nicole Thomas
ec1bedc646
Merge pull request #43254 from twangboy/win_fix_test_inspect_collector
...
Fix `unit.modules.test_inspect_collector` on Windows
2017-08-30 11:46:07 -04:00
Nicole Thomas
25666f88f7
Merge pull request #43251 from twangboy/win_skip_test_groupadd
...
Skips `unit.modules.test_groupadd` on Windows
2017-08-30 09:56:36 -04:00
twangboy
cec627a60b
Skip mac tests for user and group
...
They use grp and pwd
2017-08-29 16:28:12 -06:00
twangboy
b401340e6c
Fix unit.modules.test_inspect_collector
on Windows
...
Uses os.sep instead of unix-style paths in the test
Uses salt.utils.path.islink() to detect symlinks instead of
os.path.islink(). os.path.islink() does not correctly detect symlinks in
Windows
Put grp and pwd imports inside a try/except block
2017-08-29 15:59:08 -06:00
twangboy
5185071d5a
Skips unit.modules.test_groupadd
on Windows
...
There is a test_win_groupadd modules for testing the win_groupadd module
on Windows.
2017-08-29 14:29:50 -06:00
twangboy
c956d24283
Fix is_windows detection when USERNAME missing
2017-08-29 10:16:21 -06:00
twangboy
869e8cc603
Fix unit.fileserver.test_gitfs
for Windows
...
Put `import pwd` in a try/except block
Set `os.environ['USERNAME']` in windows using win_functions
Add error function for `shutil.rmtree`
2017-08-29 10:16:21 -06:00
Jochen Breuer
c227cb25ad
Skipping test on ImportError
...
This most probably means that the Kubernetes client lib is not
installed.
2017-08-29 17:12:25 +02:00
Erik Johnson
53bd3a3e23
Improve inheritance in salt.utils.gitfs
...
This makes the following changes:
1. Renames the valid_providers param in GitBase to git_providers,
allowing for a dictionary mapping provider names to their associated
classes. This allows for alternate providers to be used with a
GitBase subclass.
2. Renames the get_provider function to verify_provider to reduce
confusion with git_providers.
3. Uses super() to run a parent class' dunder init instead of invoking
the parent class directly.
2017-08-28 21:49:42 -05:00
rallytime
3911df2f4b
Merge branch '2016.11' into '2017.7'
...
No conflicts.
2017-08-28 09:25:49 -04:00
Nicole Thomas
df18a89836
Lint: Remove unused import
2017-08-28 09:21:52 -04:00
Jochen Breuer
bd76a870ce
Dunder vars are now defined via setup_loader_modules
2017-08-28 14:17:00 +02:00
Nicole Thomas
a563a9422a
Merge pull request #43201 from rallytime/merge-2017.7
...
[2017.7] Merge forward from 2016.11 to 2017.7
2017-08-25 18:56:46 -04:00
Mike Place
ce04ab4286
Merge pull request #42997 from twangboy/win_fix_test_module_names
...
Fix `unit.test_test_module_names` for Windows
2017-08-25 15:19:10 -06:00
Mike Place
f16b7246e4
Merge pull request #43103 from aogier/43101-genesis-bootstrap
...
genesis.bootstrap deboostrap fix
2017-08-25 14:48:23 -06:00
rallytime
d40eba6b37
Merge branch '2016.11' into '2017.7'
...
Conflicts:
- salt/states/git.py
2017-08-25 16:07:27 -04:00
Mike Place
5471f9fe0c
Merge pull request #43196 from gtmanfred/2016.11
...
Pin request install to version for npm tests
2017-08-25 12:43:05 -06:00
Daniel Wallace
ccd2241777
Pin request install to version
...
This fails on centos 6 because its node is too old to support the version of
hawk bumped here https://github.com/request/request/pull/2751 , we can still
test the functionality. This will pull from github, and install a specific tag
version, and we still do the uninstall using the github path.
This should be more stable.
2017-08-25 10:23:35 -06:00
Erik Johnson
7279f98e92
docker_image states: Handle Hub images prefixed with "docker.io/"
...
On some platforms, for reason which I do not yet grok, images pulled
from the Hub are prefixed with "docker.io/". This causes the
docker_image states to fail unless the user manually adds "docker.io/"
before the image name.
This commit adds a new function called "docker.resolve_tag" which
disambiguates this variance and allows images to be specified without
the "docker.io/" prefix.
Resolves #42935 .
2017-08-25 00:06:28 -05:00
Nicole Thomas
a6a327b1e5
Merge pull request #43155 from terminalmage/issue43001
...
Resolve image ID during container comparison
2017-08-24 18:09:46 -04:00
garethgreenaway
0186835ebf
Fix docstring in test
2017-08-24 17:08:52 -05:00
garethgreenaway
a0bb654e46
Fixing lint issues
2017-08-24 12:09:29 -07:00
Alessandro -oggei- Ogier
db94f3bb1c
better formatting
2017-08-24 15:07:08 +02:00
Alessandro -oggei- Ogier
e5cc667762
tests: fix a leftover and simplify some parts
2017-08-24 15:04:37 +02:00
Alessandro -oggei- Ogier
13e5997457
lint
2017-08-24 12:49:39 +02:00
Alessandro -oggei- Ogier
216ced69e5
allow comma-separated pkgs lists, quote args, test deb behaviour
2017-08-24 12:00:36 +02:00
twangboy
2722e9521d
Use os.path.join to create paths
2017-08-23 14:43:44 -06:00
Erik Johnson
d5b2a0be68
Resolve image ID during container comparison
...
This fixes an issue where inspecting the container returns an image ID
instead of an image name, resulting in a spurious report of a changed
image. By resolving the image down to its ID for both the existing and
new containers, we ensure we're comparing ID to ID.
2017-08-23 12:23:33 -05:00
Mike Place
03f652159f
Merge pull request #43123 from twangboy/win_fix_test_which
...
Fix `unit.utils.test_which` for Windows
2017-08-23 10:01:38 -06:00
Nicole Thomas
0467a0e3bf
Merge pull request #43038 from twangboy/win_unit_utils_test_url
...
Fix `unit.utils.test_url` for Windows
2017-08-23 09:35:24 -04:00
twangboy
ed97cff5f6
Fix unit.utils.test_which
for Windows
...
This test wasn't really written with Windows in mind. Uses PATHEXT that
actually resembles a Windows environment. The test value has the correct
path seperator for Windows.
2017-08-22 16:59:22 -06:00
Mike Place
1e1a81036c
Merge pull request #42962 from twangboy/win_unit_test_doc
...
Fix `unit.test_doc test` for Windows
2017-08-22 12:06:22 -06:00
Alessandro -oggei- Ogier
42a118ff56
fixed cmd composition and unified his making across module
2017-08-22 16:25:54 +02:00
Tarjei Husøy
1a987cb948
Fix broken negation in iptables
...
Introduced in 7c6ff77c
and released with 2017.7.
2017-08-22 09:43:20 -04:00
Mike Place
f9b4976c02
Merge pull request #42996 from twangboy/win_fix_test_stateconf
...
Fix `unit.test_stateconf` for Windows
2017-08-21 16:43:58 -06:00
Mike Place
19fc644c9b
Merge pull request #43024 from twangboy/win_unit_utils_test_find
...
Fix `unit.utils.test_find` for Windows
2017-08-21 16:38:09 -06:00
Mike Place
1a531169fc
Merge pull request #43088 from gtmanfred/2017.7
...
allow docker util to be reloaded with reload_modules
2017-08-21 16:14:36 -06:00
Mike Place
5482524270
Merge pull request #41994 from twangboy/win_unit_test_cmdmod
...
Fix `unit.modules.test_cmdmod` on Windows
2017-08-21 15:53:01 -06:00
Daniel Wallace
373a9a0be4
allow docker util to be reloaded with reload_modules
...
If we reference the actual import, the utils module won't be reloaded, but if
we use `__utils__` it can be reloaded on a pip install
2017-08-21 13:18:08 -06:00
garethgreenaway
882fcd846f
Merge pull request #43029 from terminalmage/fix-func-alias
...
Normalize the salt caching API
2017-08-21 09:54:58 -07:00
Jochen Breuer
3c99e61637
Renamed test to match new convention
2017-08-18 15:19:34 +02:00
Jochen Breuer
caf78d206d
Fixed imports for pytest
...
Imports now match the new test-suite introduced in 2017.7.
2017-08-18 15:15:20 +02:00
rallytime
84829a6f8c
Merge branch '2016.11' into '2017.7'
...
Conflicts:
- salt/modules/jenkins.py
- salt/states/jenkins.py
2017-08-18 09:13:54 -04:00
Daniel Wallace
35e45049e2
use a ruby gem that doesn't have dependencies
2017-08-18 08:55:02 -04:00
garethgreenaway
2957467ed7
Merge pull request #43026 from rallytime/bp-43020
...
Back-port #43020 to 2016.11
2017-08-17 16:19:46 -07:00
Erik Johnson
f8f74a310c
Update localfs cache tests to reflect changes to func naming
2017-08-17 17:19:34 -05:00
twangboy
fbe54c9a33
Remove unused import six (lint)
2017-08-17 15:54:38 -06:00
twangboy
7f5ee55f57
Fix unit.utils.test_url
for Windows
...
Detect escaped urls in Windows
Unescape urls in Windows
Fix tests to deal with sanitized Windows paths
2017-08-17 14:20:25 -06:00
Daniel Wallace
ba80a7d4b5
use a ruby gem that doesn't have dependencies
2017-08-17 13:45:10 -06:00
garethgreenaway
51d16840bb
Merge pull request #42890 from DSRCorporation/bugs/42627_salt-cp
...
Make chunked mode in salt-cp optional
2017-08-17 11:37:43 -07:00
Daniel Wallace
0eb15a1f67
test with gem that appears to be abandoned
2017-08-17 14:28:39 -04:00
twangboy
b04d1a2f18
Fix unit.utils.test_find
for Windows
...
Fix skipIf statements
Use sys.maxsize instead of sys.maxint
2017-08-17 11:55:00 -06:00
Erik Johnson
4089b7b1bc
Use socket.AF_INET6 to get the correct value instead of doing an OS check
...
This builds on #43014 with a more future-proof solution.
2017-08-17 12:12:27 -05:00
garethgreenaway
973d288eca
Merge pull request #43020 from gtmanfred/test_gem
...
test with gem that appears to be abandoned
2017-08-17 09:40:40 -07:00
Daniel Wallace
0a1f40a664
test with gem that appears to be abandoned
2017-08-17 10:38:32 -06:00
Ch3LL
b8eee4401e
Change AF_INET6 family for mac in test_host_to_ips
2017-08-17 10:55:53 -04:00
rallytime
8a0f948e4a
Merge branch '2016.11' into '2017.7'
...
Conflicts:
- salt/utils/versions.py
- tests/unit/modules/test_boto_elb.py
- tests/unit/modules/test_boto_secgroup.py
- tests/unit/states/test_boto_vpc.py
2017-08-17 09:10:31 -04:00
twangboy
92dc3c0ece
Use os.sep for path
2017-08-16 15:59:10 -06:00
twangboy
201ceae4c4
Fix lint, remove debug statement
2017-08-16 10:29:26 -06:00
Jochen Breuer
c8e98c8d8a
Added unit tests for Kubernetes module
...
Added unit tests for:
* Node listing,
* deployment listing,
* service listing,
* pod listing,
* deployment deletion and
* deployment creation.
2017-08-16 14:51:16 +02:00
twangboy
e9febe4893
Fix unit.test_fileclient
...
Use os.sep instead of hard-coded, unix-style paths
2017-08-15 16:34:03 -06:00
twangboy
37029c1a16
Fix unit.test_doc test
...
Use findstr instead of grep on Windows
Use os.linesep for file paths
2017-08-15 15:30:13 -06:00
rallytime
c6b9ca4b9e
Lint fix: add missing space
2017-08-15 14:26:44 -04:00
rallytime
5597b1a30e
Skip 2 failing tests in Python 3 due to upstream bugs
2017-08-15 14:26:44 -04:00
rallytime
a0b19bdc27
Update account id value in boto_secgroup module unit test
...
This value was updated in moto 1.0.0 with the following commit:
5f3fbff627
2017-08-15 14:23:00 -04:00
rallytime
60b406e088
@mock_elb needs to be changed to @mock_elb_deprecated as well
2017-08-15 14:23:00 -04:00
rallytime
6ae1111295
Replace @mock_ec2 calls with @mock_ec2_deprecated calls
...
moto versions >= 1.0.0 have changed the way the mocked connections through
boto are handled with the @mock_ec2 decorator. They use the boto3 connection
method. However, since we are still using boto in many places, we need to use
the new @mock_ec2_deprecated decorator instead to handle the boto connection
functions for the unit tests.
Versions of moto < 1.0.0 are not Python 3 compatible, so salt-jenkins should
be installing newer versions of moto for those tests. Unfortunately, we cannot
install an older version of moto for Python2 that use the original @mock_ec2 call
and also import the @mock_ec2_deprecated function for newer versions of moto
simultaneously as the @mock_ec2_deprecated function doesn't exist in older
versions of moto.
2017-08-15 14:22:59 -04:00
Nicole Thomas
47ff9d5627
Merge pull request #42812 from terminalmage/yaml-loader-tests
...
Update custom YAML loader tests to properly test unicode literals
2017-08-15 13:50:22 -04:00
Erik Johnson
9d8486a894
Add test for custom YAML loader with unicode literal strings
2017-08-15 11:06:20 -05:00
Erik Johnson
a0118bcece
Remove bytestrings and use textwrap.dedent for readability
...
PyYAML works with and without bytestrings on PY3, and Python 3 can read
all of the test data as regular strings, so bytestrings are unnecessary
here.
This also adds use of textwrap.dedent to make the YAML easier to read,
so it can be indented away from the far left side of the line.
2017-08-15 11:05:48 -05:00
Mike Place
11a33fe692
Merge pull request #42925 from terminalmage/f26-debug-logging
...
Add debug logging to troubleshoot test failures
2017-08-14 21:47:50 -06:00
Erik Johnson
8165f46165
Add debug logging to troubleshoot test failures
...
This adds logging to troubleshoot https://github.com/saltstack/salt-jenkins/issues/477
2017-08-14 16:28:09 -05:00
Nicole Thomas
4fcdab3ae9
Merge pull request #42657 from nhavens/2017.7
...
back-port #42612 to 2017.7
2017-08-14 15:42:25 -04:00
Nicole Thomas
c6ca7d639f
Merge pull request #42889 from rallytime/merge-2017.7
...
[2017.7] Merge forward from 2016.11 to 2017.7
2017-08-14 10:16:19 -04:00
Dmitry Kuzmenko
9fedf6012e
Fixed 'test_valid_docs' test.
2017-08-14 10:54:16 +03:00
rallytime
fb7117f2ac
Use salt.utils.versions.LooseVersion instead of distutils
2017-08-11 16:31:24 -04:00
Erik Johnson
1764878754
Merge pull request #42883 from rallytime/fix-boto-tests
...
Fix failing boto tests
2017-08-11 15:29:11 -05:00
rallytime
29ff19c587
Merge branch '2016.11' into '2017.7'
...
Conflicts:
- salt/config/__init__.py
- salt/states/dockerng.py
- salt/utils/cloud.py
2017-08-11 15:17:19 -04:00
Nicole Thomas
b21778efac
Merge pull request #42885 from terminalmage/fix-f26-tests
...
Move weird tearDown test to an actual tearDown
2017-08-11 15:14:41 -04:00
rallytime
6a7bf99848
Lint fix: add missing space
2017-08-11 14:19:15 -04:00
Erik Johnson
462d653082
Move weird tearDown test to an actual tearDown
...
Also catch KeyError when user doesn't exist
2017-08-11 12:20:50 -05:00
Daniel Wallace
da3402a53d
make sure cmd is not run when npm isn't installed
...
apparently the skipIf on the functions still get run, even if the function is
going to be skipped based on a skipIf on the class.
2017-08-11 10:58:00 -06:00
rallytime
43643227c6
Skip 2 failing tests in Python 3 due to upstream bugs
2017-08-11 12:57:39 -04:00
rallytime
7f46603e9c
Update account id value in boto_secgroup module unit test
...
This value was updated in moto 1.0.0 with the following commit:
5f3fbff627
2017-08-10 17:31:14 -04:00
rallytime
7c1d493fdd
@mock_elb needs to be changed to @mock_elb_deprecated as well
2017-08-10 17:15:45 -04:00
Daniel Wallace
c1f673eca4
use older name if _create_unverified_context is unvailable
2017-08-10 14:43:33 -06:00
rallytime
3055e17ed5
Replace @mock_ec2 calls with @mock_ec2_deprecated calls
...
moto versions >= 1.0.0 have changed the way the mocked connections through
boto are handled with the @mock_ec2 decorator. They use the boto3 connection
method. However, since we are still using boto in many places, we need to use
the new @mock_ec2_deprecated decorator instead to handle the boto connection
functions for the unit tests.
Versions of moto < 1.0.0 are not Python 3 compatible, so salt-jenkins should
be installing newer versions of moto for those tests. Unfortunately, we cannot
install an older version of moto for Python2 that use the original @mock_ec2 call
and also import the @mock_ec2_deprecated function for newer versions of moto
simultaneously as the @mock_ec2_deprecated function doesn't exist in older
versions of moto.
2017-08-10 16:40:11 -04:00
Daniel Wallace
b458b89fb8
skip cache_clean test if npm version is >= 5.0.0
2017-08-10 14:17:47 -06:00
Erik Johnson
c69f17dd18
Add integration test for #42774
2017-08-08 14:20:42 -05:00
Nicole Thomas
ddb671b8fe
Merge pull request #42783 from rallytime/fix-flaky-py3-test
...
Sort lists before comparing them in python 3 unit test
2017-08-08 09:25:14 -04:00
rallytime
998834fbac
Sort lists before compairing them in python 3 unit test
2017-08-07 16:09:43 -04:00
Erik Johnson
665de2d1f9
Fix domainname parameter input translation
...
Resolves #42538
2017-08-07 09:51:14 -05:00
Mike Place
834d6c605e
Set fact gathering style to 'old' for test_junos
...
Without this, we stacktrace because it does not appear that setting
'gather_facts' to False prevents the library from assuming the presence
of facts. I believe this to be an upstream bug with jnpr.
Because they have listed this as being a deprecated option in the future
this may re-break in the future.
2017-08-02 23:11:52 -06:00
Mike Place
4c1d931654
Merge pull request #42481 from twangboy/win_unit_test_crypt
...
Fix `unit.test_crypt` for Windows
2017-08-01 13:10:49 -05:00
Neile Havens
d73c4b55b7
back-port #42612 to 2017.7
2017-07-31 17:10:06 -05:00
Mike Place
5baf2650fc
Merge pull request #42453 from gtmanfred/makedirs
...
don't pass user to makedirs on windows
2017-07-31 14:57:57 -05:00
garethgreenaway
25094ad9b1
Merge pull request #42602 from garethgreenaway/42514_2017_7_superseded_deprecated_from_pillar
...
Use superseded and deprecated configuration from pillar
2017-07-31 11:53:06 -07:00
Nicole Thomas
7d385f8bdc
Merge pull request #42006 from redmatter/fix-dockerng-network-matching-2017.7
...
Fix dockerng.network_* name matching
2017-07-28 09:52:51 -06:00
Nicole Thomas
f83960c02a
Lint: Remove extra line at end of file.
2017-07-28 09:13:59 -06:00
Andrew Bulford
c7d364ec56
Add regression tests for #41982
...
These test the scenarios where another network with a similar name
already exists, verifying that absent doesn't attempt to remove a
network which isn't specified, and present still attempts to create the
specified network despite a similarly named network already being present.
2017-07-28 10:41:44 +01:00
Andrew Bulford
d31f2913bd
Fix broken unit test test_network_absent
...
This started failing following commit 515c612
, which relied on the
'Name' key being present in the return value of docker.networks -
as the mock didn't have this set the test started failing.
2017-07-28 09:57:45 +01:00
Nicole Thomas
22eea389fa
Merge pull request #42290 from isbm/isbm-module_run_parambug_42270_217
...
Backport of #42270
2017-07-27 16:30:05 -06:00
Nicole Thomas
6b45debf28
Merge pull request #41988 from redmatter/fix-dockerng-network-matching
...
Fix dockerng.network_* name matching
2017-07-27 15:25:06 -06:00
Gareth J. Greenaway
74bae13939
Small update to something I missed in the first commit. Updating tests to also test for pillar values.
2017-07-27 13:19:48 -07:00
Mike Place
2985e4c0e6
Merge pull request #42255 from twangboy/win_unit_test_win_system
...
Fix `unit.modules.test_win_system` for Windows
2017-07-27 14:12:41 -05:00
Daniel Wallace
559d432930
fix tests
2017-07-27 12:00:38 -06:00
Mike Place
07c2793e86
Merge pull request #42266 from twangboy/win_unit_states_test_file
...
Fix `unit.states.test_file` for Windows
2017-07-25 15:26:32 -05:00
Mike Place
641a9d7efd
Merge pull request #41968 from root360-AndreasUlm/fix-rabbitmqctl-output-handler
...
Fix rabbitmqctl output sanitizer for version 3.6.10
2017-07-25 14:12:36 -05:00
Nicole Thomas
c793d83d26
Merge pull request #42180 from twangboy/win_unit_test_timezone
...
Fix `unit.modules.test_timezone` for Windows
2017-07-24 08:46:16 -06:00
Nicole Thomas
083ff00410
Merge pull request #42474 from whiteinge/cmd-arg-kwarg-parsing-test
...
Cmd arg kwarg parsing test
2017-07-24 08:13:29 -06:00
twangboy
102509029e
Remove chown mock, fix path seps
2017-07-21 16:36:07 -06:00
Seth House
0cc0c0967a
Lint fixes
2017-07-21 16:14:32 -06:00
Seth House
622ff5be40
Add LocalClient.cmd test for arg/kwarg parsing
2017-07-20 14:28:24 -06:00
rallytime
c673b64583
Merge branch '2016.11' into '2017.7'
...
Conflicts:
- doc/conf.py
- doc/ref/configuration/master.rst
- doc/ref/configuration/minion.rst
- salt/engines/hipchat.py
- salt/engines/slack.py
- salt/grains/core.py
- salt/version.py
- tests/integration/states/test_renderers.py
2017-07-20 09:54:08 -06:00
Mike Place
0a72e56f6b
Merge pull request #42356 from meaksh/2016.11-AliasesLoader-wrapper-fix
...
Allow to check whether a function is available on the AliasesLoader wrapper
2017-07-19 11:56:41 -05:00
Nicole Thomas
59e012b485
Merge pull request #42150 from twangboy/win_unit_test_pip
...
Fix `unit.modules.test_pip` for Windows
2017-07-19 10:01:17 -06:00
Nicole Thomas
ade25c6b34
Merge pull request #42154 from twangboy/win_unit_test_reg
...
Fix `unit.modules.test_reg_win` for Windows
2017-07-19 10:00:38 -06:00
Nicole Thomas
07593675e2
Merge pull request #42182 from twangboy/win_unit_test_useradd
...
Fix `unit.modules.test_useradd` for Windows
2017-07-19 09:55:32 -06:00
rallytime
7aa31ff030
Merge branch '2016.11' into '2017.7'
...
Conflicts:
- salt/grains/core.py
- salt/modules/git.py
- salt/modules/pillar.py
- salt/states/saltmod.py
- salt/states/user.py
- tests/integration/states/handle_iorder.py
2017-07-18 09:05:43 -06:00
Pablo Suárez Hernández
915d94219e
Allow to check whether a function is available on the AliasesLoader wrapper
2017-07-18 12:57:36 +01:00
Erik Johnson
14cf6ce322
is_windows is a function, not a propery/attribute
...
While not fatal, this could potentially cause problems running this
test on Windows.
2017-07-17 23:36:21 -05:00
Mike Place
3ec5bb1c2f
Merge pull request #42257 from twangboy/win_unit_pillar_test_git
...
Fix `unit.pillar.test_git` for Windows
2017-07-17 12:51:41 -05:00
Mike Place
36395625c2
Merge pull request #42258 from twangboy/win_unit_states_tests_environ
...
Fix `unit.states.test_environ` for Windows
2017-07-17 12:50:37 -05:00
Mike Place
894bdd2b19
Merge pull request #42265 from rallytime/gate-moto-version
...
Gate boto_elb tests if proper version of moto isn't installed
2017-07-17 12:47:51 -05:00
Mike Place
baf04f2a2d
Merge pull request #42277 from twangboy/win_unit_states_test_winrepo
...
Fix `unit.states.test_winrepo` for Windows
2017-07-17 12:37:06 -05:00
Mike Place
acd29f9b38
Merge pull request #42206 from rallytime/fix-flaky-test
...
[PY3] Fix test that is flaky in Python 3
2017-07-17 12:09:52 -05:00
Mike Place
8f1cb287cf
Merge pull request #42126 from rallytime/merge-2017.7
...
[2017.7] Merge forward from 2016.11 to 2017.7
2017-07-17 12:07:18 -05:00
Bo Maryniuk
8c71257a4b
Call unnamed parameters properly
2017-07-13 10:11:00 +02:00
Bo Maryniuk
94c97a8f25
Update and correct the error message
2017-07-13 10:10:50 +02:00
twangboy
ed89cd0b93
Use os.sep for path seps
2017-07-12 10:13:26 -06:00
twangboy
669aaee10d
Mock file exists properly
2017-07-11 17:09:21 -06:00
rallytime
78cdee51d5
Gate boto_elb tests if proper version of moto isn't installed
...
For Python 2 tests, we can use an older version. But when running
these tests of Python 3, we need a newer version of moto that supports
Python 3.
This gates the tests if the expected version of moto is missing.
2017-07-11 17:00:50 -06:00
twangboy
a4231c9827
Fix ret mock for linux
2017-07-11 16:59:42 -06:00
twangboy
0c484f8979
Fix unit tests on Windows
2017-07-11 16:55:43 -06:00
twangboy
55b278c478
Mock the reg.read_value function
2017-07-11 13:23:11 -06:00
twangboy
45be32666a
Add error-handling function to shutil.rmtree
2017-07-11 13:08:00 -06:00
twangboy
acc0345bc8
Fix unit tests
2017-07-11 12:08:13 -06:00
rallytime
2be4865f48
[PY3] Fix test that is flaky in Python 3
...
We can't rely on lists having the same order in Python3 the same
way we rely on them in Python2. If we sort them first, and then
compare them, this test will be more reliable.
2017-07-07 09:43:52 -06:00
garethgreenaway
47ade9e91c
Merge pull request #42088 from terminalmage/update-mocking
...
Update mocking in network tests
2017-07-06 15:03:42 -07:00
twangboy
8260a71c07
Disable tests that require pwd in Windows
2017-07-06 13:19:40 -06:00
Gareth J. Greenaway
a34970b45b
Back porting the fix for 2017.7 that ensures the order of the names parameter.
2017-07-06 12:12:50 -07:00
twangboy
832a3d86dd
Skip tests that use os.symlink on Windows
2017-07-06 13:11:02 -06:00
twangboy
00d9a52802
Fix problem with handling REG_QWORD in list values
2017-07-05 17:44:06 -06:00
twangboy
4ee24202fc
Fix unit tests for test_pip
2017-07-05 15:49:53 -06:00
twangboy
9b61533b09
Get more accurate currnet time in local_cache
2017-07-05 12:19:20 -06:00
twangboy
844e3f65bc
Fix unit tests for Windows
2017-07-05 12:03:13 -06:00
Erik Johnson
d15f7ded82
Add integration test for 42116
2017-07-05 11:07:38 -05:00