Commit Graph

71797 Commits

Author SHA1 Message Date
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
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
Thayne Harbaugh
aab8e23975 Minor tweaks/improvements to the salt-minion SysV init script.
* Test "reload" before probing minion configuration
* change indent
2016-07-28 12:12:45 -06:00
onorua
b09aacf185 Introduce cache_valid_time parameter (#34914)
this should speedup situation when several states need
refresh_db: True

In case you have several states like this, apt-get update will be
called on every step refresh is set.

Proposed solution will skip refresh in case cache_valid_time is set
unless apt-get update preceded more than cache_valid_time seconds ago.
2016-07-28 09:24:17 -06:00
Eric Radman
42222b06fe Remove stray debug print statements (#35019)
This cleans up the unit test output a bit, mostly leaving deprecation warnings.
2016-07-28 09:17:27 -06:00
Takuya Nishigori
b0a6fc794a Fix docstring for code-block of rst (#35011) 2016-07-28 08:40:49 -06: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
Nicole Thomas
f830605f20 Merge pull request #35001 from techhat/azurewarn
Change an exception to a warning
2016-07-27 15:56:40 -06:00
Nicole Thomas
b089db6f21 Fix pylint of develop (#35002) 2016-07-27 15:18:29 -06:00
Joseph Hall
5bb614269c Change an exception to a warning 2016-07-27 14:10:57 -06:00
Mike Place
660dc92cf8 [RFC] Only check minions that are missing (#34917)
Right now, we all ask minions for a job, regardless of whether or not
we expected them to return a job. This changes that behavior so that
we now only ask the minions that we expected to return but did not.

Questions: Will this have bad side-effects for syndics or multi-master?

Or, are the valid use cases for a minion returning a result that we weren't expecting?
2016-07-27 13:21:39 -06:00
Mike Place
b964d1b006 Merge pull request #34999 from cachedout/fixup_33875
Fixup #33875
2016-07-27 13:18:34 -06:00
Mike Place
48aa151fa6 Fixup #33875 2016-07-27 13:17:57 -06:00
Mike Place
7956dbe568 Merge pull request #33875 from sangoma/correct_map_diff
Fix naive fileserver map diff algorithm
2016-07-27 13:14:49 -06:00
Mike Place
92e69310c9 Merge pull request #34993 from terminalmage/docs
Add docs on utility modules, improve module writing docs, update Carbon release notes
2016-07-27 13:12:30 -06:00
Mike Place
aae430d8c1 Merge pull request #34977 from terminalmage/zd868
Add jid to return from runner/wheel funcs executed within orchestration
2016-07-27 13:10:57 -06:00
Mike Place
bd995c014d Merge pull request #34997 from saltstack/revert-34990-decode-bytes-integration-init
Revert "Decode byte strings when running tests in Python 3"
2016-07-27 13:00:57 -06:00
Nicole Thomas
a5582d0535 Revert "Decode byte strings when running tests in Python 3" 2016-07-27 13:00:01 -06:00
Mike Place
b424f5cec6 Merge pull request #34875 from oms4suse/wip_add_ceph
Wip add ceph
2016-07-27 12:07:14 -06:00
Mike Place
1534b143e2 Merge pull request #34772 from kerick/ddns-port-work
ddns: Add support for user defined nameserver port/TSIG key algorithm
2016-07-27 12:05:40 -06:00
Erik Johnson
c3f9e13fbe Update unit tests to reflect new behavior of WheelClient/RunnerClient 2016-07-27 13:01:24 -05:00
Mike Place
2a0255fb0a Lint postgres returner (#34995)
Refs #34476
2016-07-27 11:33:08 -06:00
Mike Place
e28d2bc5ed Merge pull request #34476 from kriberg/update-postgres-returner
Updated postgres returner to support new API
2016-07-27 11:29:25 -06:00
Mike Place
1067c17095 Merge pull request #34826 from rallytime/unit-module-py3-tests
Python 3 compatibility fixes (execution module unit tests)
2016-07-27 11:24:00 -06:00
Mike Place
eb8ffab057 Merge pull request #34857 from eradman/blockreplace
Preserve ownership for blockreplace backup files
2016-07-27 11:21:36 -06:00
Erik Johnson
82ebfc6b31 Improve Carbon release docs 2016-07-27 12:15:28 -05:00
Mike Place
3c76214f99 Merge pull request #34990 from rallytime/decode-bytes-integration-init
Decode byte strings when running tests in Python 3
2016-07-27 11:02:12 -06:00
Erik Johnson
0633275427 Remove unnecessary double-asterisk from docstring 2016-07-27 11:58:36 -05:00
Erik Johnson
6ae5667c23 Clarify usage of module.run state in states documentation 2016-07-27 11:57:55 -05:00
Erik Johnson
a5c78d626e Improve accuracy and formatting of execution module docs 2016-07-27 11:57:12 -05:00
Erik Johnson
4538b9e9d4 Add utility modules doc page to the TOC 2016-07-27 11:56:49 -05:00
Erik Johnson
4e804217e3 Add documentation on utility modules 2016-07-27 11:56:41 -05:00
rallytime
83d3ac4771 Decode byte strings when running tests in Python 3 2016-07-27 10:34:34 -06:00
Mike Place
a988d42209 Merge pull request #34936 from bebehei/bashcompletion-cache
Bash-completion cache output and improve behavior
2016-07-27 09:00:03 -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
ed65a27377 Merge pull request #34965 from xlotlu/patch-1
grafana_datasource: fix missing name in state return
2016-07-27 08:37:56 -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
6323723035 Merge pull request #34974 from thatch45/regen_thin
Regen the thin tarball option
2016-07-27 08:23:54 -06:00
Erik Johnson
1e0c53372a Add a cmd func to RunnerClient
Also remove warning about potentially needing one in the future
2016-07-26 20:45:24 -05:00
Erik Johnson
70d9119fbe Add notice about cmd func in mixins, be explicit about daemonizing 2016-07-26 20:45:24 -05:00
Erik Johnson
ee1df20581 Add jid to return from runner/wheel funcs executed within orchestration 2016-07-26 20:45:24 -05:00
Erik Johnson
ae89b9063e Allow the client to optionally return all data (not just function return) 2016-07-26 18:07:43 -05:00