mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
81bf332be4
This marks the beginning of a migration of the pydsl renderer tests to the integration test suite and away from the unit test suite. The unit test approach is becoming too difficult to maintain due to its complex approach to trying to internally manage a highstate run instead of calling into the salt state system to fully manage it.
12 lines
485 B
Scheme
12 lines
485 B
Scheme
#!pydsl|stateconf -ps
|
|
include('pydsl.xxx')
|
|
yyy = include('pydsl.yyy')
|
|
# ensure states in xxx are run first, then those in yyy and then those in aaa last.
|
|
extend(state('pydsl.yyy::start').stateconf.require(stateconf='pydsl.xxx::goal'))
|
|
extend(state('.start').stateconf.require(stateconf='pydsl.yyy::goal'))
|
|
extend(state('pydsl.yyy::Y2').cmd.run('echo Y2 extended >> {0}'.format('/tmp/output')))
|
|
__pydsl__.set(ordered=True)
|
|
yyy.hello('red', 1)
|
|
yyy.hello('green', 2)
|
|
yyy.hello('blue', 3)
|