rallytime
1d819d7cc2
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-08-22 09:29:13 -06:00
Mike Place
187e04e109
Merge pull request #35653 from cachedout/set_computer_desc_retcode
...
Switch to retcode evaluation for set_computer_desc
2016-08-22 20:54:22 +09:00
Mike Place
6e1dcb94ec
Account for differences in output
2016-08-22 20:54:03 +09:00
Mike Place
2708fbc6d2
Lint
2016-08-22 19:00:19 +09:00
Mike Place
19b77442ee
Test a fix for the wheel test
...
I think that what is happening here is that we're using stale grains from a previous test. This should hopefully refresh them and allow this test to succeed.
2016-08-22 17:13:16 +09:00
Mike Place
5b75786208
Switch to using skipIf instead of a custom decorator
2016-08-22 16:36:51 +09:00
Mike Place
928a5fc3be
Lint
2016-08-22 16:12:09 +09:00
Mike Place
034a353689
Use skipIf properly
2016-08-22 16:11:01 +09:00
Mike Place
844a7577db
Remove disabled decorator
2016-08-22 16:04:13 +09:00
Mike Place
092aa89777
Add final args to disable event printing for wheel
2016-08-22 14:51:47 +09:00
Mike Place
2992bb8abc
Fix args err in wheel test
2016-08-22 13:31:23 +09:00
Mike Place
b4f71e0260
Support the supression of prints in the wheel module
...
This will clean up all those pesky key output issues in the wheel tests.
2016-08-22 13:11:38 +09:00
Mike Place
7f137835b9
Merge pull request #35626 from cachedout/better_cleanup_for2731
...
Wrap the test in a try/finally to ensure that the keys get cleaned up.
2016-08-22 12:38:17 +09:00
Mike Place
9248ce07f9
Lint
2016-08-22 12:33:24 +09:00
Mike Place
00a419fdf7
Merge pull request #35629 from cachedout/loosen_wheel_test
...
Just check for keys, not compare all keys for wheel netapi test
2016-08-22 12:32:11 +09:00
Mike Place
b09fd9c741
Merge pull request #35632 from s0undt3ch/develop
...
Fix hang on test suite termination
2016-08-22 12:31:08 +09:00
Mike Place
7e8721b4c2
Fix wheel test to call correct wheel function
...
This was not causing a test failure because no asserts were being
made but it was throwing exceptions silently. This cleans that up.
2016-08-22 11:44:50 +09:00
Pedro Algarvio
f7693f306c
Apply child processes cleanup counter measure on testprogram too.
...
Additionally, avoid timeout exceptions with registered atexit calls for testprogram(s)
2016-08-22 00:36:53 +01:00
Pedro Algarvio
33a6e75142
Log the cmdline instead. Better nuke approach.
2016-08-22 00:36:47 +01:00
Mike Place
a85ab3e59c
Just check for keys, not compare all keys for wheel netapi test
2016-08-21 22:17:27 +09:00
Mike Place
ea8fb37b48
Wrap the test in a try/finally to ensure that the keys get cleaned up.
...
We're seeing the keys appear later on in some tests, such as here:
integration.modules.saltutil.SaltUtilModuleTest.test_wheel_just_function
2016-08-21 20:22:26 +09:00
Mike Place
c4ea3cd073
Fix cache test on develop
2016-08-21 13:35:27 +09:00
Mike Place
520019f9a4
Provide a cleaner error for older versions of salt-testing for runTest()
2016-08-20 22:22:52 +09:00
Mike Place
8e784c6e80
Merge pull request #35554 from cachedout/git_test_py3
...
Fix git module test for py3
2016-08-20 22:17:13 +09:00
Mike Place
b282d877e6
Merge pull request #35482 from raazvvann/dev/rheghedu/system-comments
...
Add linux support for {get,set}_computer_desc CONTINUED
2016-08-20 11:44:25 +09:00
Mike Place
e7405258d4
Merge pull request #35499 from cro/returner_self_destruct
...
Returner self destruct
2016-08-20 11:42:03 +09:00
Mike Place
b9673b8b35
Str subst
2016-08-20 10:58:45 +09:00
Mike Place
37075ca229
Merge pull request #35557 from 10ne1/dev/ionel/fix-integration-test-tmpdir-cleanup
...
tests/integration: wait for test children to terminate
2016-08-20 10:57:22 +09:00
jmacfar
bd70a12ec6
Pass makedirs through to fileclient
...
Integration tests for get_url makedirs=True
2016-08-19 12:18:05 -05:00
rallytime
30f42d5352
Write test for multiple unless commands where 1st cmd passes and 2nd fails
...
This is a regression integration test for #35384 , which was fixed by #35545 ,
and back-ported to the 2015.8 branch in #35566 .
2016-08-18 11:04:08 -06:00
Mike Place
38630455ec
Don't open files in text files in binary mode in pip test ( #35553 )
...
Python 3 is picky about this sort of thing
2016-08-18 09:41:19 -06:00
Heghedus Razvan
46696794ab
Add integration test for {get/set}_computer_desc
...
Signed-off-by: Heghedus Razvan <razvan.heghedus@ni.com>
2016-08-18 17:03:26 +03:00
Ioan-Adrian Ratiu
0561aaf139
tests/integration: wait for test children to terminate
...
This is a fix for salt github issue #35028 .
Commit b02926f41c
("Immediate shutdown") removed the join() call
when stopping the daemon process, thus triggering a race between the
tmpdir cleanup logic and running children who still have data to
write. By re-adding the join() call we ensure all children finish
before the tmpdir gets removed. Children should normally be dead when
the call from join() returns, the SIGKILL logic after join() is for
cleaning up hanged processes.
Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
2016-08-18 14:43:50 +03:00
Mike Place
ca045f4feb
Fix git module test for py3
...
Simple binary compat fixes in version compare
2016-08-18 19:56:00 +09:00
Mike Place
9279d6b6eb
Merge pull request #35496 from StackPointCloud/profitbricks-cloud-improvements
...
ProfitBricks cloud provider features and improvements
2016-08-18 09:39:02 +09:00
rallytime
d2340a0aad
Merge branch '2016.3' into 'develop'
...
Conflicts:
- pkg/windows/build.bat
- pkg/windows/build_pkg.bat
- tests/runtests.py
2016-08-17 12:13:26 -06:00
twangboy
1b85aa82a3
Remove unused skipIf import
2016-08-17 10:41:46 -06:00
twangboy
bd2c05b988
Fix skipped windows tests
2016-08-17 10:41:46 -06:00
rallytime
c305d8d99b
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- doc/conf.py
- tests/runtests.py
2016-08-17 10:37:57 -06:00
Erik Johnson
235c9f5fe2
Close file descriptor for temp file
2016-08-17 10:37:46 -06:00
twangboy
4fc64e9e7a
Add missing skipIf import
2016-08-17 10:37:46 -06:00
twangboy
ff96a88374
Fix/Skip tests
2016-08-17 10:37:46 -06:00
Mike Place
9f87081cef
Merge pull request #35302 from Ch3LL/add_job_cache_test
...
Add job cache test
2016-08-17 19:45:28 +09:00
Ch3LL
ccb2a5cadf
remove unused imports
2016-08-16 15:21:20 -06:00
Ch3LL
512ae81dfd
remove TMP and add integration.TMP
2016-08-16 15:18:24 -06:00
C. R. Oldham
f10ac3d126
Archiver is no longer a runner
2016-08-16 14:37:02 -06:00
Ethan Devenport
de42b0135c
Added new features and improvements to the ProfitBricks provider including:
...
* Refactored LAN and NIC provisioning to use a more efficient composite server request.
* Added support for new INTEL_XEON and AMD_OPTERON CPU family types.
* Allow additional data volumes can be created and attached to servers.
* Added public and private network firewall rules.
* Added preliminary support for loadbalancers CLI functions.
* Corrected ProfitBricks name topic index.
* Updated ProfitBricks provider documentation.
* Updated provider integration test configs.
* PEP8 clean up.
2016-08-16 20:07:42 +00:00
rallytime
49179ac401
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/modules/win_pkg.py
- tests/integration/files/conf/master
2016-08-16 12:52:20 -06:00
rallytime
c6c82be1de
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/cloud/deploy/bootstrap-salt.sh
2016-08-16 11:02:05 -06:00
C. R. Oldham
32fb152ef7
Test improvement.
2016-08-16 10:33:26 -06:00
C. R. Oldham
9ff22fd4f1
WIP MySQL returner archiver
2016-08-16 10:33:26 -06:00
Mihai Dinca
b0f0b4effc
Make sha256 the default hash_type
2016-08-15 10:02:19 +02:00
rallytime
a3a5496d0f
Fix some items that went awry in the merge
2016-08-12 17:06:27 -06:00
rallytime
1fe0b69a6c
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/modules/blockdev.py
- salt/modules/ddns.py
- salt/modules/inspectlib/collector.py
- salt/modules/linux_sysctl.py
- salt/modules/status.py
- salt/modules/x509.py
- salt/utils/process.py
- salt/utils/verify.py
- tests/integration/__init__.py
- tests/integration/modules/state.py
- tests/integration/states/cmd.py
2016-08-12 16:21:58 -06:00
Mike Place
3646cf1afa
Additional checks on master and integration test
2016-08-12 20:06:20 +09:00
Mike Place
fc0d5878bc
Set file_recv on test master
2016-08-12 19:08:27 +09:00
rallytime
cf038ee3fe
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/grains/core.py
- salt/modules/file.py
- salt/modules/hosts.py
- salt/modules/inspectlib/collector.py
- salt/modules/portage_config.py
- salt/modules/x509.py
- salt/scripts.py
- tests/integration/shell/enabled.py
2016-08-11 11:33:54 -06:00
Erik Johnson
a375dd7e1f
Clean up open filehandles ( #35359 )
...
* salt/crypt.py: clean up open filehandles
* salt/fileclient.py: clean up open filehandles
* salt/grains/core.py: clean up open filehandles
* salt/modules/cp.py: clean up open filehandles
* salt/modules/data.py: clean up open filehandles
* salt/modules/dnsutil.py: clean up open filehandles
* salt/modules/dockerng.py: clean up open filehandles
* salt/modules/inspectlib/collector.py: clean up open filehandles
* salt/modules/file.py: clean up open filehandles
* salt/modules/hosts.py: clean up open filehandles
* salt/modules/incron.py: clean up open filehandles
* salt/modules/dpkg.py: clean up open filehandles
* salt/modules/linux_sysctl.py: clean up open filehandles
* salt/modules/netbsd_sysctl.py: clean up open filehandles
* salt/modules/network.py: clean up open filehandles
* salt/modules/nftables.py: clean up open filehandles
* salt/modules/openbsd_sysctl.py: clean up open filehandles
* salt/modules/rh_ip.py: clean up open filehandles
* salt/modules/portage_config.py: clean up open filehandles
* salt/modules/status.py: clean up open filehandles
* salt/modules/tls.py: clean up open filehandles
* salt/modules/xapi.py: clean up open filehandles
* salt/modules/x509.py: clean up open filehandles
* salt/modules/virt.py: clean up open filehandles
* salt/modules/zcbuildout.py: clean up open filehandles
* salt/returners/local_cache.py: clean up open filehandles
* salt/utils/cloud.py: clean up open filehandles
* salt/states/pkgrepo.py: clean up open filehandles
* salt/states/x509.py: clean up open filehandles
* salt/transport/mixins/auth.py: clean up open filehandles
* salt/utils/__init__.py: clean up open filehandles
* salt/states/pkg.py: clean up open filehandles
* salt/utils/minion.py: clean up open filehandles
* salt/utils/openstack/nova.py: clean up open filehandles
* salt/utils/openstack/swift.py: clean up open filehandles
* salt/utils/process.py: clean up open filehandles
* salt/utils/templates.py: clean up open filehandles
* salt/utils/virt.py: clean up open filehandles
* tests/integration/__init__.py: clean up open filehandles
* tests/integration/cli/grains.py: clean up open filehandles
* tests/integration/client/standard.py: clean up open filehandles
* tests/integration/modules/hosts.py: clean up open filehandles
* tests/unit/utils/vt_test.py: clean up open filehandles
* tests/integration/shell/enabled.py: clean up open filehandles
* tests/integration/states/cmd.py: clean up open filehandles
* tests/integration/states/file.py: clean up open filehandles
* tests/integration/states/match.py: clean up open filehandles
* tests/unit/config_test.py: clean up open filehandles
* tests/unit/templates/jinja_test.py: clean up open filehandles
* tests/unit/utils/find_test.py: clean up open filehandles
* tests/integration/modules/state.py: clean up open filehandles
* Update dnsutil_test to reflect changes in fopen usage
2016-08-11 10:45:24 -06:00
rallytime
a651962e95
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-08-10 10:02:03 -06:00
Erik Johnson
243909f39d
file.recurse: Do not convert octal mode string to int ( #35309 )
...
* Add integration test for #34945
* file.recurse: Do not convert octal mode string to int
When we run file.makedirs_perms to create the dest directory, we pass
through the mode to file.check_perms. However, file.check_perms expects
an octal string, not an int. This causes the initial directory to be
chmod'ed to the wrong mode. When there are files in the source
directory, file.recurse will invoke the file.directory state to manage
files/dirs in that directory, and this ends up correcting the mode as we
simply pass the dir_mode to it. However, when there are only directories
in the source directory, this never happens and the incorrect mode
remains on the destination directory.
Fixes #34945 .
2016-08-09 13:02:26 -06:00
Ch3LL
7316df7a02
fix pylint
2016-08-09 10:35:01 -06:00
Ch3LL
50a4f0fe6a
fix comment
2016-08-09 09:26:51 -06:00
Mike Place
a3e29c8274
Final check for running procs ( #35292 )
...
* Final check for running procs
This does a final check to kill any running procs that are lingering.
* Lint
2016-08-09 08:48:06 -06:00
Mike Place
15d088c15f
Avoid str to bytes join in test util ( #35295 )
...
Fixes some shell.call tests.
2016-08-09 08:47:34 -06:00
Mike Place
7310921f81
Merge pull request #35277 from plastikos/bug-testprogram_env_pythpath
...
Joining sys.path is redundant and causes the string result to be split and re-joined.
2016-08-09 09:10:11 +09:00
Ch3LL
6837acf742
add job cache integration tests
2016-08-08 17:01:02 -06:00
rallytime
de4b33f2e1
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/client/ssh/__init__.py
- salt/client/ssh/shell.py
- salt/config/__init__.py
- salt/grains/core.py
- salt/utils/gitfs.py
2016-08-08 12:34:23 -06:00
Thayne Harbaugh
5fb3f025e4
Joining sys.path is redundant and causes the string result to be split and re-joined.
2016-08-08 11:31:17 -06:00
rallytime
2b4c156df1
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/client/ssh/__init__.py
- salt/grains/core.py
- salt/output/highstate.py
2016-08-08 11:15:43 -06:00
Jeff
abb72e478f
Revert b00b3c4
(but keep addition to allow_failure list in test_valid_docs())
2016-08-06 20:10:06 +08:00
Mike Place
74f7fc0fc0
Merge pull request #35186 from terminalmage/py3-tests-integration-loader
...
Make integration.loader tests PY3-compatible
2016-08-06 17:42:41 +09:00
Erik Johnson
e2e8bbbfde
Add integration test for #35214
2016-08-05 20:47:24 -05:00
rallytime
807c1729ba
PY3: Use assertCountEqual instead of assertItemsEqual
...
assertItemsEqual is deprecated in Python 3 and replaced by assertCountEqual
2016-08-04 15:13:08 -06:00
rallytime
2d5d5fe7f9
Don't try to hash unicode strings in PY3
...
Avoids: TypeError: Unicode-objects must be encoded before hashing
2016-08-04 15:13:08 -06:00
Erik Johnson
9938c4ba0d
Make integration.loader.loader tests PY3-compatible
...
Note that the LazyLoader still doesn't work quite right, the tests still
fail. But, this resolves Python 3 incompatibility issues.
2016-08-03 17:21:31 -05:00
Mike Place
db68d2cacb
Merge pull request #35037 from twangboy/int_tests_sysmod
...
Fix sysmod integration tests on Windows
2016-08-03 07:59:00 -06:00
Mike Place
99bd7b7e3c
Merge pull request #35151 from terminalmage/py3tests-integration-output
...
Fix integration.output tests for PY3
2016-08-03 07:46:16 -06:00
twangboy
8626a20942
Add missing docs and cli examples
2016-08-02 17:33:20 -06:00
twangboy
b00b3c4e65
Fix tests
2016-08-02 17:33:20 -06:00
Mike Place
59dbb05db6
Disable init script test temporarily
...
This will be re-enabled later on.
2016-08-03 07:40:30 +09:00
Mike Place
c69643d4ef
Fix error in passing timeout for salt tests
2016-08-03 07:30:09 +09:00
Erik Johnson
5d40ffff01
Use a path that non-root users can write to for output file
2016-08-02 17:25:22 -05:00
rallytime
f76cf617a7
Pylint fix
2016-08-02 14:23:20 -06:00
Mike Place
2b7b4eb4ca
Fix wheel test
...
This aligns with the new test layout
2016-08-03 03:53:15 +09:00
Mike Place
324fdd121f
Remoe py3 fix/shell/salt.utils.event
2016-08-03 03:38:35 +09:00
Mike Place
4df8b32509
More liberal matching for batch tests
...
Fixes test failures currently in develop
2016-08-03 03:32:03 +09:00
Justin Anderson
8517ec9458
accurately check return dict
2016-08-02 10:39:21 -06:00
Justin Anderson
cc036ac907
fix test_wheel_with_kwarg
2016-08-02 10:39:21 -06:00
Dmitry Kuzmenko
b50d85a154
Properly remove minion_test_issue_2731 key.
2016-08-02 14:47:51 +03:00
Mike Place
6994825b3d
Merge pull request #35015 from DSRCompany/features/8705_run_and_key_eauth
...
#8705 run and key eauth
2016-08-02 02:47:27 -06:00
Mike Place
cfc66b848e
Merge pull request #35115 from cachedout/fix_state_sync
...
Sync before state tests
2016-08-02 02:46:50 -06:00
Mike Place
2743e01d9b
Merge pull request #35116 from rallytime/py3-int-shell-tests
...
PY3: Fix some string encoding problems in shell integration tests
2016-08-02 02:05:30 -06:00
Mike Place
57e6ea5e51
Merge pull request #35064 from twangboy/int_tests_useradd
...
Add useradd integration tests for Windows
2016-08-02 01:59:33 -06:00
Mike Place
e058be0c3b
Fix typo
2016-08-02 01:45:48 -06:00
Dmitry Kuzmenko
1d606e71c8
Fixed pylint error.
2016-08-02 10:01:01 +03:00
Dmitry Kuzmenko
42ef411c82
Updated salt-key test.
2016-08-02 10:01:01 +03:00
Dmitry Kuzmenko
b412e7814a
Fixed salt-run integration tests.
2016-08-02 10:01:01 +03:00
Jeffrey 'jf' Lim
8ab96d9b50
Remove integration tests for sys.list_{functions,modules}
2016-08-02 12:09:56 +08:00
rallytime
d787140861
Make some adjustments after resolving merge conflict
2016-08-01 18:32:28 -06:00
Mike Place
b5e556f3a3
Sync before state tests
2016-08-01 18:26:18 -06:00
rallytime
1f45d906c8
PY3: Fix byte string encoding issues when running shell.master int tests
2016-08-01 18:03:48 -06:00
rallytime
fbe87fbb4a
PY3: Fix byte string encoding issues when running shell.proxy int tests
2016-08-01 18:03:48 -06:00
rallytime
f47e2f9399
PY3: Fix byte string encoding issues when running shell.minion int tests
2016-08-01 18:03:48 -06:00
Mike Place
4587a3112f
Merge pull request #35035 from plastikos/test-cli_exit_status
...
Test CLI exit status
2016-08-01 16:24:55 -06:00
twangboy
8eb97d08be
Remove whitespace
2016-08-01 14:08:52 -06:00
Thayne Harbaugh
c6d08bf31b
Minor tweaks to testing exit codes
...
* shared config settings go in `config_base` rather than *each* config
* Ensure that `name` attribute is a string
* Ensure that `dirtree` gets used from kwargs
* Adding 'XXXX' to the mkdtemp template is unnecessary
* Only template values if they are strings - otherwise just use them directly
2016-08-01 11:20:15 -06:00
Jeffrey 'jf' Lim
17a230a2e5
Tighten up test_list_modules_with_arg: should include "assertNotIn" too
2016-07-31 02:16:45 +08:00
twangboy
8e83757c78
Fix test_add_user_to_group
2016-07-29 12:07:14 -06:00
Thayne Harbaugh
5816463eae
Corrections to proxy testing:
...
* Ensure that the --config_dir argument is passed when "verbatim_args" is set
* Ensure that the user option is set to "unknown" for both proxy and minion configurations
2016-07-29 11:57:54 -06:00
twangboy
35017d7241
Add useradd integration tests for Windows
2016-07-29 11:30:34 -06:00
Mike Place
ec821510bf
Merge pull request #34909 from twangboy/int_tests_beacons
...
Add check for admin on Windows, gated
2016-07-29 10:39:28 -06:00
twangboy
2cb5787bad
Remove linux gate
2016-07-29 10:24:29 -06:00
twangboy
402901aff0
Add check for admin on Windows, gated
2016-07-29 10:20:45 -06:00
Thayne Harbaugh
8a700b54f8
Appease the pylint gods: lambdas
2016-07-28 15:20:25 -06:00
Thayne Harbaugh
c37bafaca1
Appease the pylint gods.
2016-07-28 14:50:53 -06:00
Mike Place
66127f277b
Merge pull request #35005 from twangboy/int_tests_state
...
Fix state execution module integration tests for Windows
2016-07-28 13:37:54 -06:00
Mike Place
9adfa4a651
Merge pull request #34972 from twangboy/int_tests_hosts
...
Fix hosts integration tests for Windows
2016-07-28 13:36:11 -06:00
rallytime
fde7e0f4c5
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/utils/schedule.py
2016-07-28 11:08:14 -06:00
twangboy
1607da0841
Better fix
2016-07-28 09:48:09 -07:00
twangboy
5ca2f15664
Fix test_issue_1896... for Linux
2016-07-28 09:33:23 -07:00
Nicole Thomas
812916b45f
Fix rabbitmq_user state test to check for correct string ( #35007 )
...
This test was failing when I ran it locally - I'm not sure why the
error isn't showing up in Jenkins, but I double checked the string
in the state and there should be single-quotes around the user name.
2016-07-28 08:37:37 -06:00
twangboy
d409a51bec
Add missing state file for windows
2016-07-27 15:23:51 -07:00
twangboy
55cb909f68
Fix two more tests for Windows
2016-07-27 15:17:36 -07:00
Nicole Thomas
a5582d0535
Revert "Decode byte strings when running tests in Python 3"
2016-07-27 13:00:01 -06:00
twangboy
3da842cea3
Put import in the right place
2016-07-27 11:21:20 -07:00
twangboy
e74fd599ce
Add missing import salt.utils.win_functions
2016-07-27 11:17:16 -07:00
rallytime
a7d4f93697
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- tests/integration/__init__.py
2016-07-27 11:35:16 -06:00
Mike Place
b58c663d8d
Merge pull request #34991 from cachedout/ssh_timeout
...
SSH timeout
2016-07-27 11:24:37 -06:00
Mike Place
5f8370ae8d
Refine errors in client ( #34976 )
...
* Refine errors in client
Check for the existence of cache data
* Adjust tests for new return string
2016-07-27 11:05:31 -06:00
Mike Place
39cd8da399
Lint diff against salt-testing
2016-07-27 10:42:44 -06:00
Mike Place
443e5cdde2
Add timeout to ssh tests
2016-07-27 10:40:02 -06:00
rallytime
83d3ac4771
Decode byte strings when running tests in Python 3
2016-07-27 10:34:34 -06:00
Mike Place
28268208f9
Merge pull request #34937 from twangboy/int_tests_cp
...
Fix test_list_minion for Windows
2016-07-27 08:53:45 -06:00
Mike Place
847d8ea95f
Merge pull request #34939 from twangboy/int_tests_git
...
Fix git integration tests for Windows
2016-07-27 08:44:35 -06:00
Mike Place
d1e808254e
Merge pull request #34968 from rallytime/fix-34967
...
Older versions of psutil may not have the 'children' attribute for processes
2016-07-27 08:37:04 -06:00
Mike Place
2d3b95dec9
Merge pull request #34971 from cachedout/increase_timeout_grains_test
...
Increase timeout for grains test
2016-07-26 16:11:29 -06:00
Mike Place
82d271b43a
Increase timeout for grains test
2016-07-26 16:10:30 -06:00
twangboy
47fb8379d7
Remove hosts and aliases from sub_minion conf
2016-07-26 16:07:55 -06:00
twangboy
d7800567f5
Fix hosts integration test
2016-07-26 16:00:07 -06:00
rallytime
28d28aa82e
Older versions of psutil may not have the 'children' attribute for processes
...
We also should make sure the 'children' variable is instantiated before calling it.
Fixes #34967
2016-07-26 13:46:31 -06:00
twangboy
d0a96181e6
Clarify lowercase checking
2016-07-26 10:39:54 -07:00
twangboy
3c0cf59565
Fix lint
2016-07-26 10:34:54 -07:00
rallytime
76e8dd974a
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/state.py
- tests/integration/__init__.py
- tests/integration/wheel/key.py
2016-07-26 11:05:24 -06:00
Mike Place
d80350cdcc
Increase all run_script timeouts to 30s ( #34956 )
2016-07-26 10:54:45 -06:00
Shane Lee
84e2e8b101
Fix grains integration tests for Windows ( #34941 )
2016-07-26 10:49:10 -06:00
Shane Lee
c4131c0afb
Skip inode test in Windows ( #34938 )
2016-07-26 08:59:47 -06:00
twangboy
a5537ad6b9
Fix test_init, add lower
2016-07-25 16:11:36 -07:00
twangboy
e50ce384c0
Fix git integration tests for Windows
2016-07-25 15:45:11 -07:00
twangboy
0f74afc257
Fix test_list_minion for Windows
2016-07-25 14:49:32 -07:00
rallytime
8b295fe4ea
Merge branch '2015.8' into '2016.3'
...
Conflicts:
salt/config/__init__.py
salt/utils/parsers.py
tests/integration/__init__.py
2016-07-25 14:13:44 -06:00
Mike Place
baee2f2558
Config test no longer applies to new test config
2016-07-22 18:59:31 -06:00
Ch3LL
617f5680e4
add windows path and add custom tar
2016-07-22 17:51:41 -06:00
Mike Place
8becec2f4f
Backport #34906
2016-07-22 17:22:50 -06:00
twangboy
ff1fbce6ae
Add check for admin on Windows, gated
2016-07-22 15:53:17 -07:00
Mike Place
1aee8b7dd4
Merge pull request #34906 from cachedout/set_run_salt_timeout
...
Set timeout for run_salt in test suite
2016-07-22 16:43:48 -06:00
Mike Place
caf0361bc1
Merge pull request #34807 from terminalmage/issue2707
...
Feature addition: preserve mode in file states
2016-07-22 16:43:31 -06:00
Mike Place
345e3e56b8
Merge pull request #34899 from rallytime/integration-cli-tests
...
Fix integration/cli/*.py test failures when Running in Python 3
2016-07-22 16:22:11 -06:00
Mike Place
cdfd0161fc
Set timeout for run_salt in test suite
2016-07-22 16:14:25 -06:00
Mike Place
ab84fd273e
Merge pull request #34637 from cachedout/int_tests_interfaces
...
Int tests interfaces
2016-07-22 15:58:59 -06:00
rallytime
1031f19f3d
Update batch integration tests to not be flaky in Python3
2016-07-22 14:19:15 -06:00
rallytime
109b368d19
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-07-22 10:32:59 -06:00
Erik Johnson
1ca1367289
Fail git.latest states with uncommitted changes when force_reset=False ( #34869 )
...
* Add git.diff function
* Fail git.latest states with uncommitted changes when force_reset=False
Also, discard these changes when running the state if force_reset=True.
* Add integration test for case where there are uncommitted changes
2016-07-22 09:04:05 -06:00
Mike Place
b4be66dedf
Fix wheel test
...
Fix random ordering bug
2016-07-21 13:54:32 -06:00
Mike Place
d85aca1f7a
Merge branch 'develop' into int_tests_interfaces
2016-07-21 12:26:21 -06:00
rallytime
1a9d6eee15
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/grains/core.py
- salt/state.py
- tests/unit/grains/core_test.py
2016-07-21 12:06:25 -06:00
Erik Johnson
f9cd83e8bb
Add integration test for mode=keep when source is a local path
2016-07-20 22:26:10 -05:00
Erik Johnson
1cd542edb8
Add integration test for mode=keep in file states
2016-07-20 22:08:16 -05:00
twangboy
8f29723160
Fix duplicate import, circular reference
2016-07-20 14:34:58 -07:00
Erik Johnson
e9be937d8f
Fix incorrectly-written test
...
This was testing to confirm incorrect behavior. We should not be having
a leading zero when the setuid/setgid bit is set in the mode.
2016-07-20 15:33:11 -05:00
rallytime
094731f4b6
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-07-20 12:32:08 -06:00
Mike Place
3342b0c664
Merge remote-tracking branch 'twangboy/int_tests_cachedout' into int_tests_interfaces
2016-07-20 10:25:42 -06:00
Mike Place
ec8a6ebab3
Correct config test errors
2016-07-20 10:00:31 -06:00
Mike Place
03039c13e2
Lint
2016-07-20 10:00:31 -06:00
Mike Place
5f5d7193b0
Add interface to all configs
...
This got removed during the attempt to make the tests run on Windows.
I added them everywhere even though that's not strictly necessary.
Without these set on the master and sub_master, Windows will throw
erorrs because the networking stack will decide that anything that's
bound to 0.0.0.0 represents an extestential threat to any socket that
attempts to *connect* to one of those ports. (For...reasons.)
2016-07-20 10:00:31 -06:00
twangboy
4e56d28993
Add tcp_master settings to both masters
2016-07-20 10:00:31 -06:00
twangboy
3833c008b2
Cleans up config parameters
2016-07-20 10:00:30 -06:00
twangboy
003e60f6c6
Add cachedir for minions and syndic
2016-07-20 10:00:30 -06:00
twangboy
c1ae2537f1
Remove configuration from configs
2016-07-20 10:00:30 -06:00
twangboy
68e5620b92
Check actual minion ports
...
For some reason this fixed the PYTHONPATH issue
2016-07-20 10:00:30 -06:00
twangboy
79b5be6989
Add more descriptive report for interactive mode
2016-07-20 10:00:30 -06:00
twangboy
cfc82f4004
Fix lint
2016-07-20 10:00:30 -06:00
twangboy
54647eb7d8
Fix mem leak caused by pki_dir
2016-07-20 10:00:30 -06:00
twangboy
7f3f15378e
Make additional changes to master configs
2016-07-20 10:00:30 -06:00
twangboy
a33c5c15da
Fix master and sub_minion configs
2016-07-20 10:00:30 -06:00
twangboy
f55ba87bee
Fix configs, remove default values
2016-07-20 10:00:30 -06:00
twangboy
9b14dc0a6e
Add Pedro's suggestions
2016-07-20 10:00:30 -06:00
twangboy
9bc438e302
Fix subminion
2016-07-20 10:00:29 -06:00
twangboy
1805630fdc
Fix integration tests on windows
2016-07-20 10:00:29 -06:00
twangboy
f7fb4985c4
Add Pedro's suggestions
2016-07-20 10:00:29 -06:00
twangboy
785f5470fc
Fix subminion
2016-07-20 10:00:29 -06:00
twangboy
5bcb27e477
Fix integration tests on windows
2016-07-20 10:00:29 -06:00
Justin Anderson
9abb6f91bb
Skip mysql state test if mysqladmin is not available
2016-07-20 09:24:24 -06:00
Mike Place
aff29906fc
Merge pull request #34671 from isbm/isbm-osmajorrelease-grain-suse-devel
...
Add "osmajorrelease" grain
2016-07-20 08:35:34 -06:00
Mike Place
3eb49d35cc
Merge pull request #34786 from rallytime/iteritems-tests-dir
...
Remove all object.iteritems() references from the tests/ directory
2016-07-19 14:57:21 -06:00
twangboy
f960ded780
Gate SIGINT in shutdown routines for Windows
...
SIGINT not available in Windows
2016-07-19 13:48:03 -07:00
twangboy
c5245f6b24
Fix stack trace on Jenkins
2016-07-19 10:04:24 -07:00
rallytime
39bc093ee9
Merge branch '2016.3' into 'develop'
...
No conflicts.
2016-07-19 10:31:07 -06:00
rallytime
c8930339d3
Remove iteritems() references from integration tests
2016-07-19 10:15:23 -06:00
rallytime
3e032dc397
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-07-19 09:30:45 -06:00
twangboy
b1014cdefb
Add code to kill process in Windows
2016-07-18 13:01:44 -07:00
Mike Place
46901c6e65
Disable test
...
There's a race condition in here somewhere. Disabling and tracking issue elsewhere.
2016-07-18 12:39:49 -06:00
Justin Anderson
b94e0dd95a
ipset.long_range doesn't need a docstring
2016-07-18 10:32:32 -06:00
Bo Maryniuk
3cb6940904
Bugfix: access 'osmajorrelease' as an integer value
2016-07-18 17:14:57 +02:00
Mike Place
0452d0a0ec
Lint
2016-07-18 06:45:57 -06:00
rallytime
8b8e2a1dc3
CLI Example doc additions to fix the sysmod test failure
2016-07-14 17:34:02 -06:00
rallytime
f20e78b534
Merge branch '2016.3' into 'develop'
...
No conflicts.
2016-07-14 15:35:21 -06:00
rallytime
bb2c43b52a
Merge branch '2016.3' into 'develop'
...
No conflicts.
2016-07-14 14:10:10 -06:00
rallytime
0c566dce89
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-07-14 14:06:42 -06:00
Mike Place
64a154826a
Revert "Modify lodaer global test to use populated dunders"
...
This reverts commit f45dbe8508df70ce3f563915318791614449b341.
2016-07-14 12:11:44 -06:00
Nicole Thomas
bc63f25a6f
Lint 34644 ( #34651 )
...
* Better error handling for __virtual__ in dockerng module
* Modify lodaer global test to use populated dunders
This prevents a number of errors in the error log and makes for a
more robust test IMHO
* Lint #34644
2016-07-13 18:58:54 -04:00
Mike Place
50360263c5
Adjust the mine test a little bit to give it a better chance of success ( #34647 )
2016-07-13 16:51:28 -04:00
Mike Place
9b88d3a1e2
Add interface to all configs
...
This got removed during the attempt to make the tests run on Windows.
I added them everywhere even though that's not strictly necessary.
Without these set on the master and sub_master, Windows will throw
erorrs because the networking stack will decide that anything that's
bound to 0.0.0.0 represents an extestential threat to any socket that
attempts to *connect* to one of those ports. (For...reasons.)
2016-07-13 11:24:33 -06:00
twangboy
1f6f4b29f0
Add tcp_master settings to both masters
2016-07-13 11:24:33 -06:00
twangboy
82bc69896e
Cleans up config parameters
2016-07-13 11:24:33 -06:00
twangboy
2dbd5d4e92
Add cachedir for minions and syndic
2016-07-13 11:24:33 -06:00
twangboy
131df72a6f
Remove configuration from configs
2016-07-13 11:24:33 -06:00
twangboy
23193b08e1
Check actual minion ports
...
For some reason this fixed the PYTHONPATH issue
2016-07-13 11:24:33 -06:00
twangboy
4cbb679550
Add more descriptive report for interactive mode
2016-07-13 11:24:33 -06:00
twangboy
66c58ddaf1
Fix lint
2016-07-13 11:24:33 -06:00
twangboy
291f6369a7
Fix mem leak caused by pki_dir
2016-07-13 11:24:33 -06:00
twangboy
7030c925cc
Make additional changes to master configs
2016-07-13 11:24:33 -06:00
twangboy
05629c8efb
Fix master and sub_minion configs
2016-07-13 11:24:32 -06:00
twangboy
074fd4a8be
Fix configs, remove default values
2016-07-13 11:24:32 -06:00
twangboy
f4b3c969d1
Add Pedro's suggestions
2016-07-13 11:24:32 -06:00
twangboy
528d0d2bb5
Fix subminion
2016-07-13 11:24:32 -06:00
twangboy
2636014ccf
Fix integration tests on windows
2016-07-13 11:24:32 -06:00
twangboy
c9d435734f
Add Pedro's suggestions
2016-07-13 11:24:32 -06:00
twangboy
a28e0782e5
Fix subminion
2016-07-13 11:24:32 -06:00
twangboy
dbd8482eb5
Fix integration tests on windows
2016-07-13 11:24:32 -06:00
Justin Anderson
dd1559a599
Check that mysqladmin exists before running mysql integration tests.
2016-07-13 11:08:26 -06:00
Mike Place
3e612c3794
Merge pull request #34618 from jtand/network_integration_fix
...
Network state integration test test=True
2016-07-13 10:30:15 -06:00
Megan Wilhite
f6dfbac5ca
add num_cpus grain to freebsd ( #34565 )
...
* add num_cpus grain to freebsd
* fix pylint
2016-07-13 11:40:09 -04:00
rallytime
49f40e9d99
Merge branch '2016.3' into 'develop'
...
Conflicts:
- doc/conf.py
- doc/topics/reactor/index.rst
- tests/integration/__init__.py
2016-07-12 16:13:56 -06:00
rallytime
f734afd0b0
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/modules/aptpkg.py
- tests/integration/__init__.py
2016-07-12 14:29:35 -06:00
rallytime
3026df346f
Merge branch '2015.5' into '2015.8'
...
No conflicts.
2016-07-12 13:27:16 -06:00
Justin Anderson
57df38e685
Update github IP for ssh state integration tests ( #34592 )
2016-07-12 15:17:41 -04:00
Nicole Thomas
357649313a
Avoid circular imports when calling salt.utils functions ( #34586 )
...
Also remove unused imports:
- platform
- hashlib.md5
- salt.utils.process.MultiprocessingProcess
- tornado.concurrent
2016-07-12 15:13:57 -04:00
Nicole Thomas
efc2ab9d68
[2016.3] Avoid salt.utils circular imports when using "from" ( #34585 )
...
Also removes an unused import
2016-07-12 15:13:26 -04:00
Justin Anderson
34bcf9ccfc
Changed network state test to use test=True
2016-07-12 12:40:40 -06:00
Nicole Thomas
2e1007254b
Avoid circular imports when calling salt.utils functions ( #34584 )
2016-07-12 13:41:30 -04:00
Justin Anderson
b2616833b0
Some small changes
2016-07-11 14:35:25 -06:00
rallytime
815c8b38d5
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-07-08 10:34:32 -06:00
Mike Place
6b8c76af83
Prevent many errors in the test suite in loader tests ( #34521 )
...
Pack in what the loader needs.
2016-07-07 17:03:45 -04:00
Ch3LL
c5035118bf
add skip_verify option to archive.extracted
2016-07-07 14:42:27 -06:00
rallytime
86b7c71e09
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/modules/glusterfs.py
- salt/states/pkg.py
2016-07-07 13:37:58 -06:00
Mike Place
685df80929
Merge pull request #34518 from terminalmage/fix-pkg.latest-test
...
Fix pkg.latest integration test for non-LTS ubuntu
2016-07-07 13:29:13 -06:00
rallytime
27988dde48
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- doc/ref/configuration/minion.rst
2016-07-07 12:31:12 -06:00
Justin Anderson
ed59113e94
Change network state integration test to use test=True
2016-07-07 12:27:18 -06:00
Erik Johnson
4aef44ecdf
Fix pkg.latest integration test for non-LTS ubuntu
...
This test uses ``pkg.list_upgrades`` to find a package which it assumes is
installed, to test ``pkg.installed`` with ``only_upgrade=True``. The
problem with that approach is that ``pkg.list_upgrades`` uses a dry-run
of an ``apt-get dist-upgrade`` to find the upgrades. On non-LTS Ubuntu
releases, a ``dist-upgrade`` results in upgrading to an entirely new
Ubuntu release, and new packages which would be installed by the
dist-upgrade (but are not currently installed) will be included in the
return data. This causes the test to fail when we attempt to run
``pkg.latest`` with ``only_upgrade=True`` on a package which is not
already installed.
This commit fixes the test by ensuring that our target package is
already installed, and continuing to iterate through the return data
from ``pkg.list_upgrades`` until a currently-installed package is found.
2016-07-07 12:51:01 -05:00
Mike Place
4c75d4f92b
Integration test for grains data in templatized files ( #34487 )
...
Refs #34433
2016-07-07 12:16:35 -04:00
Justin Anderson
75299456be
Use skipTest for network state integration test ( #34489 )
...
* Updated skipTest to check for debian or redhat
* Removed skipIf import
2016-07-06 13:43:09 -04:00
Justin Anderson
0460edb9e2
Arch linux does not have osrelease or osmajorrelease grains ( #34453 )
2016-07-05 15:34:41 -04:00
rallytime
e4a8c585d0
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/states/pkg.py
2016-07-05 13:11:32 -06:00
Mike Place
325be594ec
Merge pull request #34380 from richardscollin/system-date-module-change-interface
...
System date module change interface
2016-07-05 12:10:42 -06:00
rallytime
91120dba01
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-07-05 09:58:52 -06:00
rallytime
55a91e22be
Merge branch '2015.5' into '2015.8'
...
No conflicts.
2016-07-05 09:13:50 -06:00
Mike Place
0e2c71a537
Backport change to integraiton test suite
...
Will avoid lint errors in earlier branches. Thanks to @terminalmage for pointing out my error.
2016-07-01 16:10:34 -06:00
Mike Place
28504d19ab
Revert "Py3 for integration test"
...
This reverts commit cd959c640f
.
2016-06-30 16:25:42 -06:00
rallytime
8398de0baf
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-06-30 16:08:57 -06:00
Mike Place
cd959c640f
Py3 for integration test
2016-06-30 14:17:36 -06:00
Mike Place
51a4f09b93
Match overriden method
2016-06-30 14:16:48 -06:00
Mike Place
b02926f41c
Immediate shutdown
2016-06-30 14:16:48 -06:00
Mike Place
5db2e1519f
Increase the speed of test suite startup
...
Tests now start in ~1s
2016-06-30 14:16:47 -06:00
Collin Richards
9d14d130fa
Fix pylint issues
2016-06-30 10:46:35 -05:00
Mike Place
45b8fb10d7
Merge pull request #34373 from jtand/network_state_integration_test
...
Network state integration test
2016-06-30 08:05:44 -07:00
Erik Johnson
d6af1de0b7
Optimize pkg integration tests and add a couple new tests ( #34377 )
...
* Remove redundant usage of destructiveTest decorator
* Remove unnecessary SLS file
This simple state can be run using run_state
* Explicitly order tests
* Use run_state instead of invoking state.sls
* Ensure only one refresh_db done during pkg integration tests
* Add pkg.latest test for package without an epoch
* Optimize pkg.latest_version usage in pkg integration tests
* Clarify outcome when only_upgrade is used
* Add pkg.latest test with only_upgrade=True
2016-06-30 10:48:22 -04:00
Collin Richards
72d47a67c0
Modify interface from utc boolean to utc_offset
...
The system set/get date/time functions now have
a utc_offset instead of a utc boolean so the time
can be set based off of any timezone.
2016-06-29 18:25:26 -05:00
Collin Richards
0866ee850e
Remove _linux_set_datetime backend
...
Instead only use the date program as the backend. This is much more
portable.
2016-06-29 18:24:50 -05:00
Collin Richards
69f8dd96ae
Remove posix arguments
2016-06-29 18:24:49 -05:00
rallytime
3149da1bcc
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-06-29 16:16:46 -06:00
rallytime
e8b7c0654b
Be more explicit with salt.utils imports and usage
2016-06-29 15:59:42 -06:00
Justin Anderson
1d24053e36
network.system sls file
2016-06-29 14:31:46 -06:00
Justin Anderson
4a9e6af542
network.routes sls file
2016-06-29 14:31:07 -06:00
Justin Anderson
76c90b2ef6
network.managed sls file
2016-06-29 14:30:23 -06:00
Erik Johnson
20ed2c6bcf
Remove repr formatting flag in places where it is used solely for quoting ( #34183 )
...
* salt/cloud/__init__.py: remove repr formatting
* salt/cloud/clouds/azurearm.py: remove repr formatting
* salt/cloud/clouds/ec2.py: remove repr formatting
* salt/cloud/clouds/profitbricks.py: remove repr formatting
* salt/loader.py: remove repr formatting
* salt/modules/win_file.py: remove repr formatting
* salt/modules/zypper.py: remove repr formatting
* salt/pillar/consul_pillar.py: remove repr formatting
* salt/renderers/pyobjects.py: remove repr formatting
* salt/returners/sentry_return.py: remove repr formatting
* salt/states/bower.py: remove repr formatting
* salt/states/cabal.py: remove repr formatting
* salt/states/cmd.py: remove repr formatting
* salt/states/composer.py: remove repr formatting
* salt/states/win_network.py: remove repr formatting
* salt/states/eselect.py: remove repr formatting
* salt/states/file.py: remove repr formatting
* salt/states/htpasswd.py: remove repr formatting
* salt/states/memcached.py: remove repr formatting
* salt/states/npm.py: remove repr formatting
* salt/states/pip_state.py: remove repr formatting
* salt/states/pkg.py: remove repr formatting
* salt/states/pkgrepo.py: remove repr formatting
* salt/states/supervisord.py: remove repr formatting
* salt/states/timezone.py: remove repr formatting
* salt/states/virtualenv_mod.py: remove repr formatting
* salt/states/dockerio.py: remove repr formatting
* salt/states/win_system.py: remove repr formatting
* salt/utils/nb_popen.py: remove repr formatting
* salt/utils/cloud.py: remove repr formatting
* Add pylint disable due to legit usage of repr flag
See https://github.com/saltstack/salt-pylint/pull/6
* Fix composer tests
These tests needed to be updated because quoting was changed in the
state module in 9dc9146. There was an unnecessary !r used for the
exception class there, which means that instead of the exception class
being passed through the formatter and coming out with the equivalent
value of err.__str__(), we get a repr'ed instance of the exception class
(i.e. SaltException('',)) in the state output.
The unit test was asserting that we have that repr'ed instance of
SaltException in the output, a case of writing the test to confirm the
badly-conceived output in the state. This has also been corrected.
* salt/cloud/clouds/azurearm.py: lint fixes
* salt/modules/boto_s3_bucket.py: lint fixes
* salt/modules/minion.py: lint fixes
* salt/modules/reg.py: lint fixes
* salt/modules/testinframod.py: lint fixes
* salt/modules/win_iis.py: lint fixes
* salt/pillar/csvpillar.py: lint fixes
* salt/utils/win_functions.py: lint fixes
* salt/states/nxos.py: lint fixes
* salt/returners/mongo_future_return.py: lint fixes
* tests/integration/__init__.py: lint fixes
* tests/unit/context_test.py: lint fixes
* tests/integration/states/file.py: lint fixes
* tests/integration/utils/test_reactor.py: lint fixes
* tests/integration/utils/testprogram.py: lint fixes
* tests/unit/__init__.py: lint fixes
* tests/integration/shell/minion.py: lint fixes
* tests/unit/modules/boto_apigateway_test.py: lint fixes
* tests/unit/modules/boto_cognitoidentity_test.py: lint fixes
* tests/unit/modules/boto_elasticsearch_domain_test.py: lint fixes
* tests/unit/modules/k8s_test.py: lint fixes
* tests/unit/modules/reg_win_test.py: lint fixes
* tests/unit/states/boto_apigateway_test.py: lint fixes
* tests/unit/states/boto_cognitoidentity_test.py: lint fixes
* tests/unit/states/boto_elasticsearch_domain_test.py: lint fixes
2016-06-29 16:30:18 -04:00
Justin Anderson
84a36369fa
Added network state integration test
2016-06-29 14:28:36 -06:00
rallytime
cc83fa151a
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/modules/status.py
- salt/utils/__init__.py
- tests/unit/modules/boto_vpc_test.py
- tests/unit/modules/mount_test.py
- tests/unit/states/boto_vpc_test.py
2016-06-28 17:34:27 -06:00
Thayne Harbaugh
7082d91379
Test exit status of salt-call
...
* Only install packages when user is 'root'
* Only remove packages when user is 'root'
* Only remove packages that were installed
2016-06-28 15:10:11 -06:00
Thayne Harbaugh
5a8c2fcd2c
Test exit status of salt-syndic
2016-06-28 15:10:09 -06:00
Thayne Harbaugh
8a5f1aa1cf
Test exit status of "salt" CLI
2016-06-28 15:10:09 -06:00
Thayne Harbaugh
f790075a51
Test exit status of salt-run
2016-06-28 15:10:08 -06:00
Thayne Harbaugh
1a6a10e8da
Improvements to salt-minion integration tests:
...
* Ensure current user is used to start minions
* Better logging strategy
* Start up multiple minions for SysV init script test (had been previously disabled)
* Track pid files for all minions running
2016-07-28 12:12:47 -06:00
Thayne Harbaugh
c79fe3d83a
Programs may require multiple config files.
...
* Change the .config attribute to .config_base and .configs as a dictionary of configs
* A config has multiple parts
:name: the key in the .configs dictionary
:path: the path where the config is written (when absent defaults to .config_dir and config name)
:map: the contents of the config (for salt programs this is a dictionary)
* Values can be substituted into the config contents using standard python string formatting labels
* Add a .config_attrs which maps object attributes into config space
* Directories for make_dirtree() can reference object attributes using leading '&'
2016-06-28 15:10:07 -06:00
Thayne Harbaugh
5e170d8ae9
Configuration files may be needed for simple test programs - move all
...
config handling to TestProgram so that it can be used there.
2016-06-28 15:10:06 -06:00
Nicole Thomas
94e094652c
Back-port #34324 to 2015.8 ( #34344 )
...
* Add test to match against custom grains
* Lint
* Forgot to add custom grain
2016-06-28 16:35:32 -04:00
rallytime
f9ab8ba46d
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-06-28 14:26:24 -06:00
Mike Place
e81bd6ee94
Test custom grains matcher ( #34324 )
...
* Add test to match against custom grains
* Lint
* Forgot to add custom grain
2016-06-28 12:17:14 -04:00
Erik Johnson
b793426c23
Remove unnecessarily-disabled sanity check ( #34325 )
...
This was commented out for reasons having nothing to do with anything
else going on in 0c069dd
. Uncommenting this sanity check so that we are
notified if we need to update our targets in the future.
2016-06-28 11:12:55 -04:00
Ch3LL
693cc61aa4
add osmajorrelease to ubuntu and fix pylint
2016-06-27 16:32:21 -06:00
Ch3LL
2fc3e8a54b
add osmajorrelease grain for raspbian
2016-06-27 14:45:09 -06:00
Mike Place
1e5da4ba8f
Merge pull request #34286 from Ch3LL/add_key_module_test
...
Add test for key module
2016-06-27 10:09:13 -07:00
Ch3LL
5f302d8205
Add test for key module
2016-06-24 16:24:21 -06:00
rallytime
8479c45728
Merge branch '2016.3' into 'develop'
...
No conflicts.
2016-06-21 17:29:44 -06:00
rallytime
318c2ed6a1
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/cli/salt.py
- salt/modules/grains.py
- tests/unit/modules/boto_vpc_test.py
2016-06-21 16:03:31 -06:00
Mike Place
3669048654
Merge pull request #34077 from rallytime/grains-tests
...
Add some grains targeting tests
2016-06-21 09:06:30 -07:00
rallytime
b061b86946
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-06-20 17:22:07 -06:00
Nicole Thomas
39cd302686
Spelling fix ( #34154 )
2016-06-20 19:11:01 -04:00
Mike Place
2ecc4129b0
Automated test for sleeping minion ( #34149 )
...
Closes #34147
2016-06-20 19:07:55 -04:00
rallytime
2199bb8a78
Add integration tests for grains.append
2016-06-20 16:44:22 -06:00
Thomas S Hatch
3543b90f5c
Merge pull request #34024 from richardscollin/system-date-module
...
Add get/set datetime functionality - system module
2016-06-20 13:38:17 -06:00
Collin Richards
b9b3d77430
Fix more pep8 issues
2016-06-20 12:05:05 -05:00
Justin Findlay
6d0d52fa86
modules.pkg int tests: skip refresh_db upon error ( #34072 )
2016-06-17 09:35:47 -06:00
rallytime
d957c29704
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/master.py
- salt/utils/parsers.py
2016-06-16 17:08:39 -06:00
rallytime
37cfe70724
Add some grains targeting tests
2016-06-16 17:02:46 -06:00
rallytime
f6bfaede21
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- doc/topics/installation/index.rst
- salt/master.py
- salt/modules/mac_brew.py
- salt/modules/pacman.py
- salt/modules/solarisips.py
- salt/returners/postgres_local_cache.py
- salt/states/apache_module.py
- salt/utils/minions.py
- tests/unit/acl/client_test.py
2016-06-16 16:10:41 -06:00
Thomas S Hatch
ccc07c8d32
Merge pull request #33762 from plastikos/bug-proxy_exit_status
...
[BUG] proxy exit status
2016-06-16 14:53:07 -06:00
rallytime
60561ac6fc
Add a test to check for disconnected minion messaging
2016-06-16 14:07:05 -06:00
rallytime
9d049e28e5
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/modules/win_pkg.py
- salt/states/disk.py
2016-06-15 17:13:26 -06:00
Collin Richards
be4a7c3f43
Fix more pylint issues
2016-06-15 17:50:05 -05:00
Nicole Thomas
f546a00dc9
Merge pull request #34025 from rallytime/merge-2016.3
...
[2016.3] Merge forward from 2015.8 to 2016.3
2016-06-15 15:41:00 -04:00
Nicole Thomas
b3751f481f
Fix wheel integration test ( #34040 )
2016-06-15 15:40:15 -04:00
Collin Richards
0ea317ce5f
Fix misc whitespace and formatting issues
2016-06-15 14:34:54 -05:00
Collin Richards
e505a8e852
Add get/set datetime functionality - system module
...
Implement {get,set}_system_{time,date_time,date} functions
in system module for posix/linux machines. These functions
already exist in the win_system module, however there isn't
currently a way to set the date/time on linux/posix systems.
Includes two methods for setting the date/time.
- Using the date program (posix)
- Using the linux function clock_settime function (linux)
Adds UTC functionality that isn't currently included in the windows
date/time module.
2016-06-14 17:19:21 -05:00
rallytime
77f44f3087
Merge branch '2015.5' into '2015.8'
...
Conflicts:
- salt/modules/aptpkg.py
- salt/modules/ebuild.py
- salt/modules/zypper.py
- salt/states/pkg.py
- tests/integration/output/output.py
2016-06-14 15:47:35 -06:00
Nicole Thomas
871f7966ce
Lint fix for #34000 ( #34005 )
2016-06-14 11:12:14 -04:00
Mike Place
f758e42172
Fix incorrectly written test ( #34000 )
...
This should be using the test suite method of generating opts
2016-06-14 11:10:21 -04:00
Mike Place
9bd2317992
Merge pull request #33951 from jfindlay/gem_tests
...
modules.gem int tests: more fixes
2016-06-13 17:46:43 -07:00
rallytime
3e7ab8c7b3
Write some more simple batch command tests
2016-06-13 16:25:19 -06:00
Justin Findlay
2eb633ccad
modules.gem int tests: only check known installed gems
2016-06-13 11:33:25 -06:00
rallytime
c57bcebaf8
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/states/boto_lambda.py
2016-06-13 11:18:53 -06:00
Justin Findlay
9f3e18b037
modules.gem int tests: (un)install a non-core gem
2016-06-13 10:46:56 -06:00
Aditya Kulkarni
34135e1f67
Add runner for execution modules ( #33949 )
...
* Add runner for execution modules
* Make sure all modules load and fix argument passing
* Fix lint error
* Add docs for salt runner
2016-06-13 11:49:26 -04:00
rallytime
b4ab322ce1
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/modules/saltutil.py
2016-06-10 13:41:53 -06:00
rallytime
f078d57b57
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/modules/rabbitmq.py
- salt/modules/win_servermanager.py
- salt/state.py
- salt/states/boto_s3_bucket.py
- salt/states/pip_state.py
- salt/states/win_servermanager.py
- tests/unit/modules/win_servermanager_test.py
- tests/unit/states/dockerng_test.py
2016-06-09 13:06:10 -06:00
Nicole Thomas
08a584b3e5
Merge pull request #33711 from rallytime/merge-develop-3
...
[develop] Merge forward from 2016.3 to develop
2016-06-09 14:12:48 -04:00
rallytime
b8e4706074
Merge branch '2015.5' into '2015.8'
...
Conflicts:
- salt/modules/saltutil.py
- salt/states/archive.py
2016-06-08 14:26:18 -06:00
Thayne Harbaugh
0fff44644e
Handle case where PYTHONPATH environment var is not set.
2016-06-08 14:02:57 -06:00
rallytime
c5b4ec0b0f
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/cli/salt.py
- salt/modules/groupadd.py
- salt/states/service.py
2016-06-08 11:20:18 -06:00
Mike Place
1db559afe9
Merge pull request #33805 from jfindlay/pkg_tests
...
states.pkg int tests: skip if pkg mgr unavailable
2016-06-07 07:40:46 -07:00
Mike Place
3984b65486
Merge pull request #33808 from jfindlay/gem_tests
...
fix some problems with the gem module integration tests
2016-06-07 07:40:25 -07:00
Justin Findlay
f13f914755
states.service: add integration tests
2016-06-06 23:11:49 -06:00
Justin Findlay
f7c19a1a58
modules.gem int tests: relax version checks
2016-06-06 21:58:58 -06:00
Justin Findlay
0c069ddc95
states.pkg int tests: skip if pkg mgr unavailable
2016-06-06 17:44:43 -06:00
Justin Findlay
6af47d2ba7
modules.gem int tests: remove pkgs before testing install
2016-06-06 17:32:17 -06:00
Mike Place
7fdfbe9a28
Merge pull request #33691 from jtand/gem_integration_test
...
Gem integration test
2016-06-06 04:13:23 -07:00
Jeffrey 'jf' Lim
9cf25e160f
Fix #33500 : allow for sys.list_modules to list a module when given an exact match
2016-06-04 12:51:47 +08:00
Jeffrey 'jf' Lim
738e5c5823
Fix integration test_list_modules_with_arg: pass 'u*' arg correctly
2016-06-04 12:18:16 +08:00
Thayne Harbaugh
bfc12b342b
Integration tests for salt-proxy exit status.
2016-06-03 14:47:23 -06:00
Thayne Harbaugh
88ce32ae80
Improvements and bugfixes to testprogram utilities
...
* Automatically add --proxyid to salt-proxy arguments
* Add parameters to disable automatic adding of arguments and environment
settings: .run() now takes verbatim_args and verbatim_env
* salt-proxy uses salt-minion.pid file
* Simplify .shutdown()
+ pass timeout to .wait_for_daemon_pid()
+ attempt kill before checking timeout value
+ Testing for "no such pid" (case that process was already dead) was
previously incorrect, but was masked due to (what should have been) a
superfluous call to salt.utils.process.os_is_running()
2016-06-03 14:47:23 -06:00
Thayne Harbaugh
b8b74fcbe0
Remove unused code
2016-06-03 14:47:23 -06:00
Justin Anderson
ff2dae103d
ubuntu doesn't install default gems when ruby is installed
2016-06-03 08:54:51 -06:00
Justin
504df9a65a
Fixed lint error
2016-06-03 04:28:42 -06:00
Thayne Harbaugh
a46750c8c5
Various tests to validate proper `salt-master
` exit status:
...
* Test when ``user`` config setting is an invalid user.
* Test when an unknown argument is given.
* Test Correct ``salt-master`` daemon start up.
2016-06-02 17:03:59 -06:00
Thayne Harbaugh
68a9912d3a
Refactor `testprogram
` framework to minimize explicit setup and improve reuse.
...
* Add a ``testprogram.TestProgramCase()`` to simplify test classes
+ Has ``setUp()`` and ``tearDown()`` to create ephemeral test directory
(really should be moved to salttesting.TestCase)
+ Common ``assert_exit_status()`` for validating and reporting failures in
exit status.
* Add missing ``testprogram.TestDaemonSaltProxy`` class
* Remove specific setting of ``program`` parameter in initialization of
``TestDaemonSaltMinion`` since ``testprogram.TestSaltProgramMeta`` already
handles that unless a specific override is required.
* Automatically set ``user`` in config for master, minion and proxy test
classes if a specific user is not specified.
* Automatically set ``PYTHONPATH`` as ``sys.path`` unless it is specified.
2016-06-02 16:51:54 -06:00
Justin Anderson
0cb1bfa0d3
Removed extra :
2016-06-02 16:35:40 -06:00
Justin Anderson
ebee8a89af
glance.warn_until shouldn't be checked for a doc string
2016-06-02 16:30:36 -06:00
Justin Anderson
86f59b3e80
Made more pythonic
2016-06-02 14:37:05 -06:00
Justin Anderson
2f36f34981
Fixed salt.util import. Added status check to make sure external resource is available
2016-06-02 14:32:08 -06:00
Justin Anderson
400a71ec33
Removed redundancies
2016-06-02 11:16:23 -06:00
Justin Anderson
91db411bea
A couple lint fixes
2016-06-02 09:03:10 -06:00
Justin Anderson
c97f3319b9
Add check for gem binary
2016-06-02 08:56:09 -06:00
rallytime
9220ea0729
Merge branch '2016.3' into 'develop'
...
Conflicts:
- doc/conf.py
- salt/minion.py
- salt/modules/mac_brew.py
- salt/modules/pkgng.py
- salt/states/apache_module.py
- salt/states/ini_manage.py
- salt/states/win_servermanager.py
2016-06-02 10:13:34 -04:00
rallytime
b7accb0b3b
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/utils/aws.py
- salt/utils/s3.py
2016-06-02 10:01:43 -04:00
Thayne Harbaugh
1fdb232af3
Test that correct salt-minion start-up exits with EX_OK
2016-06-01 18:21:49 -06:00
Thayne Harbaugh
920f062193
Test that an unknown argument to salt-minion exits with EX_USAGE
2016-06-01 18:21:49 -06:00
Thayne Harbaugh
b5e66ad853
Test that a non-existent user for salt-minion exits with EX_NOUSER
...
Add common exit status assert function.
2016-06-01 18:21:49 -06:00
Thayne Harbaugh
11a9e1e839
Various improvements to the TestProgram classes:
...
* Add debug logging when a program is started
* Set a flag once a TestDaemon has been shutdown(); check flag in is_running()
* Add .config_path property
* salt.utils.process.clean_proc() only works with multiprocessing - replace it
* Automatically add --config-dir for TestSaltDaemon if it isn't already specified
2016-06-01 18:21:49 -06:00
Justin Anderson
210aceb402
Refactored tests to not use return messages
2016-06-01 16:57:37 -06:00
Mike Place
c8dc70b96a
Merge pull request #33685 from jfindlay/get_url_test
...
modules.cp.get_url: add test for https://
2016-06-01 15:25:41 -07:00
Justin Anderson
9d437bd45d
Removed artifact from testing
2016-06-01 15:32:41 -06:00
Justin Anderson
134e1fa888
Fixed typos, and added destructiveTest decorator
2016-06-01 15:25:18 -06:00
Justin Anderson
37bc3ad8fd
Fixed typo, uninstalled to uninstall
2016-06-01 15:16:15 -06:00
Justin Findlay
2b5035fdc0
modules.cp.get_url: add test for https://
2016-06-01 15:10:12 -06:00
Justin Anderson
5b23b91ac6
Integration test for gem module
2016-06-01 15:09:55 -06:00
Justin Findlay
8295b48459
test.integration: use hard /tmp on MacOS
...
Otherwise, the tests will not work as `$TMPDIR` produces a path that is
too long for unix sockets on the platform.
2016-05-31 13:27:50 -06:00
Drew Adams
bcd6a1cd77
fix osfamily from Suse to SUSE
2016-05-26 22:08:40 -07:00
Mike Place
4eb272da3c
Merge pull request #33510 from pass-by-value/salt_cloud_env_vars
...
Add SDB module for environment variables
2016-05-26 12:26:16 -07:00
Mike Place
378bc96234
Merge pull request #33511 from rallytime/fix-33500
...
Allow exact arg matches to work in sys.list_modules func
2016-05-26 07:28:46 -07:00
Justin Findlay
0ed3598fc9
modules.mac_brew int tests: add latest_version test
2016-05-25 22:15:12 -06:00
Justin Findlay
8789c2d06d
modules.mac_brew int tests: add list_upgrades,info_installed
2016-05-25 22:05:01 -06:00
Justin Findlay
be381e0fc9
modules.mac_brew int tests: move decorators to class
...
Also remove unneeded system grains code.
2016-05-25 22:05:01 -06:00
Aditya Kulkarni
5cae7e5b1f
Add SDB module for environment variables
2016-05-25 17:18:35 -04:00
rallytime
af8c6b7894
Allow exact arg matches to work in sys.list_modules func
...
Fixes #33500
2016-05-25 14:26:59 -06:00
rallytime
a5e0141eda
Merge branch '2015.8' into '2106.3'
...
Conflicts:
- salt/beacons/__init__.py
- salt/modules/saltutil.py
- salt/modules/zypper.py
- salt/states/grains.py
- salt/states/pkgrepo.py
- salt/states/service.py
2016-05-25 13:44:21 -06:00
Justin Anderson
ebf1256545
Don't need to check swift.head due to it having no body
2016-05-24 15:26:28 -06:00
Justin Anderson
59e90064e6
modules.swift.head does not have a body. Should not be checked for a docstring right now.
2016-05-24 14:58:32 -06:00
Nicole Thomas
0c4e38ced4
Fix the saltutil.wheel function and add integration tests ( #33414 )
...
* Fix the saltutil.wheel function and add integration tests
Fixes #32446
* Provide a more useful message when command is run on non-local minion
2016-05-23 14:11:16 -07:00
Pedro Algarvio
e1587261c9
The scripts directory is now a subdirectory of TMP so it gets cleaned up.
2016-05-23 18:04:47 +01:00
Pedro Algarvio
580271d966
First get a new port, then close the offending.
2016-05-23 16:33:29 +01:00
Pedro Algarvio
15b0a399cb
If psutil is available, make sure we kill all process children
2016-05-23 15:40:50 +01:00
Pedro Algarvio
320dc0b606
Turn subprocesses logging proxying back on.
...
Make sure none of the hard coded ports are used when grabbing an unused port
2016-05-23 13:57:22 +01:00
Pedro Algarvio
17798f7b69
We need to use a multiprocessing Queue
2016-05-23 13:57:22 +01:00
Pedro Algarvio
d2b696ba8b
We don't currently support colors on windows
2016-05-23 13:57:22 +01:00
Pedro Algarvio
3a755208f4
Var typo
2016-05-23 13:57:22 +01:00
Pedro Algarvio
85f83c773e
Fix extension modules path
2016-05-23 13:57:22 +01:00
Pedro Algarvio
76c5e105b0
More conf fixes
2016-05-23 13:57:21 +01:00
Pedro Algarvio
3adf8e286e
Some more test suite run fixes
...
* Allow more time for the daemons to react to the signals sent
* Fix configuration
* More logging
2016-05-23 13:57:21 +01:00
twangboy
66e3624f2b
Fix YAML error on minion start
2016-05-23 13:56:56 +01:00
Pedro Algarvio
57fbe717b9
This seems like a cleaner shutdown
2016-05-23 13:56:07 +01:00
twangboy
fdc3835318
Fix some lint
2016-05-23 13:56:07 +01:00
twangboy
766549ed65
Remove type
2016-05-23 13:56:06 +01:00
twangboy
b60bc974a0
Fix clean function for windows
2016-05-23 13:56:06 +01:00
Pedro Algarvio
fca093580c
Disable logging forwarding for now.
2016-05-23 13:56:06 +01:00
Pedro Algarvio
84e04884aa
errno typo
2016-05-23 13:56:06 +01:00
Pedro Algarvio
3aae5a9c28
Check for connection reset errors on windows
2016-05-23 13:56:06 +01:00
Pedro Algarvio
7a9146981e
CLI test config fixes
2016-05-23 13:56:05 +01:00
Pedro Algarvio
73165d8701
Break on broken pipe
2016-05-23 13:56:05 +01:00
Pedro Algarvio
4db35067e1
Refactor the get script path routine into a mix in class
2016-05-23 13:56:05 +01:00
Pedro Algarvio
a17aefd04a
Handle connection errors
2016-05-23 13:56:05 +01:00
Pedro Algarvio
11793aff30
More test scripts fixes
2016-05-23 13:56:05 +01:00