Toshio Kuratomi
b3452de8a7
Hook up the general parsing unittests and get them passing
10 years ago
James Cammarata
0a8c91a812
Fixing up tests, removing some of the yaml error stuff from parsing
...
* moved old unittests for vault over to the new codebase
* reverted YAML error helpers and reverted the load() function
in parsing/__init__.py, pending a rewrite of a new YAML loader
class of some kind to encapsulate all of that
* fixed an error in in the module args parser regarding the shell/
command argument parsing, where some additional arguments were
being lost
10 years ago
James Cammarata
0ed97e4d11
Updating v2 Role class code
10 years ago
Toshio Kuratomi
4c86bd3ca6
Merge the vault tempfile fix to the v2 tree
10 years ago
Toshio Kuratomi
e78c5f925b
Python3 fixes
10 years ago
Toshio Kuratomi
a954220957
Migrate the v2/tests to use the ansible.compat module
10 years ago
Toshio Kuratomi
3f27e5e080
Compat tree for code dealing with compatibility between python versions
10 years ago
James Cammarata
b0069a338e
Overhauls to v2 code
...
* using inspect module instead of iteritems(self.__class__.__dict__, due
to the fact that the later does not include attributes from parent
classes
* added tags/when attributes to Base() class for use by all subclasses
* removed value/callable code from Attribute, as they are not used
* started moving some limited code from utils to new places in v2 tree
(vault, yaml-parsing related defs)
* re-added ability of Block.load() to create implicit blocks from tasks
* started overhaul of Role class and role-related code
10 years ago
Toshio Kuratomi
5fe5e2d3f4
Docstring for v2 inventory.subset
10 years ago
Michael DeHaan
a60fd58145
Update block.py
...
Add note on block properties
10 years ago
James Cammarata
57d2622c8c
Adding block code and tests
10 years ago
James Cammarata
21577ff2cc
Moved v2 tests for plugins to new location
10 years ago
James Cammarata
1d04e4b3d2
Updating unittests for v2 stuff
10 years ago
Toshio Kuratomi
eafa718be1
Remove inherit from object as it's no longer needed to determine new-style classes
10 years ago
Toshio Kuratomi
acf4bc95a3
Give all v2 tests the python3 compat boilerplate
10 years ago
Toshio Kuratomi
18f30b00ba
Add python3-compat boiler to all core files
10 years ago
Toshio Kuratomi
ff8042c5c3
Add python3 compat boilerplate to executor
10 years ago
Toshio Kuratomi
c9abd0fd58
Stub out Inventory class - we're going to draw heavily on the existing
...
inventory for implementation
10 years ago
Michael DeHaan
6ca67c61cb
Starting to stub out some classes.
10 years ago
Toshio Kuratomi
a707f5acfe
Fix relative imports
10 years ago
Toshio Kuratomi
6ecca227b8
Fix missing import
10 years ago
Toshio Kuratomi
057c1df303
Remove temp file
10 years ago
Toshio Kuratomi
cf5ce97275
Somehow, git mv only rm'd test/v2 and didn't add v2/test
10 years ago
Toshio Kuratomi
b62e7ae8f5
Remove extraneous __init__ to fix v2 unittests
10 years ago
Toshio Kuratomi
46b54443f1
Add a README for the v2 unittests
10 years ago
Toshio Kuratomi
938b2108d0
Move the v2 tests under the v2 tree
10 years ago
Michael DeHaan
187da236b4
Add new class stubs
10 years ago
Michael DeHaan
ccd559137f
add missing headers, rm the subtree of ansible/inventory as we wish to overhaul it.
10 years ago
James Cammarata
a50332fc8a
Adding v2 error line support, and tests
10 years ago
Michael DeHaan
98ed69213b
Error -> ParserError
10 years ago
Michael DeHaan
79f41d9c1a
This makes the module args parser more functional to eliminate side effects and eliminiates the 'return None' error path
...
to make sure we are handling more use cases. Some paths are not yet complete, including most likely handling of the 'raw'
module.
10 years ago
Michael DeHaan
56b6cb5328
Teaching objects to load themselves, making the JSON/YAML parsing ambidexterous.
10 years ago
James Cammarata
c83a833740
New v2 ModuleArgsParser code and fixing up tests/other task code
10 years ago
Michael DeHaan
4cb7f654b6
Add stub tests for module args parsing.
10 years ago
James Cammarata
93e273333d
Adding tests for new yaml parsing stuff and adjusting imports
10 years ago
James Cammarata
8ab0749217
Adding new yaml parsing classes
10 years ago
Michael DeHaan
21642c0fbf
We need module args specific parsing classes.
10 years ago
Michael DeHaan
05231dcde6
Move over some of the parsing functions that we need.
10 years ago
Michael DeHaan
e8aa847e5b
Attempt to clean up the munging functions a little.
10 years ago
Michael DeHaan
d97b38ba83
Attribute defaults and optional accessors.
10 years ago
Michael DeHaan
e66a0096a7
Work in progress on task loading.
10 years ago
Michael DeHaan
1556b0384f
Add submodule references since v2 development will need them, the tree obviously does
...
not need two copies.
10 years ago
Michael DeHaan
f066e361f1
WIP on data structure processing patterns.
10 years ago
Michael DeHaan
8cecb0690f
Update base.py
...
updated with some notes
10 years ago
Michael DeHaan
94db7365b9
__getattr__ to hide some of the attribute magic.
10 years ago
Michael DeHaan
b54434c1b2
WIP on Attributes. Getting closer.
10 years ago
Michael DeHaan
6db1b4dfd2
WIP on refactoring changes
10 years ago
Michael DeHaan
b9223e5995
Add attribute starter notes
10 years ago
Michael DeHaan
335221d79e
This is an exceedingly rough sketch of what attributes might look like - metaclass implementations NOT complete.
10 years ago
Michael DeHaan
fa81680d9b
Fix docstring.
10 years ago