summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2017-01-13T249: add support for inactive and ephemeral nodes to the curly config parser.Daniil Baturin
2017-01-13T254: disallow node names with characters significant to the curly config parserDaniil Baturin
(whitespace, braces, square brackets, quotes, and hash).
2017-01-13A few touches to the curly config lexer and parser.Daniil Baturin
Allow single quoted strings. Allow \r's as whitespace. Set line numbers on \n to enable better error reporting. Allow any non-reserved characters ([^\s\{\}\[\]\"\']) in identifiers and unquoted values.
2017-01-12T245: improve handling of nodes with duplicate names.Daniil Baturin
Two tag nodes with the same name ("ethernet eth0 {...} ethernet eth0 {...}") is an error. Two leaf nodes with the same name, however, are not an error. Values of the next nodes are merged into the first one, while all other data (comment and inactive and ephemeral properties are inherited from the first node. This mimics the old syntax of multi nodes, so a person who uses the old syntax out of habit in a handwritten config will get the result they expect.
2017-01-10Allow valueless nodes in the curly parser.Daniil Baturin
2017-01-09Not quite T245: add some unit tests for the curly parser.Daniil Baturin
2017-01-09T245: add Vytree.merge_children function for de-duplicating childrenDaniil Baturin
that share the same name by merging subsequent nodes into the first one. Bad thing: the comments of the outer nodes will be lost, but then again one should attach them to the inner node anyway, in non-pathological cases.
2017-01-05Remove the old tag node format from the example grammar.Daniil Baturin
2017-01-04Add a grammar for generating curly configs for parser fuzzing tests.Daniil Baturin
Subject to improvement and extension to cover more cases.
2016-12-30Add some unit tests for the Session.string_of_op function.Daniil Baturin
2016-12-30Fix the string_of_path test (square brackets are no longer part of the output).Daniil Baturin
2016-12-23T230: Add missing data access functions to the Reference_tree module with ↵Phil Summers
Unit tests
2016-12-23T230: Add missing data access functions to the Reference_tree module with ↵Phil Summers
unit tests
2016-12-22T226: Add secret and hidden properties to the reference tree.Phil Summers
2016-12-21T225: Added inactive and ephemeral fields to node data in Config_treePhil Summers
2016-12-20Add tests for the Reference_tree.is_multi function.Daniil Baturin
2016-12-20T224: add node comment functionality to the config tree.Daniil Baturin
2016-12-15Add a few missing reference tree test cases for valueless nodes and garbage ↵Daniil Baturin
after the value.
2016-12-15T212: use a directory (normally $program_dir/validators) for external ↵Daniil Baturin
validators. What's bad is that right now way too many things are aware of the nature of external validators, and the validators dir (formerly validators hashtable) is passed around a lot. We'll need to think it through.
2016-12-14T210: Add tests and test data for the vyconfd config loader.Daniil Baturin
2016-12-13Fix a few instances of sloppy sequences (with non-unit expressions).Daniil Baturin
2016-12-07Better test descriptions in vylist test, also add missing test.Daniil Baturin
2015-09-23Add more tests for set and delete.Daniil Baturin
2015-09-23Add delete function to Config_tree, add some tests for it.Daniil Baturin
2015-09-21Update tests for the Vylist API change.Daniil Baturin
2015-09-21Fix multilevel insert logic.Daniil Baturin
2015-06-03Add get_data function, a shortcut for getting a data of node at specified path.Daniil Baturin
Mainly for quickly getting data from a reference tree.
2015-06-03Make tree insert position-aware.Daniil Baturin
Make insertion at the beginning default behaviour. Implement insertion at the end.
2015-05-11Add vytree insertion load test.Daniil Baturin
2015-04-28Rename vyconf_tree_test to just vytree_test.Daniil Baturin
2015-04-28Add Vylist.in_list for quick checks.Daniil Baturin
2015-04-26Add config tree module.Daniil Baturin
2015-04-26Add Vytree.exists for checking if path exists in a tree.Daniil Baturin
2015-04-26Add path validation functionality.Daniil Baturin
2015-04-26Make Value_checker.validate_any return true if constraint list is emptyDaniil Baturin
(i.e. no constraints means anything goes).
2015-04-24Add validate_any to Value_checker for testing if a value passes at least one ↵Daniil Baturin
test.
2015-04-24Trivial reference tree load test.Daniil Baturin
2015-04-24Add test data for reference tree tests.Daniil Baturin
2015-04-24Initial implementation of the reference tree module.Daniil Baturin
2015-04-24Make find_xml_child return Xml.xml option rather than raise Not_found.Daniil Baturin
2015-04-24Add Vylist.complement for calculating difference between two listsDaniil Baturin
where one contains another (starting with the first element).
2015-04-23Quick and dirty path pretty printer.Daniil Baturin
2015-04-23Add get_existent_path for finding the part of a path that already exists in ↵Daniil Baturin
a tree.
2015-04-23Make insert require all but the last elements in the path to exist in the tree.Daniil Baturin
Making it linear time at cost of knowing the data for all path elements was probably a bad idea.
2015-04-15Add value validator module.Daniil Baturin
2015-04-14Abandon the idea of default data in Vytree.insert and use explicit data listDaniil Baturin
for multilevel insert.
2015-04-02Reverse the order of make/make_full arguments for easier partial application.Daniil Baturin
2015-04-02Fix Vytree.update and its unit test.Daniil Baturin
2015-04-01Add Vytree.update for updating the data attached to nodes.Daniil Baturin
2015-03-29Missing test in the tree testsuite.Daniil Baturin