Alexandru Bleotu
7b0f6df8d8
Fixed test with new get_cluster call
2016-12-09 11:55:20 -05:00
Alexandru Bleotu
38b3ebf434
Fix pylint errors in tests for utils.vmware.get_hosts
2016-12-09 11:53:27 -05:00
Alexandru Bleotu
0ea033d21d
Added tests for utils.vmware.get_hosts
2016-12-09 10:04:24 -05:00
Alexandru Bleotu
a7f250b7a0
Added tests for modules.vsphere.test_vcenter_connection
2016-12-09 07:55:44 -05:00
Alexandru Bleotu
cd47cf754c
Added tests for modules.vsphere.gets_service_instance_via_proxy decorator
2016-12-09 07:55:44 -05:00
Alexandru Bleotu
f94ead0ad3
Added tests for modules.vsphere.supports_proxies decorator
2016-12-09 07:55:43 -05:00
Alexandru Bleotu
c9e70743d3
Added tests for modules.vsphere._get_proxy_connection_details
2016-12-09 07:55:43 -05:00
Alexandru Bleotu
7edf6101c1
Added tests for modules.vsphere.get_proxy_type
2016-12-09 07:55:30 -05:00
Alexandru Bleotu
1f0bdf83e9
Updated authors of tests for modules.vsphere
2016-12-09 07:55:30 -05:00
Denys Havrysh
a449980672
Correct cp.get_file_str
docstring and add integration tests
2016-12-09 13:05:57 +02:00
Ch3LL
be74c45463
enabled ec2 cloud tests
2016-12-08 12:39:42 -07:00
Mike Place
cfc6f4b530
Merge pull request #38055 from whiteinge/sls-file-running-dict
...
Add the __sls__ field to the highstate output (the running dict)
2016-12-08 11:04:05 -07:00
Denys Havrysh
cd0154ee93
Master config includes may contain errors and be safely skipped
2016-12-08 15:58:44 +02:00
Seth House
84dce83860
Switch type comparison to isinstance
2016-12-08 02:38:34 -07: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
28b56ea3b4
Merge branch '2016.3' into '2016.11'
...
No conflicts.
2016-12-07 13:14:28 -07:00
Nicole Thomas
86091db647
Skip daemon unit tests when running on Python 2.6 ( #38134 )
...
When switching the daemon unit tests to using multiprocessing pipes,
this exposed a deep bug in Python 2.6. Let's skip these on 2.6.
2016-12-07 13:09:19 -07:00
Mike Place
9f4ebb3c18
Fix type problem in grains.filter_by
...
Closes #38094
2016-12-07 11:25:19 -07:00
Nicole Thomas
ae754e1069
Mock config.option call return for iptables unit test ( #38131 )
...
Refs #31662
2016-12-07 11:19:46 -07:00
Mike Place
fd06bab673
Merge pull request #38043 from MTecknology/2016.11
...
Debian networking fix
2016-12-07 10:32:17 -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
Nicole Thomas
5d9d6b9280
Merge pull request #38057 from rallytime/merge-2016.11
...
[2016.11] Merge forward from 2016.3 to 2016.11
2016-12-06 16:11:41 -07:00
Nicole Thomas
9969544653
Account for case where vim install already exists and is at an older version ( #38112 )
2016-12-06 16:07:56 -07:00
rallytime
342884018b
Fix SaltKeyOptionParserTestCase test failures
2016-12-06 15:03:44 -07:00
rallytime
9b2bbe77ef
Merge branch '2016.11' into 'develop'
...
Conflicts:
- salt/modules/archive.py
- salt/netapi/rest_tornado/saltnado.py
2016-12-06 10:03:10 -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
d513a60189
Do not allow libcloud to be injected as a mock value in the libcloud_dns_test
...
Other tests rely on importing libcloud, which should
not be a mock value.
2016-12-05 16:55:18 -07:00
Seth House
15826ca207
Add integration test for checking the type of the __sls__ field
...
We should add a bunch more of these for other fields. Or we should just
use Typings to define the return from the state functions. ^_^
2016-12-05 14:08:20 -07:00
Seth House
e4cf3931b3
Add integration test for the running dictionary structure
...
This will fail if we remove/rename any fields from the running
dictionary by accident.
2016-12-05 14:08:20 -07:00
Alexandru Bleotu
2f428ef38f
Added tests for utils.vmware.get_datacenter
2016-12-05 10:38:11 -05:00
Alexandru Bleotu
e8a854f9ac
Added tests for utils.vmware.get_datacenters
2016-12-05 10:37:48 -05:00
Mike Place
9dcfdeef6b
Merge pull request #38059 from rallytime/daemons-test-fix
...
Call exec_test for the Syndic daemon in tests.unit.daemons_test.py
2016-12-03 21:18:41 -07:00
Michael Lustfield
82d2b89e0c
Rolling back unit test.
...
Sorry, I just don't have the time to learn all of this right now.
2016-12-02 20:26:00 -06:00
Michael Lustfield
b3edbcfd05
Adding larger and more complete debian_ip unit test.
2016-12-02 18:59:27 -06:00
rallytime
eb372b27d8
Add missing "not" statement: The last syndic test should assertFalse()
2016-12-02 16:53:39 -07:00
rallytime
74a417e527
Update the mocked cloud configs to also include master configs
...
The master configs are injected into the cloud configs, and we need
them here in order to get the `user` default for the parsers test.
2016-12-02 15:38:53 -07:00
Michael Lustfield
b6b1adc091
Typo: missing closing parenthesis
2016-12-02 14:57:12 -06:00
rallytime
4e10f8e018
Call exec_test for the Syndic daemon in tests.unit.daemons_test.py
2016-12-02 13:08:41 -07:00
Mike Place
9cd42b9b3f
Merge pull request #38039 from rallytime/fix-37939
...
Check to see if a line is already commented before moving on
2016-12-02 13:08:35 -07:00
Michael Lustfield
32a1374748
Corrects expected return value
...
Tests were failing because _parse_interfaces is returning the correct data per mocked data. The assertion was expecting the iface line to have been stripped.
2016-12-02 13:34:31 -06:00
rallytime
8fd53a4808
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- doc/topics/cloud/vsphere.rst
- salt/config/__init__.py
- salt/daemons/masterapi.py
- salt/templates/rh_ip/network.jinja
- salt/utils/parsers.py
- tests/unit/daemons_test.py
2016-12-02 12:18:18 -07:00
Mike Place
1ac53e5196
Merge pull request #38004 from terminalmage/issue37969
...
Fix regression in user/group mgmt for archive.extracted
2016-12-02 11:28:48 -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
03e0fd39d1
Merge pull request #37963 from terminalmage/tgt_type
...
Deprecate expr_form argument in the LocalClient
2016-12-02 02:45:16 -07:00
rallytime
f2c045520d
Write an integration test demonstrating the issue
2016-12-01 16:52:03 -07:00
Mike Place
6724fe4871
Modify daemons test to use multiprocessing ( #38034 )
...
* Modify daemons test to use multiprocessing
Without this approach, instantiating a master/minion from this test
would affect the parser tests down the line.
* Fix typo
* Fix copy/paste error
* Add missing attr
2016-12-01 15:33:36 -07:00
Erik Johnson
94a16ada7b
Replace usage of deprecated expr_form in tests
2016-12-01 16:21:49 -06:00
Mike Place
faf94a10a0
Merge pull request #38030 from rallytime/merge-develop
...
[develop] Merge forward from 2016.11 to develop
2016-12-01 15:03:32 -07:00
Erik Johnson
ac2f4e3ab9
Update systemd module unit tests to reflect new masking behavior
2016-12-01 14:21:33 -06:00
rallytime
0eab0ee8a6
Merge branch '2016.11' into 'develop'
...
Conflicts:
- doc/topics/releases/2016.11.0.rst
2016-12-01 12:14:33 -07:00
Mike Place
84e4fe1bd7
Merge pull request #37998 from Ch3LL/add_init_delay
...
Add init delay
2016-11-30 13:23:01 -07:00
Mike Place
1e3bb2e12a
Newline for lint
2016-11-30 13:22:53 -07:00
Erik Johnson
23bb90a7ce
Add integration test for archive.extracted with user/group set to root
2016-11-30 13:11:41 -06: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
Mike Place
0a041277ea
Merge pull request #37954 from gtmanfred/2016.11
...
use sleep from path for docker.sls_build
2016-11-30 11:08:44 -07:00
Mike Place
b158bb6557
Fix gem test (develop)
2016-11-30 10:56:41 -07:00
Ch3LL
8c9e9de335
change name
2016-11-30 10:27:37 -07:00
Ch3LL
1d52c18316
add init_delay option for service.dead state module
2016-11-30 10:22:05 -07:00
Mike Place
1d221aa91c
Update gem test for 2016.11
2016-11-30 09:44:56 -07:00
Daniel Wallace
9caf0b406d
use sleep from path for docker.sls_build
...
sleep sometimes is found in /bin/sleep, like in ubuntu. We should just
depend on the PATH variable being correct, and finding sleep, instead of
explicitly saying /usr/bin/sleep
2016-11-30 10:17:30 -06:00
Mike Place
0af7bd527d
Merge pull request #37989 from alexbleotu/schema_updates-gh
...
Schema updates gh
2016-11-30 09:06:49 -07:00
Mike Place
c8380cf2c9
Merge pull request #37953 from m03/another-set-of-aptpkg-tests
...
Additional aptpkg module unit tests
2016-11-30 09:02:21 -07:00
Mike Place
8b3a01b3d7
Merge pull request #37973 from rallytime/nitrogen-deprecations-saltapi-class
...
[Nitrogen Deprecation] Remove SaltAPI.run() function
2016-11-30 07:40:09 -07:00
Mike Place
f89530a79c
Merge pull request #37988 from alexbleotu/wait_for_task_invalid_argument-gh
...
Wait for task invalid argument gh
2016-11-30 07:31:29 -07:00
Mike Place
fa41fa06cb
Remove whitespace for lint check
2016-11-30 07:30:12 -07:00
rallytime
ac8524fb91
[Nitrogen Deprecation] Remove SaltAPI.run() function
...
Also remove reference to SaltAPI.run() call and move to SaltAPI.start()
call instead in integration/__init__.py
2016-11-29 14:18:40 -07:00
Nicole Thomas
2723188c6f
Merge pull request #37956 from rallytime/merge-develop
...
[develop] Merge forward from 2016.11 to develop
2016-11-29 13:52:38 -07:00
m03
8d5ce68b55
Address config.get in autoremove and upgrade
2016-11-29 12:48:02 -08:00
Mike Place
b341357942
Remove Joyent test
...
Removed per https://github.com/saltstack/salt/pull/37756#issuecomment-263618695
2016-11-29 09:54:46 -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
m03
001d1b615f
Additional aptpkg module unit tests
2016-11-29 08:18:08 -08:00
Mike Place
c25a306759
Merge pull request #37647 from americanexpress/cron-non-root
...
Revising cron for OS agnostic support of cron when running non-root
2016-11-29 07:33:48 -07:00
Alexandru Bleotu
80baf38ee6
Added tests for new serialization code
2016-11-29 08:01:41 -05:00
Alexandru Bleotu
07979897b6
Added tests for InvalidArgument fault handling in utils.vmware.wait_for_task
2016-11-29 05:23:07 -05:00
Mike Place
ea46639ce7
Merge pull request #37272 from vutny/fix-getting-default-logging-opts
...
Get default logging level and log file from default opts dict
2016-11-28 16:04:20 -07:00
Mike Place
9cab761320
Merge pull request #37909 from thusoy/invalid-timezone
...
Throw error when setting invalid timezone
2016-11-28 14:04:35 -07:00
Mike Place
894cca3427
Update test for new gem ver
2016-11-28 11:17:07 -07:00
rallytime
dfedd1185a
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- salt/grains/core.py
- salt/modules/ddns.py
- salt/templates/rh_ip/network.jinja
2016-11-28 11:08:19 -07:00
Tarjei Husøy
316d581354
Throw error when setting invalid timezone
...
Closes #37685 .
2016-11-28 09:21:52 -08:00
m03
2aeaf553c8
Add tests
2016-11-28 07:33:01 -08:00
Daniel Boughton
ddc238df36
Fixed augeas_test.py to match True v.s. None for test_change_in_test_mode
2016-11-27 08:40:05 -05:00
Mike Place
f912b8cd02
Merge pull request #37880 from alexbleotu/vmware_connection_common_functions-gh
...
Vmware connection common functions gh
2016-11-27 12:55:34 +02:00
Pedro Algarvio
cbcd4ce123
Make terminate_process_pid
match latest form salt-testing.
...
Namely https://github.com/saltstack/salt-testing/commit/094d00784812
2016-11-24 13:19:56 +00:00
Alexandru Bleotu
39fe0b41b6
Added/updated tests for exception handling/get_root_folder change in utils.vmware.get_content
2016-11-24 05:53:51 -05:00
rallytime
3dfed6b841
Adjust linux_acl unit test argument ordering
2016-11-23 17:02:23 +00:00
twangboy
c11506333c
Fix some lint, fix a test
2016-11-22 10:05:49 -07:00
Alexandru Bleotu
ed64348502
Added tests for exception handling in utils.vmware.is_connection_to_a_vcenter
2016-11-22 09:08:06 -05:00
Alexandru Bleotu
3497d2344e
Added tests for exception handling in utils.vmware.get_service_instance
2016-11-22 09:08:06 -05:00
castor-morveer
6246a98cfa
Boto apigateway optional stacktrace in response mapping ( #37618 )
...
* adding optional response template parameters for normal and error cases
* making optional response templates affect checksum calculation in order to correctly determine if the service needs updating
* Remove trailing whitespace
* removing trailing whitespaces
* correcting invalid mock values in unit test code
2016-11-21 14:47:52 -07:00
Alexandru Bleotu
102b2b2e98
Vmware disconnect gh ( #37809 )
...
* Added utils.vmware.disconnect
- disconnects from a vCenter or ESXi host
* Added tests for salt.utils.vmware.disconnect
2016-11-21 13:25:16 -07:00
Moe
40af1857be
Add more aptpkg unit tests ( #37793 )
...
* Add more aptpkg unit tests
* Add test_refresh_db
2016-11-21 09:19:42 -07:00
Denys Havrysh
518a3dd7ee
Add unit tests for Salt parsers processing logging options
2016-11-21 16:53:29 +02:00
Benjamin J Cane
27c532b34c
Adding spacing for pylint
2016-11-18 16:26:54 -07:00
Benjamin J Cane
16222e1d05
Revising logic to account for cron.deny
2016-11-18 15:46:57 -07:00
rallytime
6479a22c1d
Merge branch '2016.11' into 'develop'
...
Conflicts:
- salt/modules/napalm_network.py
2016-11-18 07:50:16 -07:00
Benjamin J Cane
8c84fd2013
Merge remote-tracking branch 'salt-upstream/develop' into cron-non-root
2016-11-17 15:40:42 -07:00
rallytime
d5a7ef6ca8
Merge branch '2016.3' into '2016.11'
...
No conflicts.
2016-11-17 10:37:42 -07:00
Ch3LL
9ef41dcdfc
change size and image of joyent profile
2016-11-16 11:54:21 -07:00
Mike Place
3be9ab4cd0
Warn on AES test for systems with > 1 core ( #37724 )
...
* Warn on AES test for systems with > 1 core
* Whitespace fix
2016-11-16 09:44:33 -07:00
rallytime
1aa463b4c1
Merge branch '2016.3' into '2016.11'
...
No conflicts.
2016-11-16 09:27:06 -07:00
Mike Place
f3496297a6
Don't check archive if the archive can't be found ( #37723 )
...
Fixes possible false postive failure in archive test
2016-11-16 09:23:39 -07:00
rallytime
5f4a73f880
Merge branch '2016.11' into 'develop'
...
No conflicts.
2016-11-16 08:55:22 -07:00
Ch3LL
363122c675
add timeout increase on azure tests
2016-11-15 10:27:44 -07:00
twangboy
a0429cf839
Use nfsd instead of apsd for test_disabled
2016-11-15 09:44:42 -07:00
twangboy
053198aa45
Fix tab
2016-11-15 09:33:01 -07:00
Jenkins
384cf67de5
Use nfsd instead of apsd to test disabled
2016-11-15 09:25:28 -07:00
Mike Place
9738b6359f
Merge pull request #37671 from rallytime/merge-2016.11
...
[2016.11] Merge forward from 2016.3 to 2016.11
2016-11-15 20:01:09 +13:00
Mike Place
8687dbc3b2
Merge pull request #37689 from eradman/joyent
...
joyent: Handle error if deployment fails
2016-11-15 15:41:58 +13:00
Mike Place
c8fb487590
Added space for lint check in in-line comment
2016-11-15 13:56:47 +13:00
Mike Place
bc65697502
Require network for npm tests
2016-11-15 12:45:17 +13:00
Eric Radman
a42ca638ec
joyent: Properly handle error if deployment fails
...
Previous behavior if an invalid profile parameter was used:
TypeError: 'NoneType' object has no attribute '__getitem__'
New Behavior:
Error: There was a profile error: Failed to deploy VM
Also fix up some pylint complaints
2016-11-14 18:44:07 -05:00
Ch3LL
acd4c3061e
fix import for virtualbox test
2016-11-14 14:48:37 -07:00
kevin
1865b13645
Fix 'present' option when used without 'key_type'
2016-11-14 12:16:51 -07:00
rallytime
1b5f89577e
Merge branch '2016.11' into 'develop'
...
Conflicts:
- salt/cloud/clouds/vmware.py
2016-11-14 09:19:49 -07:00
rallytime
0e332ab591
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- salt/cli/batch.py
- salt/cli/salt.py
- salt/transport/client.py
- salt/utils/vmware.py
- tests/integration/modules/sysmod.py
2016-11-14 09:14:00 -07:00
m03
8cb794addb
Add initial aptpkg unit tests
2016-11-13 09:10:37 -08:00
Mike Place
305e51d1c0
Merge pull request #37625 from cachedout/issue_37492
...
Return with proper retcodes in batch mode
2016-11-12 20:29:09 +00:00
Benjamin J Cane
61afd6e69f
Revising for PEP8 checks
2016-11-11 14:11:16 -07:00
Benjamin J Cane
cf7585c9ab
Removing blank line for PEP compliance
2016-11-11 13:08:10 -07:00
Benjamin J Cane
e188e12bc9
Fixing merge conflict with latest from develop
2016-11-11 12:21:27 -07:00
Benjamin J Cane
405c3336aa
Revising cron state & module for OS agnostic support of cron when running as non-rootSquashed commit of the following:
...
commit d5003a44230f7bb6878057023726ba7135c9909c
Author: Benjamin J Cane <Benjamin.J.Cane@aexp.com>
Date: Fri Nov 11 10:22:21 2016 -0700
Revising cron state & module for OS agnostic support of cron when running as non-root
commit c9c20fc34670e1b371c505d8b7959ea00ae0a36e
Author: Benjamin J Cane <Benjamin.J.Cane@aexp.com>
Date: Thu Nov 10 15:47:04 2016 -0700
Re-adding removed comment
commit 4058bf3f609aeec11e0ff2a91191eba16556abf0
Author: Benjamin J Cane <Benjamin.J.Cane@aexp.com>
Date: Mon Nov 7 11:08:20 2016 -0700
Adding user to error message and fixing key error if there is no updates
commit 768e28e43585451a241979d048d5ac704f4f8f60
Author: Benjamin J Cane <Benjamin.J.Cane@aexp.com>
Date: Fri Nov 4 23:24:13 2016 -0700
Added try/except on group identification and refactored success messaging
commit d575189b17c1b75ef6d43b9ca821fb66aa142531
Author: Benjamin J Cane <Benjamin.J.Cane@aexp.com>
Date: Fri Nov 4 23:23:38 2016 -0700
Added try/except on group identification and refactored success messaging
commit 13a8207e5bc99044a3dfca4412e34ba9884d44a8
Author: Benjamin J Cane <Benjamin.J.Cane@aexp.com>
Date: Fri Nov 4 17:21:18 2016 -0700
Resolving group permissions issues when managing non-root crontabs
commit 89a7d1e04f21f1cbd93b83052cf47ba7a7225d72
Author: Benjamin J Cane <Benjamin.J.Cane@aexp.com>
Date: Fri Nov 4 12:32:55 2016 -0700
Adding unit tests for OS specific cron command string rules
commit b2a00009fda987474c40cee3f2ed8affe5f07f5b
Author: Benjamin J Cane <Benjamin.J.Cane@aexp.com>
Date: Wed Nov 2 09:10:06 2016 -0700
Fixing cron.file when running as non-root
commit ba27b18b01f304e541af8b6c7107596f34651123
Author: Benjamin J Cane <Benjamin.J.Cane@aexp.com>
Date: Fri Oct 28 10:58:03 2016 -0700
Removed OS specific logic to always run crontab commands as owner of cron
2016-11-11 10:36:48 -07:00
rallytime
b86e9270e7
Update "warn" to "warning" in verify_test
2016-11-11 09:05:44 -07:00
Mike Place
737436a463
Merge pull request #37146 from cachedout/master_pub_error_reporting
...
Master publish error reporting
2016-11-11 22:52:31 +13:00
Mike Place
b14faf1c68
Merge pull request #37611 from jeanpralo/fix-cmd-batch-raw
...
Fix cmd batch raw
2016-11-11 15:53:58 +13:00
Mike Place
4fab707bdd
Merge pull request #37627 from cachedout/pr-36706
...
Exempt pip.iteritems from test_valid_docs test
2016-11-11 15:48:37 +13:00
Mike Place
94df2f8e6f
Exempt pip.iteritems from test_valid_docs test
2016-11-11 15:47:43 +13:00
Mike Place
2c2dc93640
Fix test and check for jid not in pub_data
2016-11-11 15:37:47 +13:00
Jean Praloran
4f16840ef1
add integration test for salt.client.LocalClient.cmd_batch
2016-11-11 14:20:51 +13:00
Mike Place
b6031524e5
Return with proper retcodes in batch mode
...
Check for the highest retcode received in batch mode and exit with it.
Also, an integration test for the same.
Closes #37492
2016-11-11 14:03:29 +13:00
rallytime
4c245a3fa5
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- salt/modules/x509.py
2016-11-10 16:51:52 -07:00
rallytime
7b2341bbfd
Merge branch '2016.11' into 'develop'
...
Conflicts:
- doc/topics/releases/releasecandidate.rst
- salt/modules/file.py
- salt/states/file.py
- salt/utils/network.py
2016-11-10 15:59:51 -07:00
Mike Place
403b469aea
Merge pull request #37601 from eradman/random_org
...
Skip random.org tests for any communication failure
2016-11-11 10:52:25 +13:00
Eric Radman
671cebfa30
Skip random.org tests for any communication failure
...
This test connects to random.org, which may throws the following error
on one network I manage:
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
Other errors are possible, such as `socket.error`. Since it is
difficult to anticipate the failure mode, skip these tests if https
communication provokes any exception.
Also, this is not a unit test--it's more of a system test. My
recommendation that we recategorize this as an integration test where
global IPv4 routing can more reasonably expected.
2016-11-10 07:48:24 -05:00
Eric Radman
b19440418d
Fixes to unit tests ( #37586 )
...
Add skipIf pyvmomi is not installed
NameError: global name 'vmodl' is not defined
NameError: global name 'vim' is not defined
Fix skipIf typo for OpenBSD
>>> import sys
>>> sys.platform
'openbsd6'
Avoid warning from glusterfs.py:
Use specific 'len(elem)' or 'elem is not None' test
Enable boto_secgroup_test tests that work now:
test skipped due to error in moto return - fixed in
cc01669643
2016-11-09 13:58:08 -07:00
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
msiebeneicher
c787285955
fixed failing import
2016-11-09 13:39:24 +01:00
msiebeneicher
5428ed5d8c
Merge branch 'develop' of https://github.com/saltstack/salt into improvement/fix_log_output_for_json_and_yaml
...
* 'develop' of https://github.com/saltstack/salt : (72 commits)
Remove known issues section for rc2 (#37569 )
Update release candidate docs with RC2 info (#37564 )
sqlite is not found in 2015.8 (#37549 )
Use 'driver' instead of 'provider' in test cloud configs (#37547 )
Added pillar_enc variable to orchestrate to be passed through
Lint
Cache tests
Add unit tests for minion targeting
Slight grammar fix
Pylint fixes
refresh_pillar() should be called always
Improvements and bug fixes: - Ensure all keys in nested dicts under the data payload have dots replaced with underscores and store original key for reference - Replace use of config.option execution module which does not support ":" path syntax with salt.returners.get_returner_options() so config options are actually obtained - Fixed use of datetime module in date_index mode so functions are loaded properly
Pylint fix for develop (#37513 )
Saltstack PPA is no longer maintained
allow selection by id
Update vmware.py
handle other Solaris-like distributions that use pkgsrc the same as SmartOS
Fix some lint
Clean up docs
Fix some syntax errors, string type checks
...
2016-11-09 11:53:34 +01: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
Eric Radman
4cd92980d8
Use 'driver' instead of 'provider' in test cloud configs ( #37547 )
...
Running the tests currently provokes a warning from
salt/config/__init__.py:│2275 ("'provider' will be
deprecated in the Nitrogen release")
2016-11-08 09:50:39 -07:00
Mike Place
610a198322
Lint
2016-11-08 19:40:48 +13:00
Mike Place
3e848ad126
Cache tests
2016-11-08 18:49:10 +13:00
Mike Place
efef3948ad
Add unit tests for minion targeting
2016-11-08 16:27:36 +13:00
rallytime
2e68da3e52
Merge branch '2016.11' into 'develop'
...
Conflicts:
- doc/topics/cloud/vmware.rst
- salt/cloud/clouds/vmware.py
2016-11-07 08:22:17 -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
33d0789f6e
Merge pull request #37348 from alexbleotu/create_cluster-gh
...
Create cluster gh
2016-11-06 15:02:41 +13: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
Mike Place
b678e7353d
Merge pull request #37465 from lorengordon/jinja-filters
...
Adds a couple handy jinja filters, `escape_regex` and `unique`
2016-11-06 14:54:20 +13:00
Mike Place
9ce38fd4d6
Merge pull request #37466 from alexbleotu/test_rename-gh
...
Renamed salt.utils.vmware.update_cluster tests
2016-11-06 14:52:55 +13:00
Mike Place
9e4e936f4f
Merge pull request #37473 from m03/fix-167-logrotate-state_2
...
Fix #167 - Add logrotate state module
2016-11-06 14:45:15 +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
ce4b82fdee
Merge branch '2016.11' into 'develop'
...
Conflicts:
- salt/modules/archive.py
- salt/modules/status.py
- salt/states/file.py
- tests/unit/modules/status_test.py
2016-11-04 13:51:46 -06:00
rallytime
4132929832
Merge branch 'carbon' into '2016.11'
...
No conflicts.
2016-11-04 13:38:34 -06:00
m03
466efd3f55
Change test str to int for consistency
2016-11-04 09:43:02 -07: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
Loren Gordon
20eb0bf347
Adds a set theory jinja filter unique
2016-11-04 10:14:24 -04:00
Alexandru Bleotu
b3404ae7a2
Renamed salt.utils.vmware.update_cluster tests
2016-11-04 09:57:23 -04:00
Loren Gordon
f1beaa0ef4
Adds a jinja filter regex_escape
...
Fixes #37429
2016-11-04 09:54:54 -04:00
Alexandru Bleotu
e126619405
Added tests for utils.vmware.create_cluster
2016-11-04 09:52:25 -04:00
msiebeneicher
1169cc3a11
reverted json log changes part2
2016-11-04 11:16:08 +01:00
msiebeneicher
9a1a23fca5
reverted json log changes
2016-11-04 11:09:45 +01:00
msiebeneicher
a742575b19
reintegrate develop branch
2016-11-04 11:07:17 +01: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
Mike Place
898d28d2c9
Merge pull request #37237 from lyft/add-kinesis-support
...
Add Amazon Kinesis support via boto3
2016-11-04 18:30:43 +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
msiebeneicher
a1949dac9e
fixed json_out unit tests after latest change
2016-11-03 17:20:47 +01: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
Mike Place
60b5085696
Merge pull request #37315 from svenauhagen/feature/iptables
...
iptables changes for match recent
2016-11-03 13:16:49 +13:00
Mike Place
f00dc3e382
Remove trailing whitespace
2016-11-03 13:16:41 +13:00
Mike Place
51584c6ef5
Merge pull request #37405 from Tanoti/state_grains_exists
...
Add state.grains.exists and unit tests
2016-11-03 11:58:06 +13: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
Alexandru Bleotu
c68281b9fa
Get cluster gh ( #37310 )
...
* Added utils.vmware.get_cluster
- retrieves a cluster in datacenter based on its name
* Added tests for utils.vmware.get_cluster
2016-11-02 08:28:41 -06:00
Tanoti
3293340679
Add state.grains.exists and unit tests
2016-11-02 11:32:05 +00: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
Ethan Devenport
21e24a8125
Cloud API v3 updates including:
...
* Added server availability zone parameter.
* Added volume availability zone parameters.
* Added NAT parameter for private NIC.
* Updated documentation.
2016-11-01 21:37:53 +00:00
rallytime
fd380c79b9
Add test case to reproduce dnsmasq.set_config failure in #34263
2016-11-01 14:31:14 -06:00
rallytime
e57fb947c6
Merge branch '2016.11' into 'develop'
...
Conflicts:
- salt/modules/status.py
2016-11-01 12:56:04 -06:00
Sven Auhagen
7c6ff77c98
Fix name_, for loop and add test cases
2016-11-01 19:32:49 +01: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
Alexandru Bleotu
b0aaebaab8
Update cluster gh ( #37347 )
...
* Added utils.vmware.update_cluster
- updates an existing cluster based on a configuration spec
* Added tests for utils.vmware.update_cluster
2016-11-01 09:01:20 -06:00
Mike Place
d69142a3a7
Fix status test
...
Correctly raise expected exception
2016-11-01 12:06:20 +13: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
eaafb29ff2
Merge pull request #37321 from sjorge/carbons-status-uptime
...
Carbons status uptime
2016-11-01 00:29:17 +13:00
Mike Place
7d7941598e
Merge branch 'carbon' into carbon_develop
2016-10-31 23:57:16 +13: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
Super-User
d73c748907
Figured out why there was a cmd.run mock was there.
2016-10-31 09:57:05 +01: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
Super-User
9d05c6aaaa
status.uptime - attempt to fix sunos test
2016-10-31 08:31:19 +01:00
m03
4c6317fdc7
Better return data from logrotate module
2016-10-30 01:29:52 -07:00
Super-User
b12d19e339
status.uptime - push tests from @jfindlay with updates SunOS test
2016-10-30 00:17:48 +02:00
rallytime
8d3957f250
Merge branch 'carbon' into 'develop'
...
Conflicts:
- salt/cloud/clouds/vmware.py
- salt/modules/boto_ec2.py
- salt/modules/cmdmod.py
- salt/modules/win_lgpo.py
2016-10-28 11:58:41 -06:00
Eric Radman
f42480a1a9
Joyent: wait for node state to flip to 'ready' ( #37305 )
...
When provisioning a SmartOS machine on Joyent using salt-cloud, the IP
is often set before SSH is fully configured. This can result in a
successful SFTP transfer, followed by a failure to run
salt-bootstrap.sh.
2016-10-28 09:32:54 -06: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
Alexandru Bleotu
a777d6eced
Get managed object name gh ( #37276 )
...
* Added get_managed_object_name to optimally retrieve a managed object's name
* Added tests for get_managed_obect_name
2016-10-27 16:27:27 -06: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
85bef69ce4
Merge pull request #37248 from alexbleotu/get_properties_of_managed_object-gh
...
Get properties of managed object gh
2016-10-27 15:16:27 +09:00
Mike Place
f2538206f9
Merge pull request #37249 from alexbleotu/zeromq_failing_test-gh
...
Increased timeout to test_badload zeromq test
2016-10-27 15:15:51 +09:00
rallytime
190ec32283
Merge branch 'carbon' into 'develop'
...
Conflicts:
- doc/topics/cloud/vmware.rst
- salt/cloud/clouds/vmware.py
2016-10-26 10:09:26 -06:00
Alexandru Bleotu
1a96f11269
Increased timeout to test_badload zeromq test
2016-10-26 08:04:42 -04:00
Alexandru Bleotu
c0b45afa54
Added tests for salt.utils.vmware.get_properties_of_managed_object
2016-10-26 06:37:32 -04:00
Mike Place
05079a206a
Merge branch 'carbon' into carbon_develop
2016-10-26 14:12:37 +09:00
Mike Place
afd3dc3807
Merge branch '2016.3' into 2016_3_carbon
2016-10-26 14:08:03 +09:00
Mike Place
fa20c4c128
Merge pull request #37223 from alexbleotu/get_service_instance_from_managed_object-gh
...
Get service instance from managed object gh
2016-10-26 10:35:02 +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
a9da340759
Merge branch 'carbon' into 'develop'
...
No conflicts.
2016-10-25 10:40:15 -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
Alexandru Bleotu
ac451002dd
Added tests for get_service_instance_from_managed_object
2016-10-25 11:21:32 -04: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
Megan Kercher
f8e95a9813
finish present unit test, bugfix present ret
2016-10-24 15:11:11 -07:00
Megan Kercher
ce76611c35
get absent test working
2016-10-24 11:45:32 -07:00
Megan Kercher
b2e76a3cc0
edit comments, most of unit test:
2016-10-24 11:14:53 -07: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
70851807bd
Merge branch 'carbon' into 'develop'
...
Conflicts:
- salt/modules/status.py
2016-10-24 09:35:00 -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
Eric Radman
30146115ee
Update configuration examples for Joyent ( #37153 )
...
* 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-22 07:58:46 -06: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
rallytime
db3150b3f1
Merge branch 'carbon' into 'develop'
...
Conflicts:
- doc/topics/installation/windows.rst
2016-10-21 15:19:16 -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
Mike Place
430ea9e780
Revert "Fix integration tests launching - remove redundant "config_dir" argument in call to ShellTestCase.run_run from SaltDaemonScriptBase._wait_until_running"
2016-10-20 19:48:59 +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
Mike Place
d97f649557
Merge pull request #37066 from Unity-Technologies/feature/powercfg_schemes
...
Allowed for specifying the scheme for powercfg
2016-10-19 11:39:02 +09:00
rallytime
bab91dbe91
Don't compare a (0,) object to None in skipIf
...
We should check to make sure the version is > 0 to run the test
2016-10-18 10:22:31 -06:00
rallytime
ec7626d6ea
Revert "Spelling fix: the module is named dockerng, not just docker."
...
This reverts commit 94f72813c27299994e6522480bab760ca9f22878.
2016-10-18 09:49:07 -06:00
rallytime
fe2a6dbc7f
Spelling fix: the module is named dockerng, not just docker.
2016-10-18 09:49:07 -06:00
rallytime
a45b75cd9c
Pylint fix: remove extra comma
2016-10-18 09:49:07 -06:00
rallytime
beed75ef39
Just use nested with statements so the test will work on all Pythons
2016-10-18 09:49:07 -06:00
rallytime
5e2f20ad37
Maintain two different tests for Py2 vs 3 in dockerng_test file
2016-10-18 09:49:07 -06:00
Mike Place
4b6838baf9
Fix Docker test for Py3
...
Move to Py3-compat nested context manager approach.
Fix bug in thin generation where non-abs paths were not avoided.
2016-10-18 09:49:07 -06: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
msiebeneicher
04d5b1852f
updated test_list_json_out test
2016-10-18 10:58:38 +02:00
msiebeneicher
d05ef0b209
Merge remote-tracking branch 'remotes/upstream/develop' into improvement/fix_log_output_for_json_and_yaml
...
* remotes/upstream/develop: (257 commits)
Removed extra whitespace
add the ability to verify github webhook hmac signatures
Improve the sparse docs on python renderer
Remove trailing whitespace
Letsencrypt has been renamed to certbot
Add support for standalone mode
Pass --quiet to suppress the certbot/letsencrypt dialog
Fix failing network unit test (#37033 )
Use a default prefix for the mkstemp utils function (#37022 )
CkMinions.connected_ids fix: continue if cache.fetch raises exception
fire on local (#37015 )
document master_type disable (#37014 )
opkg module: Add 'version', 'reinstall', and 'only_upgrade' to install (#37008 )
Keep minion schedule when recreate loaders. (#37004 )
Fix lint
opkg: Support ignore_epoch argument in version comparisons (#37007 )
Revert "[2016.11.0rc1] (re)introduce minimal weighing to get_fqhostname"
add webhook engine
Versionadded for process_dependency_links kwarg in virtualenv_mod state (#37006 )
Versionadded tag for new update_head option in hg state (#37005 )
...
2016-10-18 10:43:02 +02:00
Daniel Hobley
a133a2466e
Allowed for specifying the scheme for powercfg
2016-10-18 09:49:07 +02:00
Mike Place
202414c88b
Merge pull request #37024 from gtmanfred/hashutil
...
add the ability to verify github webhook hmac signatures
2016-10-18 10:55:28 +09:00
twangboy
b3b688e298
Fix tests
2016-10-17 13:31:55 -06:00
rallytime
6d0cedcadd
Merge branch 'carbon' into 'develop'
...
No conflicts.
2016-10-17 09:06:12 -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
Daniel Wallace
a7f8ca0a84
add the ability to verify github webhook hmac signatures
2016-10-17 07:57:47 -05:00
Denys Havrysh
94a34a08ba
cp.get_url: add integration tests
2016-10-17 15:46:49 +03:00
Mike Place
9893717c09
Merge pull request #36992 from zhihan/fix-mac-package-wildcard
...
Fix mac_package wildcard install error on mac
2016-10-17 19:38:12 +09:00
Erik Johnson
1caf1f6770
Use a default prefix for the mkstemp utils function ( #37022 )
...
* Move salt.utils.mkstemp() into salt.utils.files
Also use a default prefix
* update refs to salt.utils.mkstemp
* Update test to use new path to mkstemp helper func
2016-10-16 16:12:56 -06:00
rallytime
b7d9bf0281
Merge branch 'carbon' into 'develop'
...
No conflicts.
2016-10-14 12:06:31 -06: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
Daniel Hobley
0aa6ecfb7f
Add the option to skip updating the head for a hg latest state ( #37002 )
...
- Updated hg state tests
2016-10-14 09:07:33 -06:00
Zhi Han
3ddddd82b7
Fix mac_package wildcard install error on mac
2016-10-13 21:29:40 -04: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
Amir Pakdel
d7cfcf4135
Whitespace bugfix in linux acl.getfacl ( #36827 )
...
* Whitespace bugfix in linux acl.getfacl
It is a trivial fix
* Whitespace bugfix in linux acl.setfacl
Also updated tests
* Linting
2016-10-13 15:14:09 -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
Nicole Thomas
7cbe2ced02
Merge pull request #36974 from rallytime/merge-develop
...
[develop] Merge forward from carbon to develop
2016-10-13 12:58:30 -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
c4dc0dd2ef
Merge branch 'carbon' into 'develop'
...
No conflicts.
2016-10-13 11:14:36 -06:00
Jorge Schrauwen
374d4038d3
[develop] grains should have some information about zpools if available ( #36839 )
...
* grains should have some information about zpools if available
* Add __opts__ as a global variable so test do not fail.
* fix lint error
2016-10-13 11:04:38 -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
rallytime
0a5b1f5466
Merge branch 'carbon' into 'develop'
...
No conflicts.
2016-10-13 09:58:18 -06:00
Nicole Thomas
a2206e805f
Merge pull request #36938 from wanparo/develop
...
acl.delfacl: fix position of -X option to setfacl
2016-10-13 08:53:34 -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
Andrew Pashkin
304516420c
Fix integration tests launching - remove redundant "config_dir" argument in call to ShellTestCase.run_run from SaltDaemonScriptBase._wait_until_running ( #36875 )
...
* Add Visual Studio Code related directory .vscode/ to .gitignore
* Fix integration tests launching - remove redundant "config_dir" argument in call to ShellTestCase.run_run from SaltDaemonScriptBase._wait_until_running
2016-10-12 13:20:30 -06:00
rallytime
32846794c8
Update mocks for failing tests in win_certutil_test
2016-10-12 11:31:58 -06:00
rallytime
29d299d23b
Adjust linux_acl unit test argument ordering
2016-10-12 10:57:42 -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
msiebeneicher
db19e31038
fixed integration tests after json output change
2016-10-12 16:05:29 +02:00
msiebeneicher
9e264812cb
unify json output tests for different plattform / lib versions
2016-10-12 12:39:48 +02:00
msiebeneicher
bac1d0fc28
unify json output tests for different plattform / lib versions
2016-10-12 12:15:08 +02:00
msiebeneicher
07f103954b
fixed pylint issues
2016-10-12 10:14:45 +02:00
rallytime
55fe0aa2e4
Merge branch 'carbon' into 'develop'
...
No conflicts.
2016-10-11 17:22:12 -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
Jorge Schrauwen
8b9648cd97
[develop] salt.modules.at was hopelessly broken on Solaris-like platforms ( #36873 )
...
* disable current at module on solaris, only compute job_kw_regtex once
* provide at_solaris (virtual=at) for Solaris-like systems
* add proper maintainer header
* forgot to update the docs again
* add notice that at module only works on linux, openbsd, and freebsd
* salt.states.at needed a lot of love
* update at_state checks to pass valid date to at.at, at.jobcheck, at.atrm,...
* today I learn about mod_watch, and I want it for at
2016-10-11 10:33:40 -06:00
Tim Fechner
7547761acc
Fix #36461 , AttributeError because of .lower() ( #36462 )
...
* Fix #36461 , AttributeError because of .lower()
* Add tests
2016-10-11 10:29:22 -06:00
Alexandru Bleotu
6c441cb288
Create datacenter gh ( #36826 )
...
* Added salt.utils.create_datacenter that creates a VMWare datacenter
* Added tests for salt.utils.vmware.create_datacenter
2016-10-11 08:49:53 -06:00
rallytime
c09b9d6e6a
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-10-10 10:21:04 -06:00
rallytime
d07f5612ee
Merge branch 'carbon' into 'develop'
...
No conflicts.
2016-10-10 10:18:02 -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
msiebeneicher
6bde592070
providing yaml output unit tests
2016-10-07 16:52:53 +02:00
msiebeneicher
63adf6c7e7
updated json output unit tests and added method exist check
2016-10-07 16:39:11 +02: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
Mike Place
34007be671
Merge branch 'carbon' into carbon_develop
2016-10-06 00:23:22 +09:00
Maxime Guillet
b59c23bef1
Fix one remaining postgresql tests linked to #36787 .
2016-10-05 17:05:10 +02:00
Mike Place
53f1523cb8
Merge pull request #36790 from cachedout/pr-36727
...
Merge forward carbon to develop
2016-10-05 23:57:23 +09: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
Mike Place
aa7bfb422c
Merge pull request #36578 from lomeroe/add_states_retry_option
...
add global 'retry' option to state processing
2016-10-05 22:47:57 +09: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
Mike Place
71e35d3c82
Check for a second place a transient error can occur in an SSH test
2016-10-05 16:32:57 +09:00
Ethan Moore
2ad701784a
add integration tests for retry state option
2016-10-04 20:06:59 +00: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