Thomas S Hatch
0569fd06de
pytlint
2013-12-13 16:30:47 -07:00
Kaithar
b1ac292873
Made state_highstate more useful.
2013-12-13 05:47:25 +00:00
Kaithar
5836b1b040
Missing newline
2013-12-13 04:53:47 +00:00
Kaithar
866bc66bac
Unit test for including a state multiple times using pydsl.
2013-12-13 05:41:38 +00:00
Pedro Algarvio
d02a2bc224
Include the python encoding file header on tests.
2013-11-27 11:19:24 +00:00
Pedro Algarvio
badf339b01
Improve code readability.
2013-10-16 21:51:51 +01:00
Pedro Algarvio
cf7a0b6205
Don't trigger state events on pydsl unit tests.
2013-10-03 00:59:03 +01:00
Pedro Algarvio
8856c7a039
Dam! Missing import.
2013-08-13 10:38:37 +01:00
Pedro Algarvio
9d711508f5
Skip running the test is not attached to a TTY.
2013-08-13 10:25:49 +01:00
Thomas S Hatch
909edec564
Skip pydsl test without tty
2013-08-10 14:04:18 -06:00
Pedro Algarvio
785188802f
Temporary directories should respect integration.SYS_TMP_DIR
...
Also, skip if the directory was not actually created.
2013-08-10 20:10:10 +01:00
Pedro Algarvio
b03a5fcee3
Stop using the deprecated check_dns
in salt.config.minion_config
.
2013-07-20 01:38:09 +01:00
Pedro Algarvio
cb0922faf7
Updated some of the test cases to use a much more readable approach using salttesting.helpers.ensure_in_syspath()
.
2013-06-28 00:12:59 +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
Thomas S Hatch
367927b3d3
Fix #4912
...
Clint, this fixes it for me and still logicaly verifies the test
let me know if this works on your end
2013-05-07 22:36:34 -06:00
Chris Rebert
26209c1fc1
rm unused imports reported by pyflakes
2013-04-30 14:48:04 -07:00
Pedro Algarvio
5f58f0d28b
We need OrderedDict
support. So, as a last resort, provide our own.
...
* We try to import `OrderedDict` from the standard library, which is only available on python >= 2.7, if `ImportError` is raised we try to import it from `ordereddict`, a package available in PyPi. As a last resort, we provide our own implementation based on http://code.activestate.com/recipes/576669/ .
* Update all code requiring `OrderDict` to use our compatible import module.
2013-04-23 12:56:23 +01:00
Jack Kuan
ede7d9a762
Added doc for render time state execution and also fixed a bug with the feature.
2013-02-10 00:37:31 -05:00
Jack Kuan
fa7e327baf
Fix the merge conflicts in tests/unit/pydsl_test.py
2013-02-09 21:28:35 -05:00
Thomas S Hatch
f65626db0b
Update pydsl tests, still failing though
2013-02-09 15:07:59 -07:00
Thomas S Hatch
e63a01f853
Add docstring
2013-02-09 14:41:16 -07:00
Thomas S Hatch
ace2aade9f
Fix binary file issue from merge
2013-02-09 14:40:31 -07:00
Thomas S Hatch
858e86d597
Merge branch 'pydsl_compile_time_state_execution' of git://github.com/kjkuan/salt into kjkuan-pydsl_compile_time_state_execution
...
Conflicts:
tests/unit/pydsl_test.py
2013-02-09 14:31:36 -07:00
Jack Kuan
106cc0aa0e
Move the pydsl module into salt/utils/.
2013-02-08 17:49:21 -05:00
Thomas S Hatch
42024cab39
Clean out unused code
2013-02-08 10:57:20 -07:00
Pedro Algarvio
df2ac900c3
Fix pydsl unittest skip message + PEP8.
2013-02-06 05:10:47 +00:00
Jack Kuan
9bf7f72a43
Now calling a state(id declaration) at compile/render time executes it using salt['state.high']().
...
Also fixed a bug: Now we prevent the use of extend() after ordered execution was turned on once.
2013-02-05 14:50:40 -05:00
Jack Kuan
b7571dd891
Add support for #3483([pydsl] Import Python definitons from included files).
2013-02-01 12:32:19 -05:00
Jack Kuan
0976f42410
Fix test case skipping logic: if < py2.7 then no OrderedDict, so skip.
...
For ordered execution, PyDSL requires py2.7 or above. Although, it's
possible to make it work with a third-party OrderedDict implementation
like the yaml renderer does..., this is not bothered here.
2013-01-24 12:21:54 -05:00
Jack Kuan
5ad5cd9b6e
Fix a bug in the pydsl test case.
2013-01-21 10:27:06 -05:00
Jack Kuan
897f877bed
Added docs for pydsl and fixed a syntax inconsistency.
2013-01-20 01:21:05 -05:00
Pedro Algarvio
3629fe88c0
Fix tests.unit.pydsl_test
and tests.unit.stateconf_test
.
...
No more errors are shown because the configuration files are not readable, and in fact, the minion configuration can be use, unlike what was said in the comment.
2013-01-20 04:09:07 +00:00
Jack Kuan
a678901c48
Fix test cases for py2.6.
2013-01-18 14:14:42 -05:00
Jack Kuan
9c35844c56
Make pydsl work with stateconf.
...
- Added implicit ordering to pydsl.(turned on via __pydsl__.set(ordered=True))
- Fixed a KeyError bug in stateconf renderer that happens during id renaming.
- The stateconf renderer now generates a no-op start state as the
"first" state in a sls file.(enabled via -s)
- Made the stateconf renderer take high state input via the new -p
option, so we can pipe pydsl output into it.
- Added more and fixed some test cases for stateconf and pydsl.
2013-01-18 12:34:56 -05:00
Jack Kuan
791ca1cb44
Add test cases and fixed some corner cases.
2013-01-14 23:29:35 -05:00
Jack Kuan
a8b8a6eb18
Add a test module for pydsl and some bug fixes.
2013-01-14 23:29:35 -05:00