Matthew Williams
8d3556ebcd
utils.boto: add temporary ability to use without loader
2015-04-16 23:04:18 +00:00
Matthew Williams
9ecf4f38a6
utils.boto: convert BotoExecutionError back to func
2015-04-15 08:30:40 +00:00
Matthew Williams
46bde83216
Merge remote-tracking branch 'origin/develop' into boto_utils
...
Conflicts:
salt/modules/boto_ec2.py
2015-04-14 20:07:57 +00:00
Thomas Jackson
435fc7ba61
Add some support pyzmq 13.0.x
...
pyzmq 13.0.x was the first version to support *any* tornado in pyzmq, and since 14.0.x they have changed the API (IMO into a more sensible one). This conditionally changes the name to match the new API's naming
2015-04-13 17:43:45 -07:00
Matthew Williams
b8ead7ab27
utils.boto get_exception -> class
2015-04-13 22:34:19 +00:00
Matthew Williams
45b118f93a
Merge remote-tracking branch 'origin/develop' into boto_utils
2015-04-13 15:43:01 +00:00
Matthew Williams
b3ec570499
utils.boto: add convenience partials
2015-04-13 15:42:32 +00:00
Mike Place
6a11ead5b4
Merge pull request #22453 from jacksontj/transport
...
Abstracted Transport
2015-04-13 09:38:52 -06:00
Matthew Williams
4976f863f9
utils.boto unit test -- use utf-8 encoding
2015-04-08 19:39:55 +00:00
Thomas Jackson
ce850a3e33
pylint cleanup
2015-04-08 08:20:17 -07:00
Matthew Williams
d642b5bc89
utils.boto: fix missing import and add regression test
2015-04-08 15:12:15 +00:00
Matthew Williams
28f3e5d0ad
utils.boto: add get_exception
2015-04-08 14:46:28 +00:00
Thomas Jackson
f5e2650227
Add basic tests for asyncEventpublisher
2015-04-07 21:01:43 -07:00
Matthew Williams
e22292220a
tests for utils.boto
2015-04-08 03:59:51 +00:00
jfindlay
396e8a5938
Merge pull request #20779 from cachedout/issue_20647
...
Use declared yaml options
2015-03-12 12:03:15 -06:00
Justin Findlay
fd829a95ff
compare OrderedDicts in serializer unit test
2015-03-12 10:47:34 -06:00
Pedro Algarvio
62f868a076
Merge branch '2015.2' into develop
2015-02-27 10:02:47 +00:00
Pedro Algarvio
a24ae29ee9
Revert "We no longer warn."
...
This reverts commit 5d35f856ac
.
2015-02-26 09:41:22 +00:00
Mike Place
26b3ec0be3
Context cache decorator
2015-02-23 19:27:27 -07:00
Colton Myers
f00465a8a1
Merge remote-tracking branch 'upstream/2015.2' into merge-forward-develop
...
Conflicts:
doc/topics/event/index.rst
salt/loader.py
salt/modules/config.py
salt/modules/cyg.py
salt/modules/hg.py
salt/modules/lxc.py
salt/modules/upstart.py
salt/states/hg.py
salt/utils/cloud.py
salt/utils/dictupdate.py
salt/utils/schedule.py
tests/integration/fileserver/gitfs_test.py
tests/unit/pydsl_test.py
2015-02-18 11:55:29 -07:00
Colton Myers
b2a80b195e
Merge remote-tracking branch 'upstream/2014.7' into merge-forward-2015.2
2015-02-12 11:44:57 -07:00
Thomas S Hatch
9e054f3890
Merge pull request #20616 from rallytime/merge-20419
...
Merge #20419 with test syntax fix
2015-02-12 10:38:53 -07:00
rallytime
6b2d64b557
Fix second pylint error that popped up
2015-02-11 22:07:37 -07:00
rallytime
789570fb94
Fix pylint/syntax of test in which_test to merge #20419
2015-02-11 21:48:34 -07:00
Hung Nguyen Viet
d10ce3ade2
fix unittest for windows
2015-02-12 01:37:40 +07:00
Arnold Bechtoldt
9de6c1d839
improve test tests/unit/utils/validate_net_test.py useability
2015-02-09 11:52:08 +01:00
Arnold Bechtoldt
50ecfef1db
do call class methods correctly
2015-02-09 09:45:12 +01:00
Arnold Bechtoldt
2c5f5f8bf7
fix pep8 lint checks, refs #20508
2015-02-09 09:14:38 +01:00
Arnold Bechtoldt
ef7834db76
fix broken ipv6 address verification in salt.utils.validate.net
2015-02-08 23:48:05 +01:00
rallytime
db612d0b81
Clean up some pylint on 2015.2
...
This way PRs against 2015.2 will be a little happier
2015-02-06 07:58:26 -07:00
rallytime
02d3235cf2
Fix remaining pylint errors on develop
2015-02-04 21:11:17 -07:00
Pedro Algarvio
482016eea3
Py3 compatibility
2015-01-30 22:27:05 +00:00
Pedro Algarvio
72654ad0a9
Py3 compatibility fixes
2015-01-30 22:25:11 +00:00
Pedro Algarvio
85b66a47c5
Py3 compatibility fixes
2015-01-30 22:25:11 +00:00
Pedro Algarvio
a8ff8fa0b5
Py3 compatibility fixes
2015-01-30 22:25:11 +00:00
Pedro Algarvio
8081170d8d
Py3 compatibility fixes
2015-01-30 22:25:11 +00:00
Pedro Algarvio
0ead7d0f9b
Py3 compatibility fixes
2015-01-30 22:25:10 +00:00
Pedro Algarvio
c3d922bdc4
Py3 compatibility fixes
2015-01-30 22:25:05 +00:00
Pedro Algarvio
53a5f4beb8
Py3 compatibility fixes
2015-01-30 22:25:05 +00:00
Pedro Algarvio
60f215f191
Add from __future__ import absolute_import
2015-01-30 22:25:04 +00:00
Colton Myers
c4da7bdd64
Merge remote-tracking branch 'upstream/2015.2' into merge-forward-develop
...
Conflicts:
salt/client/mixins.py
salt/daemons/flo/__init__.py
2015-01-26 19:44:59 -07:00
Pedro Algarvio
5d35f856ac
We no longer warn.
2015-01-24 03:16:51 +00:00
Mike Place
bb3c1714f8
Style fixes
2015-01-15 10:48:44 -07:00
Mike Place
6d14d4e661
Fix broken test
2015-01-15 10:41:08 -07:00
Mike Place
845271d31c
More linting
2015-01-13 11:15:45 -07:00
Aurynn Shaw
b7ae48642a
Adds fire_master to the Salt Event library, for use in 3rd-party code.
2015-01-13 09:29:27 +13:00
sjwehry
342608d9bd
Fixed spelling of "below" in 9 different files.
2015-01-06 19:55:28 -05:00
Colton Myers
56eae4783a
Merge branch '2014.7' into merge-forward-2015.2
2015-01-06 13:33:18 -07:00
Colton Myers
f6eae029f0
Merge branch '2014.7' into merge-forward-2015.2
...
Conflicts:
pkg/windows/installer/Salt-Minion-Setup.nsi
salt/grains/core.py
salt/minion.py
salt/modules/mongodb.py
salt/states/archive.py
salt/states/mount.py
salt/utils/master.py
salt/utils/schedule.py
salt/utils/thin.py
tests/jenkins-ng.py
2015-01-06 13:14:27 -07:00
rallytime
73ef44dd9f
Pylint fix for 2014.7 branch
2015-01-06 11:14:06 -07:00
Mike Place
0194fbe77c
Attempt to fix inconsintent VT test by preventing a spin
2015-01-05 13:35:02 -07:00
Thomas S Hatch
4274a338e5
Merge pull request #19265 from jfindlay/log_color
...
add color option to console logger
2014-12-29 15:43:35 -07:00
Mike Place
845546c009
Holiday lint
2014-12-29 11:27:05 -07:00
Mike Place
e5fb81970d
Attempt to fix inconsintent VT test by preventing a spin
2014-12-29 10:26:48 -07:00
Justin Findlay
13dca4548b
fix utils unit test
2014-12-27 18:22:11 -07:00
Justin Findlay
751e0c7f43
update color name consistency
2014-12-27 12:20:08 -07:00
Mike Place
a931dd63fe
Increasing sleep to see if it fixes vt test
2014-12-19 14:01:20 -07:00
Colton Myers
fc16bd16c0
Merge branch '2014.7' into merge-forward
...
Conflicts:
doc/faq.rst
doc/ref/states/compiler_ordering.rst
doc/topics/best_practices.rst
doc/topics/development/conventions/formulas.rst
salt/config.py
salt/modules/state.py
salt/states/mount.py
salt/utils/event.py
tests/unit/utils/process_test.py
2014-12-16 14:45:25 -07:00
Thomas S Hatch
75cc71b051
Merge pull request #18762 from jacksontj/2014.7
...
Move reactor master-clients to threads
2014-12-15 09:43:17 -07:00
Thomas Jackson
545400e006
Pylint cleanup
2014-12-12 09:42:41 -08:00
Thomas S Hatch
bdc907dab6
Merge branch '2014.7' into merge_forward_8798
...
Conflicts:
salt/cli/__init__.py
salt/cloud/clouds/ec2.py
salt/scripts.py
salt/utils/__init__.py
salt/utils/saltminionservice.py
2014-12-12 09:49:34 -07:00
Thomas Jackson
0e6195f778
Add some tests for ThreadPool
2014-12-12 08:16:18 -08:00
Thomas Jackson
77a7d9ab13
backport tests for process manager
2014-12-12 08:04:02 -08:00
Mike Place
454da2545f
Fix failing tests
2014-12-11 16:23:04 -07:00
C. R. Oldham
8e691d7f32
Fix lint
2014-12-10 16:43:42 -07:00
C. R. Oldham
dfdbdb0a26
Add support for sockstat on FreeBSD as an alternative to lsof
2014-12-10 15:52:02 -07:00
Mike Place
5d15fb1f1b
Fix failing tests
2014-12-10 08:42:08 -07:00
Anthony Scalisi
44963fae0e
fix various typos
2014-12-08 14:32:53 -08:00
Colton Myers
472f6577e2
Merge branch '2014.7' into merge-forward
...
Conflicts:
salt/minion.py
salt/modules/localemod.py
salt/states/mount.py
salt/transport/__init__.py
salt/utils/schedule.py
2014-12-04 11:11:11 -07:00
Thomas S Hatch
b1b770014b
Merge pull request #18592 from nazgul5/utils.network
...
salt.utils.network._interfaces_ifconfig: SunOS fix
2014-12-03 10:02:15 -07:00
Colton Myers
fcc2196a5f
Merge branch '2014.7' into merge-forward
...
Conflicts:
salt/cloud/__init__.py
salt/modules/boto_secgroup.py
salt/modules/boto_vpc.py
salt/modules/file.py
salt/modules/zcbuildout.py
salt/runner.py
salt/runners/lxc.py
salt/runners/manage.py
salt/utils/schedule.py
tests/unit/modules/boto_vpc_test.py
tests/unit/modules/hashutil_test.py
tests/unit/templates/jinja_test.py
2014-12-01 15:04:03 -07:00
rallytime
3760915099
Skip test_max_open_files test until we can find the real problem
2014-12-01 13:43:57 -07:00
Vitalii Nazg
8f9af6802b
Lint fixes: unused import, tabs
2014-12-01 22:08:23 +02:00
Vitalii Nazg
8ff9e7f7e9
salt.utils.network._interfaces_ifconfig: SunOS fix
...
In SunOS 11.1 with IPv6 enabled interfaces occur twice in 'ifconfig -a'
output with the same name: for ipv4 and then for ipv6 addr family. Thus,
ipv6 data overwrites data collected from ipv4 interfaces.
Every instance has it's own 'UP' status and we assume that ipv4
status determines global interface status.
Thus commit tries to merge data from conflicting instances.
Also, regexp was tuned for SunOS's ifconfig.
2014-11-28 19:02:45 +02:00
Pedro Algarvio
50bb9c3867
Merge branch '2014.7' into hotfix/merge-forward
...
Conflicts:
salt/fileclient.py
2014-11-21 23:39:28 +00:00
Thomas Jackson
44f91a1d21
Add regression test for #8670
...
Before the fix in #18363 get_event would return None on the first non-matching event (since wait was 0), this is to verify that get_event works properly with a wait of 0
2014-11-21 08:54:05 -08:00
Thomas S Hatch
03e2785281
lint
2014-11-11 10:03:22 -07:00
Arnold Bechtoldt
485796e9f9
use the right function to test
2014-11-11 02:14:58 +01:00
Arnold Bechtoldt
d03ff7d6dd
fix broken ipv6 address verification in salt.utils.validate.net
2014-11-11 01:42:46 +01:00
Thayne Harbaugh
e4488a3956
Add yaml_encode() jinja filter
...
* Add documentation for yaml_encode()
* Mention yaml_encode() in formulas documentation
* Add unit tests for yaml_encode()
* Improve unit tests and documentation for related yaml_dquote()
2014-11-07 19:12:58 -07:00
Joseph Hall
e1487b330b
Merge pull request #17222 from hulu/typos-2-electric-boogaloo
...
more typo/misspelling fixes
2014-11-06 11:41:07 -07:00
Chris Rebert
802a631dd9
more typo/misspelling fixes
2014-11-05 15:29:25 -08:00
Chris Rebert
c46e43f296
tests/unit/utils/event_test.py: fix typo in comment
2014-11-05 11:03:54 -08:00
Thayne Harbaugh
dc4892442a
Add yaml_dquote() and yaml_squote() utilites; load them as Jinja filters.
...
When templating state files the variable contents may contain
characters that YAML will interpret specially. Rather than try to
escape the special characters so that they are safe use a filter that
protects special characters in YAML values.
2014-11-03 16:14:54 -07:00
Thomas S Hatch
3f58d716a2
Merge pull request #16878 from plastikos/improvement-filter_by
...
Improve filter_by() base argument:
2014-10-30 10:02:32 -06:00
Mike Place
39d6d8e75f
remove splitted test
2014-10-27 18:23:20 -06:00
Thayne Harbaugh
7bd7e4c2b7
Appease the pylint gods; back-out unrelated changes.
2014-10-24 11:32:12 -06:00
Thayne Harbaugh
65e477dd67
Improve filter_by() base argument:
...
* Change filter_by() base argument to a key in lookup_dict rather
than a dictionary. This allows more compact usage and more
readable use of base values/defaults in the lookup_dict.
* Change/improve function-local documentation for lookup_dict().
* Add specific use-case of "base" argument for lookup_dict() in the
formulas documentation.
* Expand filter_by() unit testing to validate use of base argument.
* Add unit test for salt.utils.dictupdate.update() to provide
complete depth-of-testing of filter_by() which uses
dictupdate.update().
2014-10-24 11:13:47 -06:00
rallytime
df827ab13c
Merge branch '2014.7' into develop
...
Conflicts:
salt/utils/minions.py
2014-10-21 16:07:33 -06:00
rallytime
ed37dde094
Pylint fix
2014-10-20 21:21:01 -06:00
rallytime
3020b2084b
Test long jid passed on CLI
2014-10-20 16:53:56 -06:00
Thomas S Hatch
1468c26ec1
Merge branch '2014.7' into develop
...
Conflicts:
doc/faq.rst
doc/ref/configuration/minion.rst
salt/minion.py
salt/states/pkg.py
salt/transport/__init__.py
2014-10-13 15:03:33 -06:00
Pedro Algarvio
e683619f9f
Having data left to read does not mean the process is alive
2014-10-13 17:19:42 +01:00
Pedro Algarvio
4470c0dc68
White-space lint fix
2014-10-12 04:29:59 +01:00
Pedro Algarvio
51479e4592
Include a test case in order to check for full output from VT
2014-10-12 03:37:08 +01:00
Pedro Algarvio
743c26e562
Instead of checking for a live process, check for unread data.
...
Add a unit test which tests proper behaviour.
Fixes #15941
2014-10-12 02:28:35 +01:00
Colton Myers
3e741d7a98
Merge branch '2014.7' into develop
2014-09-25 16:37:35 -06:00
rallytime
b891ef12f0
Skip test_vt_size unit test
2014-09-25 15:38:01 -06:00
Colton Myers
8d0bf0ee95
Merge branch '2014.7' into develop
...
Conflicts:
salt/states/pip_state.py
2014-09-15 11:49:04 -06:00
rallytime
e34157c70b
Add skipIf import to fix the 2014.7 tests
2014-09-15 08:23:08 -06:00
Pedro Algarvio
a171a35c89
Disable test_issue_10404_ptys_not_released
...
Disabled until we can find out why this kills the tests suite with an exit code of 134
2014-09-14 23:54:38 +01:00
Thomas S Hatch
245c06100d
Merge pull request #15568 from jacksontj/process_manage
...
Process manager
2014-09-09 11:30:30 -06:00
Thomas Jackson
4a83d8a9c3
Pylint cleanup
2014-09-06 15:45:15 -07:00
Thomas Jackson
d029685e96
Change main master daemon to use ProcessManager
...
Add tests for processmanager
2014-09-06 14:31:20 -07:00
Antoine Jacoutot
1ef276575f
tests: recognize OpenBSD
2014-09-04 10:23:59 +02:00
Thomas S Hatch
b0561a703b
Revert "Pull out pending_events changes and reuse"
...
This reverts commit e832a3a17f
.
2014-08-08 12:49:46 -06:00
Pedro Algarvio
21141af46a
Skip tests if real mock library is not available
2014-08-08 00:46:21 +01:00
Michael Birtwell
32acb7aeae
Pull out pending_events changes and reuse
...
PendingEventsBase implements all the pending_events queue management
Make both normal SaltEvent and raetevent.SaltEvent inherit from this to
standardise the get_event interface.
Update tests for event.SaltEvent (Couldn't find tests for
raetevent.SaltEvent)
2014-07-31 12:23:38 -06:00
Thomas S Hatch
0577b4070b
lint fix
2014-07-25 10:21:31 -06:00
Pedro Algarvio
ea01af39b4
Skip test on Darwin after making an effort
2014-07-24 13:12:46 +01:00
rallytime
9b9a60efea
Skip vt_test in os x - still needs some work to run
2014-07-23 14:40:03 -06:00
Nicole Thomas
486dbe3476
Merge pull request #14389 from s0undt3ch/hotfix/osx-pyt-nr
...
Allow the VT tests to run on OSX
2014-07-23 14:38:58 -06:00
Pedro Algarvio
6c7e39dfcd
Factor out into a function the current number of PTY's detection code
2014-07-23 19:43:18 +01:00
rallytime
51c7b95e6f
Give rhel5 a chance to pass the cache tests
2014-07-22 15:38:54 -06:00
Pedro Algarvio
fa2149e1da
Allow the VT tests to run on OSX
2014-07-22 15:20:03 +01:00
rallytime
7bb5ef3773
Skip lxc tests if no lxc and skip failing vt_test if running osx
2014-07-21 17:11:20 -06:00
Thomas S Hatch
6abccbc0cf
fix this better, don't use clean_proc from master.py.
2014-07-15 15:06:15 -06:00
rallytime
7bea8f5cb6
Change python asserts to unittest asserts
2014-07-15 11:56:50 -06:00
rallytime
c5c841750a
Raise ValueError instead of returning in utils.schedule.eval
2014-07-09 11:59:31 -06:00
rallytime
7942350a65
Fix where=None bug
2014-07-08 16:58:19 -06:00
rallytime
0a7b58652b
Fix potential KeyError in schedule.delete and more unit tests
2014-07-08 15:54:30 -06:00
rallytime
a3c1d0e320
A few more tests for enabling and disabling jobs
2014-07-08 12:00:08 -06:00
rallytime
5ad8bb8f01
Update test docstrings
2014-07-08 11:38:16 -06:00
rallytime
cf11ca22d0
More scheduler unit tests and fixed keyerror possibility
2014-07-08 11:27:32 -06:00
rallytime
d5c2a92d24
Fix typo in email from bad copy-paste
2014-07-07 16:12:11 -06:00
rallytime
a7eadd74ff
remove unnecessary comment
2014-07-03 15:49:59 -06:00
rallytime
656db75ac0
Started some schedule unit tests
2014-07-03 15:48:46 -06:00
Erik Johnson
d726c2f48a
Add additonal unit tests for pull request #13713
2014-06-25 11:52:02 -05:00
Pedro Algarvio
34fcf1da45
Test if we're closing open PTY's
2014-06-19 13:08:50 +01:00
Thomas S Hatch
396078d1aa
Merge pull request #13446 from anylain/add_traverse_dict_and_list
...
Add salt.utils.traverse_dict_and_list()
2014-06-14 07:23:15 -06:00
panying
742607a33f
+ add test_traverse_dict_and_list
2014-06-14 15:25:02 +08:00
Mathieu Le Marec - Pasquet
a6262beeb3
Fix the broken check state logic
2014-06-13 13:20:14 +02:00
Pedro Algarvio
0564fc363e
A more generic directory name
2014-06-10 03:25:14 +01:00
Pedro Algarvio
9bd6d330ec
Change to an existing directory before importing keyring
2014-06-10 01:52:53 +01:00
Thomas S Hatch
ba4cc71a14
fix more sls to yamlex refs
2014-05-30 10:14:47 -06:00
Thomas S Hatch
8b3dabbf7d
lint
2014-05-30 09:45:46 -06:00
Pedro Algarvio
204ed95c2c
PyLint ignore W1111 (assignment-from-none)
2014-05-30 09:38:35 +01:00
Pedro Algarvio
4d7ca91424
Remove unnecessary
©️ and :license:
from file headers
2014-05-26 19:26:15 +01:00
Erik Johnson
5e0d10f03c
Update event tests to use truncated hash
2014-05-23 08:57:01 -05:00
David Boucha
9dc182a2f4
fix codeauthor misspellings
2014-05-21 18:59:02 -06:00
Erik Johnson
5c07011d65
Remove unnecessary test module
2014-05-07 13:00:33 -05:00
Pedro Algarvio
e31ca389ae
Provide a custom keyring just for tests.
...
Properly skip tests.
2014-04-27 13:26:59 +01:00
Marek Skrobacki
524113fc4f
fix pylint warnings
2014-04-26 10:21:26 +01:00
Marek Skrobacki
10ce848828
remove hard-dependency on keyring
2014-04-25 18:11:24 +01:00
Marek Skrobacki
7fbb5fcb78
add tests for keyring utils
2014-04-25 17:22:48 +01:00
Pedro Algarvio
f07e614a31
Adapt the tests to the new deprecation output.
2014-04-24 11:32:46 +01:00
Pedro Algarvio
500513375e
Use salt's master clean_proc
routine.
...
On Fedora 20, we hit an issue, at least, similar to #3618 .
While debugging it, I've found that the runtests process keeps eating
memory.
Using `clean_proc` has at least, allowed the runtests to finish without
triggering #3618 .
2014-04-18 07:52:40 +01:00
Yusuke Tsutsumi
f5b4ac2395
Adding introspection methods for yum and apt-get
...
* adding yumpkg:owner
* adding aptpkg:owner
* refactoring owner method to utils.pkg library
2014-04-14 14:05:43 -04:00
Thomas S Hatch
09769d6fa2
lint tests
2014-04-02 11:16:24 -06:00
Pedro Algarvio
7c782f6752
Adapt test case because we default to dropping unrelated events.
...
The previous default was not dropping unrelated event, however, this
could cause memory leaks, so, the current default is dropping those
events.
We now test for both behaviours.
2014-03-31 03:31:23 +01:00
Pedro Algarvio
ed12816806
Update tests to new event classes signatures.
2014-03-24 16:54:31 +00:00
Thomas S Hatch
4af873dcaf
Merge pull request #11337 from techdragon/fix-hightstate-failure-retcode
...
Fix for broken salt cmd return codes - issue #7013
2014-03-22 00:31:19 -06:00
Thomas S Hatch
43de620730
Merge pull request #11413 from s0undt3ch/hotfix/immutable-lists-sum
...
Simpler immutable types
2014-03-21 11:40:09 -06:00
Pedro Algarvio
5fa42543e3
Fix reference and allow standalone test excution.
2014-03-21 12:51:42 +00:00
Pedro Algarvio
f38b18ce7d
Fix reference.
2014-03-21 12:48:06 +00:00
Pedro Algarvio
1825dfe635
Also test slicing
2014-03-21 12:45:54 +00:00
Pedro Algarvio
49bdbefb66
No more proxied immutables. Add test for nested immutables.
2014-03-20 23:59:38 +00:00
techdragon
e2a04d2877
Fixes & Updates
...
- fixed pep8 issue
- added more logic to check_state_result logic to handle list results properly and return false.
- ordered the check_state_result unit tests more logically. All the data type tests are now before the content & logic handling checks
- discovered duplicate test in check_state_result unit tests and removed it, both tests were asserting using the same data {'host': []}
2014-03-20 15:08:34 +08:00
Pedro Algarvio
4c7d06a64a
Test ImmutableList
sum
2014-03-13 20:10:44 +00:00
Thomas S Hatch
8c6c608958
Merge branch 'serializers' of git://github.com/johnnoone/salt into johnnoone-serializers
...
Conflicts:
doc/topics/yaml/index.rst
2014-03-07 14:53:03 -07:00
Thomas Jackson
96c76f7a73
Add some unit tests for cache object
2014-03-05 18:12:20 -08:00
George Marshall
8f66db2e0f
Teach utils.option to fail so that it can succeed
2014-02-28 21:57:03 -08:00
Xavier Barbosa
a3b87d1981
a little bit of lint
2014-02-21 13:49:54 +01:00
Xavier Barbosa
9f39d4171b
added reset tag
2014-02-21 09:52:31 +01:00
Xavier Barbosa
85a5c9e617
ensure that str are yaml friendly
2014-02-20 17:50:49 +01:00
Xavier Barbosa
ad9734e78f
implement aggregation
2014-02-20 13:57:37 +01:00
Xavier Barbosa
9d32696939
implement serializers
2014-02-20 12:00:21 +01:00
Thomas S Hatch
17edf0b1a7
Merge pull request #10288 from s0undt3ch/hotfix/lint
...
Lint Fixes
2014-02-10 12:22:09 -07:00
Thayne Harbaugh
08ed0f0e1e
Do not fail if the system does not support IPv6
...
Fixes : #10318
2014-02-10 11:01:34 -07:00
Pedro Algarvio
2d5aafa12b
Remove unused imports
2014-02-08 08:09:13 +00:00
Pedro Algarvio
24fdc6f688
Ignore unused imports
2014-02-08 08:08:49 +00:00
Pedro Algarvio
baa3a4b8cf
Remove hardcoded version, we're regex matching.
2014-01-03 00:40:45 +00:00
Pedro Algarvio
b03c779718
Don't assume mock
and timelib
are instaled.
2013-12-31 13:53:37 +00:00
Mike Place
17dea90f63
Fix RHEL5 zmq unit tests
...
* Import zmq, check its attr and skip test if necessary.
2013-12-30 14:37:17 -07:00
Mike Place
4b7148a0f5
Don't test deprecated function.
...
* utils.memoize has been moved to salt.utils.decorators. Don't test it here.
2013-12-27 13:28:42 -07:00
Mike Place
72b565af2c
Optimize imports.
2013-12-23 20:55:43 -07:00
Mike Place
f8b772f970
More aggressive IPC fix.
2013-12-23 19:36:57 -07:00
Mike Place
8efa385291
More unit tests. Many, many more.
2013-12-23 17:16:05 -07:00
Mike Place
ae4fdc1066
Raise IPC check even higher to resolve failing tests in Jenkins.
2013-12-23 17:11:24 -07:00
Mike Place
d15bd31b9c
Unit testing and utils refinements
...
* More unit tests against utils module
* Minor modifications to utils module for formatting.
* Remove case which could not be reached inside utils module.
2013-12-23 17:10:29 -07:00
Mike Place
83b08df07d
Clarify len of line.
2013-12-23 17:06:22 -07:00
Thomas S Hatch
fb0ca047d1
Fix lint errors in tests
2013-12-23 09:25:16 -07:00
Mike Place
fab5535240
test is_true
2013-12-22 19:23:45 -07:00
Mike Place
647f954c7c
More detailed testing against the state verifier utility.
2013-12-22 19:15:59 -07:00
Mike Place
451cd8d7ea
Default var and typo.
2013-12-22 16:40:09 -07:00
Mike Place
0ef7c56e11
Doh. Typo.
2013-12-22 16:37:07 -07:00
Mike Place
dc5874fb1c
Don't run event tests on systems that can't support them.
2013-12-22 16:33:07 -07:00
Thomas S Hatch
706665ff0d
Merge pull request #9382 from cachedout/docker-unit-tests
...
Unit testing
2013-12-20 16:17:58 -08:00
Mike Place
b77fce5816
Many more unit tests for salt.utils
...
Small doc change.
2013-12-20 17:12:49 -07:00
Thomas S Hatch
b63c0449ac
Stub out bad test
2013-12-20 13:55:37 -07:00
Mike Place
05b78e30bc
More utils testing.
2013-12-20 13:47:01 -07:00
Mike Place
4176354820
Pylint fixes for regex errors.
2013-12-20 09:42:15 -07:00
Mike Place
40ecf088f2
Work on salt.utils unit testing.
2013-12-20 08:34:33 -07:00
Mike Place
3bb714282e
Starting on unit tests for docker and salt.utils.
2013-12-19 09:14:59 -07:00
Pedro Algarvio
4bbd0c512d
Too much white-space added.
2013-12-14 17:42:51 +00:00
Pedro Algarvio
82973662e9
Disable the VT test, the code ain't mature enough.
2013-12-14 17:37:06 +00:00
Pedro Algarvio
d8453a4b91
Make sure we can actually get the size of the terminal before trying.
2013-12-12 09:53:36 +00:00
Pedro Algarvio
b15b3237e9
Update self.args
even if shell
is not True
2013-12-11 14:23:11 +00:00
Pedro Algarvio
1341573532
Fix the SSH password regular expression.
2013-12-10 11:08:52 +00:00
Pedro Algarvio
e45cbf1dca
Add unit test for the ssh password regex matching
2013-12-10 10:46:25 +00:00
Thomas S Hatch
41df5b16f3
pylint
2013-12-06 10:50:24 -07:00
Ollie Walsh
68e0e3a106
Add unit test for event timeouts
2013-12-03 22:44:52 +00:00
Pedro Algarvio
877bdb2a90
Lint white-space fixes.
2013-12-03 20:30:16 +00:00
Ollie Walsh
8bacb953c0
Fix typo
2013-12-03 01:45:18 +00:00
Ollie Walsh
d81aeb2c0e
More tests
2013-12-03 01:22:51 +00:00
Ollie Walsh
f9aca16aee
More unit tests and longer timeouts for travis-ci
2013-12-02 23:20:54 +00:00
Ollie Walsh
6fe85f1294
Add some basic unit tests for events
2013-12-02 22:26:13 +00:00
Pedro Algarvio
0ae1a15c61
PEP8 E302 and E303 blank lines fixes.
2013-11-27 12:11:45 +00:00
Pedro Algarvio
14b59ac073
Include the coding header.
2013-11-27 12:04:43 +00:00
Pedro Algarvio
08c5c8e83a
Fix PyLint W1401, anomalous backslash.
2013-11-27 11:24:26 +00:00
Pedro Algarvio
d02a2bc224
Include the python encoding file header on tests.
2013-11-27 11:19:24 +00:00
Pedro Algarvio
b5c9815e9a
Arguments like pip==1.0
must not match yaml'ification as as keyword arguments.
2013-11-09 10:32:27 +00:00
Mike Place
00c7d36966
Exception handling for missing id
...
Refs #8259 . We don't like tracebacks. Includes unit test.
2013-11-07 11:59:07 -07:00
Pedro Algarvio
798e1830d5
Provide a default PATHEXT
environment variable.
...
Added test case which relies on the `PATHEXT` environment variable.
2013-10-28 16:05:19 +00:00
Pedro Algarvio
c8c6dab678
Add some comments to explain whats going on.
2013-10-27 16:53:39 +00:00
Pedro Algarvio
79391f107b
Provide a mocked version the tests to reach windows specific code.
2013-10-27 16:53:39 +00:00
Erik Johnson
a9d1c12481
Add unit test for salt.utils.which
...
This is a Linux-only test, it will need some mock love to make it
suitable to test for windows paths.
2013-10-27 16:53:39 +00:00
Pedro Algarvio
f0b78cd916
Format version
on deprecation messages.
...
Add a test case to check if a deprecation message get it's `version` format holder properly populated.
2013-10-04 09:53:51 +01:00
Pedro Algarvio
a9ceedb5eb
warn_until
and kwargs_warn_until
are now aware of named versions.
...
Updated the warnings tests cases accordingly.
2013-10-04 09:53:50 +01:00
Pedro Algarvio
8c9fe2c5c1
Fix the kwargs_warn_until
unit test case.
2013-10-04 09:53:50 +01:00
Pedro Algarvio
f028a004ad
Fix the warnings unit test.
...
Since the `warn_until` function now parses and instantiates a `SaltStackVersion`, the `bugfix` part of the version info is always shown.
2013-10-04 09:53:50 +01:00
Pedro Algarvio
800c918729
Let SaltStackVersion be the original one, not a MagicMock'ed one
2013-10-04 09:53:50 +01:00
Pedro Algarvio
ec07e5ae49
Adapt test cases to fixed behaviour.
2013-09-28 00:00:59 +01:00
Pedro Algarvio
9b3d504e03
Fix unit tests regarding salt.utils.find._parse_interval
2013-09-28 00:00:59 +01:00
Pedro Algarvio
a9d5ac5a3e
Add unit tests to salt.utils.format_call()
.
2013-09-24 22:08:08 +01:00
Pedro Algarvio
05be7064d5
0.17.0
has been tagged. The 0.16.x
requires_network
is no longer necessary.
2013-09-19 11:16:37 +01:00
Pedro Algarvio
e18ba0758b
Don't include authorship in generated documentation, the Sphinx way.
2013-09-16 17:24:00 +01:00
Chris Rebert
90f257df13
add salt.utils.kwargs_warn_until()
2013-09-10 17:12:25 -07:00
Pedro Algarvio
25a72358ab
Skip this test until properly mocked.
2013-08-28 15:21:29 +00:00
Pedro Algarvio
57feb4a015
One more missing import
2013-08-28 15:21:29 +00:00
Pedro Algarvio
5ea856c104
Fix missing import
2013-08-28 15:21:29 +00:00
Pedro Algarvio
2b64d0482d
Make sure every temp dir created on the unittests respects, integration.SYS_TMP_DIR
2013-08-27 15:31:58 +00:00
Pedro Algarvio
6e694791fb
Allow tests to be properly skipped if mock
is not installed.
2013-08-26 17:05:44 +00:00
Pedro Algarvio
2eab51a429
Adapted unit.utils.warnings_test
to use salttesting.mock
2013-08-26 13:03:04 +00:00
Pedro Algarvio
0c0751e793
Adapt the test case to the changes introduced in 7e9e889
2013-08-16 20:26:48 +01:00
Pedro Algarvio
2f750ed06c
Allow network related tests to be skipped if no network is available. Fixes #6710 .
2013-08-16 02:02:37 +01:00
Thomas S Hatch
4808281594
freebsd uses wheel as well
2013-08-13 01:01:10 -06:00
Pedro Algarvio
83004fd8f8
Allow salt.utils.warn_until()
to not issue the warning because we're only after the RuntimeError
behaviour.
2013-07-20 16:26:47 +01:00
Pedro Algarvio
eaa0b16e53
Added a helper function to raise warnings until a specified salt version.
...
The helper raises a warning, by default, a ``DeprecationWarning``, until the provided ``version_info`` is matched, after which, a ``RuntimeError`` will be raised to remember the developers to remove the warning.
2013-07-20 15:32:50 +01:00
Pedro Algarvio
6e061b5d24
Updated unit.utils.verify_test
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:04 +01:00
Pedro Algarvio
bdf808773d
Updated unit.utils.safe_walk_test
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:04 +01:00
Pedro Algarvio
0675fae89c
Updated unit.utils.runtime_whitespace_regex_test
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:04 +01:00
Pedro Algarvio
155987dc08
Updated unit.utils.path_join_test
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:04 +01:00
Pedro Algarvio
6e1f36fb22
Updated unit.utils.find_test
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:04 +01:00
Pedro Algarvio
f35367613e
Updated unit.utils.filebuffer_test
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:04 +01:00
Pedro Algarvio
2081aff707
Updated unit.utils.event_test
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:04 +01:00
Pedro Algarvio
663f54ef9f
Update copyright years of changed files. Added __main__
execution to tests/integration/states/pip.py
.
2013-06-28 00:12:57 +01:00
Pedro Algarvio
222be7b446
Make sure every test module is runnable by __main__
.
...
* Double to single quotes
2013-06-28 00:12:56 +01:00
Sylvain Fankhauser
101b9d2f2e
Rename build_whitepace_splited_regex to build_whitespace_split_regex
2013-05-15 12:48:08 +02:00
Chris Rebert
c487d86fff
tests: standardize to modern 'except FooError as err:' syntax
2013-05-03 19:55:50 -07:00