salt/tests
Evan Borgstrom 4aec18b1e0 Refactor and modularize of the loader interface, adding Map to pyobjects
The problem with using the loaded states (see commit cc8539f) is that
you can end up in situations where a particular state doesn't exist for
whatever reason. This prevents you from building states freely (see
ticket #10918).

The refactor focuses on breaking out the `gen_functions` function into a
number of smaller reusable functions so that pyobjects can load all of
the states and still process `__virtual__()` and `__virtualname__` in a
way that makes sense for building states. After all pyobjects is just
compiling a high state data structure, if a state is available or not
during application time is up to the minion.

As part of this refactor I have also updated all of the inline comments
in the loader to be more consistent with the way things are actually
working now (such as `__virtual__()` returning a string being
deprecated).

There are also some pep8 fixes to the loader file.

Fix #10918

----

This also adds a new feature to pyobjects named `Map`, which allows for
definition of grain dependent data in a pythonic way -- using inner
classes.

----

Lastly this ditches the instance based registry and instead uses a class
based approach like a singleton.
2014-03-12 22:23:32 -04:00
..
integration Merge pull request #11155 from rallytime/mac_user_test 2014-03-11 23:17:03 -06:00
unit Refactor and modularize of the loader interface, adding Map to pyobjects 2014-03-12 22:23:32 -04:00
__init__.py Include the python encoding file header on tests. 2013-11-27 11:19:24 +00:00
consist.py Make use of the print() function. 2014-02-03 11:07:43 +00:00
eventlisten.py Make use of the print() function. 2014-02-03 11:07:43 +00:00
jenkins.py Make use of the print() function. 2014-02-03 11:07:43 +00:00
minionswarm.py Pass the minionswarm user through to salt-key 2014-02-06 10:59:34 -07:00
runtests.py For output consistency. 2014-02-09 00:21:18 +00:00
saltsh.py Use __opts__.get 2014-01-28 14:27:29 -07:00
wheeltest.py Include the python encoding file header on tests. 2013-11-27 11:19:24 +00:00