summaryrefslogtreecommitdiff
path: root/test/config_tree_test.ml
AgeCommit message (Collapse)Author
2024-10-27T6718: update testsJohn Estabrook
Update tests, as appropriate: for example, the Vyconf config file grammar is distinct from the one currently used in vyos1x-config, consequently the curly_parser_test is not included.
2018-02-18Do not quote values that don't need quoting in Config_tree.renderDaniil Baturin
i.e. if they don't contain whitespace or characters of special significance to the parser (;[]{}#).
2018-02-17Add Config_tree.render_at_level function for correct rendering of configs ↵Daniil Baturin
for human consumption. The idea of the correct (for subsequent parsing) and familiar for all other purposes rendering: * When rendering the entire config, do not render the invisible "root" node, only render its children. * When rendering config at specified path, do not include any nodes that are within the path (e.g. if path "system login" exists, "show system" request output should start with "login {", not "system { login { ...").
2017-04-03T255: Add curly config renderer (#8)Shon Feder
* Add stand-alone config_tree renderer * Add tests for stand-alone config_tree renderer * Add renderer with reference tree * Add tests for Config_tree renderer with reftree * Update config files * Add refactoring functions and correct tests
2016-12-21T225: Added inactive and ephemeral fields to node data in Config_treePhil Summers
2016-12-20T224: add node comment functionality to the config tree.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-21Fix multilevel insert logic.Daniil Baturin
2015-04-26Add config tree module.Daniil Baturin