rallytime
f44e14b63c
Merge branch 'carbon' into '2016.11'
...
Conflicts:
- salt/modules/file.py
2016-11-09 12:56:58 -07:00
Erik Johnson
2810b85cac
Add a test to ensure we don't check for fast-forward before fetching ( #37571 )
2016-11-09 12:43:25 -07:00
Erik Johnson
2fc0b222bc
Fix regression in service.dead state ( #37562 )
...
* Fix regression in service.dead state when service is not available
This was originally broken in c4f899b
.
* Add unit test for issue 37511
2016-11-08 14:58:33 -07:00
Nicole Thomas
2e8e56ca69
[PY3] Change log.warn statements to log.warning ( #37531 )
...
* [PY3] Change log.warn statements to log.warning
log.warn is deprecated in Python 3. This change removes the
occurance of deprecation warnings for using log.warn. For example:
```
17:24:23 [WARNING ] /testing/salt/utils/verify.py:522: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
17:24:23 log.warn('Insecure logging configuration detected! Sensitive data may be logged.')
17:24:23
17:24:23 [WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
```
* Tweak unit.utils.verify_test to using warning instead of warn
2016-11-08 13:06:54 -07:00
rallytime
5ead1425d7
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- doc/topics/releases/releasecandidate.rst
- salt/modules/win_servermanager.py
2016-11-08 13:04:33 -07:00
Nicole Thomas
453319b50a
Don't pass the vpc id to boto.vpc.create_internet_gateway func ( #37556 )
...
That function's namespace looks like this:
```
def create_internet_gateway(self, dry_run=False):
```
So when we pass in the vpc_id opbject in the test, the check later
in the function sets `dry_run=True` since the vpc_id opbject exists.
This later throws JSONResponseErrors because the `DryRun` flag is
set. This error raising functionality was added in the most recent
version of moto, which exposed this bug.
This fixes the three boto_vpc_test unit state tests. We'll see if
other tests need to be addressed in other files on a full test run.
2016-11-08 12:48:26 -07:00
rallytime
eae3b9e30f
Merge branch 'carbon' into '2016.11'
...
No conflicts.
2016-11-07 08:15:42 -07:00
rallytime
3b56f8bce1
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- doc/topics/event/master_events.rst
2016-11-07 08:13:57 -07:00
Mike Place
be93710fee
Merge pull request #37452 from rallytime/fix-31135
...
file.line with mode=replace on an empty file should return False, not stacktrace
2016-11-06 14:55:11 +13:00
rallytime
9b3e4414c8
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- pkg/windows/modules/get-settings.psm1
- salt/modules/mac_power.py
- salt/modules/win_dsc.py
- salt/modules/win_servermanager.py
- salt/states/file.py
- salt/utils/event.py
- salt/utils/gitfs.py
2016-11-04 15:23:49 -06:00
rallytime
4132929832
Merge branch 'carbon' into '2016.11'
...
No conflicts.
2016-11-04 13:38:34 -06:00
Erik Johnson
a3f38e5a9f
Update file.extract_hash unit tests
...
These tests now not only test the new functionality added for matching
on source URI and source_hash_name, but also test non-specific hash_type
lookups, specific hash_type lookups, and failed specific hash_type
lookups (i.e. requesting a hash type not present in the file).
2016-11-04 11:25:54 -05:00
Pablo Suárez Hernández
4ae036055d
Fix unit test for Zypper dist-upgrade in Carbon
2016-11-04 09:36:41 -06:00
Mike Place
580eca709b
Merge pull request #37121 from nevins-b/2016.3
...
allow the file.recurse state to support saltenv
2016-11-04 18:59:28 +13:00
rallytime
94a00c66eb
Write a unit test demonstrating stack trace in #31135
...
Here is the stack trace that happens when running file.line with
mode=replace on a file that exists, but is empty, as described in
the bug report:
unit.modules.file_test.FileModuleTestCase.test_replace_line_in_empty_file .................................................
Traceback (most recent call last):
File "/root/SaltStack/salt/tests/unit/modules/file_test.py", line 593, in test_replace_line_in_empty_file
mode='replace'))
File "/root/SaltStack/salt/salt/modules/file.py", line 1523, in line
for line in body.split(os.linesep)])
TypeError: expected a character buffer object
2016-11-03 14:57:10 -06:00
rallytime
4080cb4f12
Merge branch '2016.3' into 'carbon'
...
No conflicts.
2016-11-03 08:54:32 -06:00
Pablo Suárez Hernández
ffc596f215
Including resolver params for Zypper debug-solver
...
Now '--no-allow-vendor-change' and '--from' parameters are included
into the zypper --debug-solver call before performing a dry-run dist-upgrade.
2016-11-03 08:34:26 +00:00
rallytime
c31f879f8b
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- salt/cloud/clouds/vmware.py
2016-11-02 11:33:21 -06:00
Aditya Kulkarni
e9b4620fac
Add unit tests for cloning from snapshot ( #37414 )
2016-11-02 11:22:37 -06:00
Nicole Thomas
8679ce4510
Back-port #37321 to 2016.11 ( #37409 )
...
* status.uptime - avoid nawks srand, causes problems on smartos
* status.uptime - remove docs comment that no longer applies
* status.uptime - optimize a tiny it and get rid of the need for a shell
* status.uptime - actually remove the now redudent line too
* status.uptime - readded fallback to uptime binary, atleast we get something on the BSDs too now
* status.uptime - support python pre 2.7 as per damon-atkins
* status.uptime - want OpenBSD support
* status.uptime - want freebsd support, removed fallback once again so we are consistant
* status.uptime - want NetBSD support
* status.uptime - fold @jfindlay work for OSX into mine, tweak mine based on his work
* status.uptime - push tests from @jfindlay with updates SunOS test
* status.uptime - remove cmd.run_all as it was replaced by sysctl.get
* status.uptime - attempt to fix sunos test
* Figured out why there was a cmd.run mock was there.
* add note for SunOS, so we do not forget
* Update version added tag
2016-11-02 09:50:30 -06:00
Erik Johnson
3014afd517
Overhaul archive.extracted state
...
This fixes a number of annoyances with the archive.extracted state.
Rather than re-state the changes again here, they can be observed in the
carbon release notes, where they have been documented.
2016-11-01 19:35:57 -05:00
rallytime
e082ff538b
Fix failing test now that we're raising a CommandExecutionError
...
Also adds a test to check that the CommandExecutionError is raised
when the filename is not present.
2016-11-01 15:51:09 -06:00
rallytime
fd380c79b9
Add test case to reproduce dnsmasq.set_config failure in #34263
2016-11-01 14:31:14 -06:00
rallytime
da79271aed
Merge branch 'carbon' into '2016.11'
...
No conflicts.
2016-11-01 10:43:07 -06:00
rallytime
b1d64448c8
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- salt/utils/context.py
2016-11-01 09:33:29 -06:00
Thomas S Hatch
1a4833b3a1
Merge pull request #37279 from gtmanfred/2016.3
...
initialize super class of NamespacedDictWrapper
2016-11-01 09:12:49 -06:00
rallytime
ba5583938b
Update mac_package unit tests: remove --no-compress flag
2016-10-31 16:13:48 -06:00
rallytime
e10058c831
Merge branch '2016.3' into 'carbon'
...
No conflicts.
2016-10-31 10:15:25 -06:00
Mike Place
02d61e5928
Lint
2016-10-31 23:21:43 +13:00
Mike Place
3d36f47d53
Skip process test on < 2.7
...
There is an unfixed bug in 2.6 that makes this unstable.
2016-10-31 23:20:48 +13:00
Mike Place
a6b7417fe9
SIGILL -> SIGKILL in process test
...
Fairly sure this was a typo. cc: @s0undt3ch
2016-10-31 20:54:42 +13:00
Mike Place
534a21e8d6
Remove test
...
I don't know why this would exist in a client test. This is tested extensively
already in the loader tests, which is the appropriate place.
2016-10-31 20:39:34 +13:00
Mike Place
63ba6b03ad
Merge pull request #37301 from cachedout/fix_pkg_test
...
Fix typo in pkg upgrade test
2016-10-28 20:24:30 +09:00
Mike Place
6cb7ce2c0f
Fix typo in pkg upgrade test
2016-10-28 20:23:26 +09:00
Mike Place
36f47a4449
Reset dir for extend test
2016-10-28 15:02:13 +09:00
Daniel Wallace
597f346d57
initialize super class of NamespacedDictWrapper
...
Fixes #37264
2016-10-27 14:28:01 -05:00
rallytime
e4dc059959
Update Carbon versionadded tags to 2016.11.0 in tests/*
2016-10-27 10:04:13 -06:00
Mike Place
9f5cdf1d49
Merge pull request #37193 from cro/allow_host_from_scratch
...
Allow VMs created from scratch to be assigned to a specific host
2016-10-27 15:33:10 +09:00
Mike Place
afd3dc3807
Merge branch '2016.3' into 2016_3_carbon
2016-10-26 14:08:03 +09:00
Mike Place
760ed9f56d
Merge pull request #37239 from Ch3LL/fix_cloud_timeout
...
Fix cloud tests timeout
2016-10-26 10:11:52 +09:00
C. R. Oldham
6a7eab9e16
Remove this test, it is no longer illegal to leave out image
...
and clonefrom parameters. It is possible to create a VM from scratch.
2016-10-25 15:23:32 -06:00
Ch3LL
394fccf556
fix run_cloud timeout
2016-10-25 13:30:41 -06:00
Ch3LL
23947c5944
change timeout for cloud tests
2016-10-25 13:27:57 -06:00
Eric Radman
3829b7592f
Update configuration examples for Joyent
...
* Fix typo in profile example ('private_key' listed twice)
* Reflect Joyent's current new naming convention for VM sizes
* Update docs with modern images that are officially supported by Joyent
* Refresh example output of --list-sizes and --list-images
2016-10-25 10:43:32 -06:00
rallytime
bd58650af2
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- tests/unit/netapi/rest_tornado/test_handlers.py
- tests/utils/__init__.py
2016-10-25 10:39:02 -06:00
Nevins Bartolomeo
99d2c360ed
making messaging in tests match new return
2016-10-25 09:38:54 -04:00
Pablo Suárez Hernández
32f44b43ee
Fix Zypper module and tests for Carbon
2016-10-25 11:08:00 +01:00
Mike Place
0bbf06bd86
Lint fix
2016-10-25 16:53:18 +09:00
Mike Place
f609917760
Workaround for utils
2016-10-25 16:51:30 +09:00
Mike Place
a6a24c2b3b
Workaround for tornado test startup error
2016-10-25 16:45:32 +09:00
Mike Place
88bcfa2c0a
Fix TCP test
2016-10-25 16:42:50 +09:00
Mike Place
0aab883180
Merge branch '2016.3' into 3_carbon
2016-10-25 16:13:44 +09:00
Mike Place
c4393d5e9e
Address transport test hang
...
It would appear that if an attribute error is raised when trying to detect a class atter,
that the test suite does not run the class teardown method but continues regardless. This
fixes the class attr error which then allows the teardown to run. Prior to this, if the
teardown did not run, the entire suite would hang out shutdown because it was blocked
on waiting for a ioloop to terminate.
2016-10-25 13:16:35 +09:00
rallytime
063ddfd7ce
Merge branch '2016.3' into 'carbon'
...
No conflicts.
2016-10-24 10:16:17 -06:00
Nicole Thomas
d7e28d24a4
Pylint fix for 2016.3 ( #37186 )
...
Refs #37175
2016-10-24 09:42:41 -06:00
rallytime
027e2212c9
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- salt/modules/status.py
- salt/modules/win_status.py
- salt/modules/zypper.py
- salt/utils/network.py
- tests/unit/transport/zeromq_test.py
2016-10-24 09:29:53 -06:00
Mike Place
0d7af935e5
Merge pull request #37175 from cachedout/fix_test_hange
...
Fix test hang
2016-10-24 18:55:37 +09:00
Mike Place
0fecb5ff2e
Remove sleep. Thanks @s0undt3ch
2016-10-24 18:38:49 +09:00
Mike Place
cedc609503
Fix test suite hang on salt testing
...
We don't need to clean up here since the test suite will handle it for us.
2016-10-24 15:52:33 +09:00
Mike Place
c5d81a8ade
Merge pull request #37158 from jfindlay/mac_skip_uptime
...
add mock for `status.uptime` unit test
2016-10-24 12:13:53 +09:00
rallytime
8fff95b3b4
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/modules/gpg.py
- salt/modules/zypper.py
2016-10-21 16:09:17 -06:00
Justin Findlay
094eac06eb
modules.status.uptime unit test: mock on linux
2016-10-21 15:50:42 -06:00
rallytime
caa8fc9169
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- pkg/deb/salt-api.service
- pkg/deb/salt-master.service
- salt/client/__init__.py
- salt/fileclient.py
- salt/modules/cp.py
- salt/modules/status.py
- tests/integration/__init__.py
- tests/integration/modules/cp.py
2016-10-21 15:50:03 -06:00
Nicole Thomas
2bc5dedd06
Allow the minion test daemons a couple of tries to connect to the master ( #37150 )
...
When running the tests with the tcp transport, we are not as forgiving
with the minion connection process as we are in ZMQ. In ZMQ, we attempt
to connect to the master. If it isn't up yet, we wait and try again. In
TCP, we try to connect to the master once, realize it's not up (because
the master process takes longer to spin up than the minions) and crash
and bail out.
This just gives the master a little more time to come up by having the
minions try to connect a couple more times.
2016-10-21 14:50:39 -06:00
Nevins Bartolomeo
bc4b0e7cda
adding test for saltenv in file.recurse source url
2016-10-21 08:44:58 -04:00
Mike Place
f4ce268d51
Don't run ssh tests if we can't reach external server
2016-10-21 19:47:05 +09:00
Mike Place
169a82e62b
Merge pull request #37119 from jfindlay/log_proc_user
...
log.setup: only assign user if defined
2016-10-21 14:14:55 +09:00
Megan Wilhite
f22c686b34
fix digital ocean image name in profile ( #37126 )
...
* fix digital ocean image name in profile
* remove skip and fix test
2016-10-20 16:08:50 -06:00
Justin Findlay
1d503f032c
tests.integration: pass opts as a dict
2016-10-20 14:16:35 -06:00
Nicole Thomas
8c46d69251
Merge pull request #37109 from meaksh/zypper-distupgrade-support-2015.8
...
Some improvements for Zypper `dist-upgrade`
2016-10-20 13:41:08 -06:00
twangboy
f1c8d98119
Skip weird_install test on Mac OS X
2016-10-20 11:05:34 -06:00
twangboy
90de794290
Fix test_issue_6833_pip_upgrade_pip test on OSX
2016-10-20 11:05:28 -06:00
Dmitry Kuzmenko
4695619599
Updated host_to_ip to return all the IPs instead of the first one.
...
This fixes the bug #36866 where minion gets __master_disconnected right
after connect because '::1' isn't in the list of connected masters that
is ['127.0.0.1'].
2016-10-20 18:15:27 +03:00
Mike Place
3179303a5d
Revert "Back-port #36875 to carbon"
2016-10-20 19:49:45 +09:00
Pablo Suárez Hernández
01b0a6917c
Minor pylint fixes
2016-10-20 11:33:11 +01:00
Pablo Suárez Hernández
7dbb0bd252
Unit tests fixes
2016-10-20 10:59:48 +01:00
Mike Place
0b87e7890a
Merge pull request #37103 from cachedout/fix_proc_test
...
Remove unnecessary sleep from unit.utils.process_test.TestProcessMana…
2016-10-20 17:45:07 +09:00
Mike Place
3a37a22366
Merge pull request #37088 from meaksh/zypper-distupgrade-support-2015.8
...
Adding 'dist-upgrade' support to the zypper module
2016-10-20 14:46:56 +09:00
Mike Place
d7aebd1877
Remove unnecessary sleep from unit.utils.process_test.TestProcessManager.test_restarting
2016-10-20 14:29:10 +09:00
rallytime
b445a5e579
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/modules/cp.py
2016-10-19 18:24:04 -06:00
Pablo Suárez Hernández
a092a974da
Refactor: Cleanup and pylint fixes
2016-10-19 14:57:03 +01:00
Pablo Suárez Hernández
1331ae5c72
Unit tests for zypper upgrade and dist-upgrade
2016-10-19 13:21:55 +01:00
Denys Havrysh
d1ab98b459
cp.get_url: update usage doc and add tests for file://
URL with dest=None
2016-10-18 13:39:55 +03:00
twangboy
b3b688e298
Fix tests
2016-10-17 13:31:55 -06:00
Denys Havrysh
c7cf79e959
cp.get_url: add note and test for https:// URL with `dest=None
`
2016-10-17 17:39:52 +03:00
Denys Havrysh
ff55f77179
cp.get_url: write more verbose docstring
2016-10-17 16:01:02 +03:00
Denys Havrysh
94a34a08ba
cp.get_url: add integration tests
2016-10-17 15:46:49 +03:00
rallytime
112dc5d9c1
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- salt/cli/salt.py
- salt/client/__init__.py
- salt/modules/archive.py
- tests/integration/modules/pkg.py
2016-10-14 12:03:08 -06:00
C. R. Oldham
c7595b84a7
Merge pull request #36981 from rallytime/upgrades-test-fix
...
Skip pkg.upgrades test on distros other that Suse in 2016.3
2016-10-13 15:29:36 -06:00
C. R. Oldham
0b11f05d07
Merge pull request #36980 from rallytime/fedora-upgrades-test-fix
...
Skip pkg.upgrade test if pkg install/upgrade has problems
2016-10-13 15:29:29 -06:00
Thomas S Hatch
6b782c15e1
Merge pull request #36755 from terminalmage/issue36671
...
systemd.py: check retcode for service availability in systemd >= 231
2016-10-13 13:41:50 -06:00
rallytime
a5ae737057
Skip pkg.upgrades test on distros other that Suse in 2016.3
...
Refs #36450 and #36980
2016-10-13 12:02:22 -06:00
rallytime
21921af9a7
Skip pkg.upgrade test if pkg install/upgrade has problems
...
Refs #36450
2016-10-13 11:57:27 -06:00
rallytime
1e7f56c4bb
Merge branch '2016.3' into 'carbon'
...
No conflicts.
2016-10-13 10:38:19 -06:00
Nicole Thomas
a8eee6e90b
Update the ip to test against in unit.utils.network_test.NetworkTestCase.test_host_to_ip ( #36975 )
2016-10-13 10:25:58 -06:00
Nicole Thomas
3ac9ced202
Merge pull request #36241 from hrumph/cert_problem
...
Fixes #36240
2016-10-12 17:28:35 -06:00
rallytime
1d3aaf8097
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- doc/ref/configuration/minion.rst
2016-10-12 15:26:27 -06:00
Andrew Pashkin
337119c113
Fix integration tests launching - remove redundant "config_dir" argument in call to ShellTestCase.run_run from SaltDaemonScriptBase._wait_until_running
2016-10-12 13:21:40 -06:00
rallytime
32846794c8
Update mocks for failing tests in win_certutil_test
2016-10-12 11:31:58 -06:00
Justin Findlay
4d8fb03b79
return opennebula errors to user ( #36930 )
...
* cloud.clouds.opennebula: return errors to user
* cloud.clouds.opennebula._get_xml: add unit test
2016-10-12 10:19:11 -06:00
rallytime
32829b9474
[yumpkg] Skip test_pkg_upgrade_has_pending_upgrades if there are no upgrades
...
yumpkg.list_upgrades returns an empty dictionary when no upgrades are available.
We need to check for this situation and skip the test if no upgrades are present.
Fixes the test failure on Fedora 24 on Jenkins currently, but also protects against
any potential failures for other RHEL-based distros that aren't currently failing
because "ret" is populated with a dictionary of upgrades.
2016-10-11 16:50:50 -06:00
Erik Johnson
e5425f3e8c
Revert change in default value for top_file_merging_strategy ( #36922 )
...
This causes problems when a Carbon master tries to run states on a
non-Carbon minion.
2016-10-11 16:33:23 -06:00
rallytime
b196c9336a
Merge branch '2016.3' into 'carbon'
...
No conflicts.
2016-10-11 13:54:09 -06:00
Thomas S Hatch
7e2eba9cc7
Merge pull request #36776 from cro/prox_min_mgr
...
Adapt MinionManager for Proxy Minions.
2016-10-11 11:12:01 -06:00
rallytime
c09b9d6e6a
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-10-10 10:21:04 -06:00
Erik Johnson
7c78d6f419
Add unit tests for systemd scope usage
2016-10-07 17:35:09 -05:00
rallytime
2e34277b65
Add '--no-psqlrc' option to new-to-carbon postgres unit test
2016-10-07 16:10:57 -06:00
rallytime
f73bdf55c2
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- salt/cloud/clouds/vultrpy.py
- salt/modules/ini_manage.py
- salt/states/glance.py
2016-10-07 09:51:21 -06:00
C. R. Oldham
b7f9eb7864
Fix test.
2016-10-06 14:20:29 -06:00
Mike Place
1284de27fc
Merge pull request #36789 from maximeguillet/fix-psqlrc-pg9.6
...
Fix behavior of psql -c option with postgresql 9.6
2016-10-06 20:24:51 +09:00
Maxime Guillet
b59c23bef1
Fix one remaining postgresql tests linked to #36787 .
2016-10-05 17:05:10 +02:00
Maxime Guillet
8b92ae2061
Fix postgresql tests using position in the argument list of psql.
...
Some tests use position number in the argument list of psql command
to check their results. As #36787 add one element, next position
in the list must be used.
2016-10-05 16:08:42 +02:00
Maxime Guillet
21f2a17a07
Fix postgresql tests by adding --no-psqlrc option introduced by #36787 .
2016-10-05 14:43:02 +02:00
Mike Place
4bdb997dae
Merge pull request #36785 from cachedout/pr-36728
...
Fixup merge forward #36728
2016-10-05 20:02:16 +09:00
Mike Place
bd712bb0ff
Fix test suite hanging on shutdown
2016-10-05 17:14:27 +09:00
Erik Johnson
d916c2b49c
Handle cases where retcode/output feature is backported
...
This will handle the case of RHEL 7.3, which maintains an older version
of systemd with the retcode/output changes from "systemctl status" in
systemd 231 backported.
2016-10-04 09:55:56 -05:00
Mike Place
8ff69bf0c7
Merge pull request #36764 from cachedout/more_pip_test_fixing
...
Another bit of detection for failed pip tests
2016-10-04 22:05:29 +09:00
Mike Place
b9f5343449
Another bit of detection for failed pip tests
...
Don't bail out if the download failed for some reason on the remote end
2016-10-04 21:09:47 +09:00
Erik Johnson
b3364646ad
Update systemd module unit tests
...
The _systemctl_status() function has changed its return data, this
commit updates the affected tests to reflect this.
2016-10-03 22:51:43 -05:00
Justin Findlay
b5fcca9983
modules.archive int tests: check for gzip, rar
...
Similar to 8733586.
2016-10-03 11:14:05 -06:00
Mike Place
93f1daa4ce
Merge pull request #36744 from cachedout/fix_test_shutdown
...
Fix issue where test suite could hang on shutdown
2016-10-04 00:37:00 +09:00
Mike Place
cdf2a56564
Fix issue where test suite could hang on shutdown
...
This is most common in the develop branch but could occur here as well.
2016-10-03 23:37:05 +09:00
C. R. Oldham
e6897da166
Skip test if we can't get an earlier package.
2016-09-30 17:30:21 -06:00
C. R. Oldham
8e68058877
Handle cases where the return dict from a pkg.upgrade might have a "changes" key.
2016-09-30 16:33:56 -06:00
rallytime
24b8bba145
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-09-30 16:13:08 -06:00
rallytime
5904cc04c6
Skip cmd_unzip test if salt.utils.which('zip') isn't available
...
This test relies on running archive.cmd_zip in order to have something
to test running archive.cmd_unzip against. Some distros will have the
unzip binary available, but not the zip binary. We need to protect this
test against both so we don't have a false failure on trying to run
archive.cmd_zip.
2016-09-30 16:02:42 -06:00
Nicole Thomas
52276d37a1
Skip cmd_unzip test if salt.utils.which('zip') isn't available ( #36722 )
...
This test relies on running archive.cmd_zip in order to have something
to test running archive.cmd_unzip against. Some distros will have the
unzip binary available, but not the zip binary. We need to protect this
test against both so we don't have a false failure on trying to run
archive.cmd_zip.
2016-09-30 14:30:09 -06:00
rallytime
555ae9aa9b
Merge branch '2016.3' into 'carbon'
...
No conflicts.
2016-09-30 10:13:39 -06:00
Mike Place
16f5bb70ec
Remove line that checks against unordered keys
2016-09-30 20:24:49 +09:00
Mike Place
0e9148293a
Fix error in test
...
Introduced in #36616
cc: @cro
2016-09-30 11:38:03 +09:00
rallytime
616aafa398
Merge branch '2016.3' into 'carbon'
...
No conflicts.
2016-09-29 11:47:48 -06:00
rallytime
7a03c4df8c
Fix merge conflict resolution error
...
The original conflict resolution adjusted the wrong line. This puts
the test changes on the correct line and restores the original line.
2016-09-29 11:26:50 -06:00
rallytime
6bc3221f7b
Update test to not use the nested context (for Py3 compat)
2016-09-29 11:25:46 -06:00
rallytime
112903ad7e
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- conf/master
- doc/ref/configuration/master.rst
- salt/cli/daemons.py
- salt/client/ssh/__init__.py
- salt/config/__init__.py
- salt/modules/archive.py
- salt/modules/cmdmod.py
- tests/unit/states/service_test.py
2016-09-29 09:56:43 -06:00
rallytime
3e4ac617d3
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- tests/integration/cli/grains.py
- tests/integration/files/file/base/issue-2068-template-str-no-dot.sls
- tests/integration/files/file/base/issue-2068-template-str.sls
- tests/integration/modules/pip.py
2016-09-29 09:15:26 -06:00
Denys Havrysh
bba9d0d105
alternatives.install
state: detect alternatives
command failed
2016-09-29 18:09:16 +03:00
Mike Place
3d098c64ef
Remove possible race between grains dumps in test
...
It's not always reasonable assume that grains will be the same byte-for-byte
between invocations. Remove that assumption since it isn't related to the what's under test here anyhow.
2016-09-29 15:34:50 +09:00
Mike Place
8cfe371a5a
Merge pull request #36663 from cachedout/skip_pip_tests_on_download_fail
...
Fix error in pip test
2016-09-29 15:15:52 +09:00
Mike Place
0c7fb91dc5
Fix error
2016-09-29 15:14:37 +09:00
Mike Place
e3f8618982
Merge pull request #36662 from cachedout/skip_pip_tests_on_download_fail
...
Skip over tests where upstream pip isn't there
2016-09-29 15:12:26 +09:00
Mike Place
0bbc60ccd7
Skip over tests where upstream pip isn't there
2016-09-29 15:11:38 +09:00
Mike Place
3249a11e71
Merge pull request #36661 from cachedout/fix_grain_test_race
...
Fix race between minion job timeout and cli test timeout
2016-09-29 13:42:23 +09:00
Mike Place
2dcb92134d
Fix race between minion job timeout and cli test timeout
2016-09-29 13:23:26 +09:00
Mike Place
f4906fe771
Fix test not to rely on external resources
...
We can still model the original issue without needing to call all the way out to pypi to do it.
2016-09-29 12:35:02 +09:00
Mike Place
d8a61eb9f6
Merge pull request #36616 from cro/zypper_fix_test
...
Zypper fix test
2016-09-29 11:26:22 +09:00
Mike Place
ccd92d22d2
Merge pull request #36621 from terminalmage/fix-shadowed-builtins
...
Fix shadowed builtins
2016-09-29 11:25:54 +09:00
Justin Findlay
cc4d958557
modules.archive: add integration tests
2016-09-28 17:14:52 -06:00
C. R. Oldham
b618a5c07d
Remove debugging
2016-09-28 16:26:56 -06:00
Justin Findlay
74c518668b
tests.integration.__init__: except psutil error
...
Related to d0f44c9
.
2016-09-28 15:58:33 -06:00
Erik Johnson
62729eff8d
Update tests to include fix for renamed function
2016-09-28 11:00:33 -05:00
Mike Place
83da81cdfd
Merge pull request #36620 from rallytime/fix-36553
...
Don't allow mercurial states to return True with errors
2016-09-28 14:50:50 +09:00
Erik Johnson
283aca8f2a
Update test to reflect new function signature
2016-09-27 23:13:19 -05:00
rallytime
90c66ef756
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/modules/aptpkg.py
- salt/states/service.py
2016-09-27 21:34:10 -06:00
rallytime
a828bdd0b8
Update test mocks for cmd.run_all dicts
2016-09-27 20:55:39 -06:00
Mike Place
4ab52ae0f6
Merge pull request #36607 from vutny/detect-service-fail
...
`salt.states.service`: detect that service failed to start/stop
2016-09-28 11:39:51 +09:00
C. R. Oldham
3870589462
Test for pkg.upgrade. Most robust on Suse but better than nothing elsewhere
2016-09-27 14:50:44 -06:00
C. R. Oldham
867638ff48
Test for pkg.upgrade. Most robust on Suse but better than nothing elsewhere
2016-09-27 14:49:23 -06:00
Jonathan Ballet
79fdc12395
jinja: fix YAML terminator removal in Jinja's "yaml" filter
2016-09-27 18:52:49 +02:00
Denys Havrysh
c4f899b3b3
salt.states.service
: detect that service failed to start/stop
2016-09-27 18:24:37 +03:00
Mike Place
7b43d4322c
Merge branch '2016.3' into 2016_3_carbon
2016-09-27 16:44:42 +09:00
Mike Place
3a83b0bd16
Remove tests which no longer apply
...
The point of these tests originally was to verify the proper location
of a log file. Checking return codes is just spurious and ties the test
too closely with the shutdown behavior of the daemons which are tracked and tested
in other places more closely and with more accuracy.
2016-09-27 16:36:24 +09:00
rallytime
d5bbd91c14
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- conf/master
2016-09-23 17:01:17 -06:00
rallytime
861a001749
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-09-23 15:06:28 -06:00
Nicole Thomas
07c9d040c0
Fixup the rabbitmq_user state test failure ( #36541 )
2016-09-23 15:05:40 -06:00
Nicole Thomas
fcc50c93fc
Wrap the entire GrainsAppendTestCase class with destructiveTest ( #36537 )
...
Since all pieces of the GrainsAppendTestCase are destructive, let's
just wrap the whole class test case.
Because the tests themselves as well as the `tearDown` function were
wrapped in a @destructiveTest decorator, some test errors were printing
in the test output when --run-destructive isn't passed at the CLI.
This fixes those test errors.
2016-09-23 13:35:05 -06:00
rallytime
d0ec4ead2a
Merge branch '2016.3' into 'carbon'
...
No conflicts.
2016-09-23 08:32:17 -06:00
Mike Place
654fa8d770
Merge pull request #36280 from jwplayer/feature/2016.3-better-postgresql-grants
...
Feature/2016.3 better postgresql grants
2016-09-23 16:55:32 +09:00
rallytime
1755f22de1
Merge branch '2016.3' into 'carbon'
...
No conflicts.
2016-09-22 10:01:17 -06:00
Mike Place
90ef5ce499
Merge pull request #36492 from rallytime/test-fixes-carbon
...
The "assert_called_once" mock testing function is only available in mock 2.0.0 or greater
2016-09-23 00:56:59 +09:00
Mike Place
761ee8b3f6
Merge pull request #36476 from cro/vmware_fix2
...
Allow VMware salt-cloud driver to list objects again
2016-09-22 13:16:40 +09:00
Mike Place
9d032e0a1b
Merge pull request #36481 from terminalmage/fix-mac-non-string-arg-handling
...
Fix mac non-string arg handling
2016-09-22 13:14:18 +09:00
Mike Place
85907ef008
Merge pull request #36485 from gtmanfred/carbon
...
clean up keystone tests
2016-09-22 13:12:36 +09:00
C. R. Oldham
755c069fb9
Align tests for new calls
2016-09-21 16:08:28 -06:00
rallytime
18c6a736cf
The "assert_called_once" mock testing function is only available in mock 2.0.0 or greater
...
We have a couple of tests using the "assert_called_once" function, however, our salt-jenkins
states pin the version of mock at 1.0.1 (This is the last version that is compatible with
Python 2.6). We either need to use something else that works for all versions of mock or gate
the test.
In the pacman tests, it is possible to use "assert_called_with" instead of "assert_called_once"
In the dimension_data and gce unit tests, we need to gate the assertion behind a mock version check.
This way the tests won't fail if the version of mock installed is less than 2.0.0.
2016-09-21 14:46:50 -06:00
Daniel Wallace
8deb342488
clean up keystone tests
...
Don't want to overwrite the stuff for the glance tests
2016-09-21 14:43:42 -05:00
Erik Johnson
1c585b0ef6
Leave arguments as integers
...
This should be supported, and helped catch a bug in the extraneous
re-implementation of cmd.run_all that exists in salt.utils.mac_utils.
2016-09-21 11:46:54 -05:00
rallytime
77f8120395
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- doc/topics/installation/windows.rst
- salt/engines/sqs_events.py
- salt/grains/core.py
2016-09-21 10:43:38 -06:00
C. R. Oldham
3c62ceb3b4
Fix salt-cloud breakage--local traversal was skipping what we needed. Fixes #36301
...
Align tests for new calls
More specific 'skip' selection for PropertyCollector depending on local_properties request.
2016-09-21 09:43:14 -06:00
rallytime
8805b57a1e
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-09-21 09:32:53 -06:00
Mike Place
41d3c09857
Merge pull request #35433 from terminalmage/issue34790
...
git.latest: Add a hint for possible rev changes resulting in non-fast-forward failures
2016-09-21 16:02:18 +09:00
Mike Place
3d23371ca2
Merge pull request #36459 from cachedout/pr-36426
...
Pr 36426
2016-09-21 15:34:28 +09:00
Mike Place
a41022efc3
Merge pull request #36447 from jfindlay/bp-36431
...
Backport #36431 : Try/except psutil process access in OSX
2016-09-21 14:52:39 +09:00
Mike Place
487aae25b5
Lint
2016-09-20 12:50:39 -06:00
Mike Place
9d2eab47c1
Try/except psutil process access in OSX
...
Refs https://github.com/saltstack/qa/issues/244
2016-09-20 12:50:39 -06:00
rallytime
7bcbf8dc36
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- doc/faq.rst
- salt/modules/win_service.py
2016-09-20 10:43:55 -06:00
rallytime
2740fb7bfd
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/grains/core.py
2016-09-20 10:39:53 -06:00
Mike Place
ae1fc430c2
Merge pull request #36424 from jfindlay/bp-36194
...
skip some mac_timezone tests
2016-09-20 15:43:47 +09:00
Robert James Hernandez
85d2068326
Refactor for testing and adding related engine tests
2016-09-19 17:10:19 -07:00
Justin Findlay
a20a2148bf
skip some mac_timezone tests
2016-09-19 16:48:22 -06:00
Erik Johnson
aab02f28b4
Ensure we have a test venv created using virtualenv < 13.0
...
The test that runs these states is testing for behavior that was
obsoleted by virtualenv 13.0. Ensure that we have older virtualenv
available, and then create a venv with that older version. Use the
2nd virtualenv to attempt the "weird" install.
2016-09-19 14:27:30 -06:00
Thomas S Hatch
5625827ee2
Merge pull request #36378 from terminalmage/issue36321
...
git.latest Treat an up-to-date checkout with local changes as up-to-date
2016-09-19 12:43:29 -06:00
rallytime
c64e489f6f
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-09-19 11:22:54 -06:00
Erik Johnson
bb4d69f58a
git.latest: fail gracefully for misconfigured remote repo ( #36391 )
...
* git.latest: fail gracefully for misconfigured remote repo
When the remote repo's HEAD refers to a nonexistent ref, this was
causing a traceback when we tried to check if the upstream tracking
branch needed to be changed after cloning the repo. This commit fixes
this traceback by gracefully failing the state when the remote HEAD is
not present in the ``git ls-remote`` output, but the desired remote
revision doesn't exist.
Additionally, a similar graceful failure now happens if the state is run
again after we gracefully fail the first time, and we need to set the
tracking branch. Trying to set the tracking branch when there is no
local branch would fail with an ambiguous error like "fatal: branch
'master' does not exist", so before we even attempt to set the tracking
branch, the state is failed with a more descriptive comment.
* Add integration test for #36242
2016-09-19 09:33:00 -06:00
Erik Johnson
71b51f49ba
Add integration tests for PR #35433
2016-09-17 22:55:47 -05:00
Erik Johnson
7b1f621206
Fix git.latest test with local changes to reflect changes in state
2016-09-17 21:56:31 -05:00
Mike Place
4e40a4f6b1
Merge pull request #36351 from jtand/freebsd_test_fix
...
Close open socket on freebsd
2016-09-17 19:07:39 +09:00
Nicole Thomas
2f16e43d67
Update the extend.py and extend_test.py imports ( #36382 )
...
When using `fopen`, we need to import all of salt.utils. We should
also be explicit about calling salt.utils.fopen.
This also cleans up the ordering of the salttesting vs salt libs to
be consistent with other files and conform with `ensure_is_syspath`.
Also changes a print statement to a log.info
2016-09-16 16:26:13 -06:00
rallytime
0db2b67ed4
Whitespace fix
2016-09-16 13:25:08 -06:00
rallytime
26cf545d03
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- salt/utils/gitfs.py
- tests/unit/modules/disk_test.py
2016-09-16 10:35:49 -06:00
rallytime
37aea4188a
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-09-16 09:24:17 -06:00