summaryrefslogtreecommitdiff
path: root/src/tests
AgeCommit message (Collapse)Author
2020-12-10test: vyos.validate: check is_addr_assigned()Christian Poessinger
2020-12-06Revert "vyos.ifconfig: T1579: do not remove IPv6 link-local address on ↵Christian Poessinger
reconfiguration" This reverts commit d247736f67cc056062b75a4215a031bebcfee2ee. We need to clean link-local IPv6 addresses on link reconfiguration to also drop no longer existing link-local addresse son MAC address change.
2020-12-06vyos.ifconfig: T1579: do not remove IPv6 link-local address on reconfigurationChristian Poessinger
2020-12-06test: vyos.template: test additional templating functionsChristian Poessinger
2020-11-13vyos.template: provide general is_ip(v4|v6) helpersChristian Poessinger
We had two places were the is_ip, is_ipv4 and is_ipv6 helpers had been defined. All places now have been converged into vyos.template as they are used both in the Jinja2 templates and also in our scripts.
2020-11-01openvpn: T2994: re-add ifconfig-pool statement in server configChristian Poessinger
Re-organize the template code and add addtitional Jinja2 filters for processing the ifconfig-pool statement. This reverts the changes from commit 7e546be9 ("openvpn: T2994: temporary revert to 1.2 crux behavior for client pools").
2020-11-01test: extend validate testcasesChristian Poessinger
Test additional network combinations of address and prefixes.
2020-11-01openvpn: T2994: remove workarounds for individual ipv4 and ipv6 keysChristian Poessinger
Remove workaround which split (local|remote)_address and also subnet keys into individual keys for the assigned IP address family (4/6). During template rendering check IP version by introducing new ipv4 and ipv6 Jinja2 filters {% if foo | ipv4 %} or {% if bar | ipv6 %} options.
2020-11-01test: adjust testcase name for vyos.util.dict_search()Christian Poessinger
After renaming the function in commit 25551c5a ("vyos.util: T2995: rename vyos_dict_search() -> dict_search()"), the test case should be renamed, too.
2020-11-01test: vyos.validate: add unittestsChristian Poessinger
2020-10-30openvpn: T2994: verify DH key lengthChristian Poessinger
2020-10-30vyos.util: T2995: change comment style for "make test" outputChristian Poessinger
2020-10-28vyos.util: T2995: rename vyos_dict_search() -> dict_search()Christian Poessinger
Renamed using snippet below: ---------------------------- for file in $(find . -name "*.py") do sed -i "s/vyos_dict_search/dict_search/" $file done
2020-10-25test: vyos.template: add testcase for vyos_*_from_cidr() convertersChristian Poessinger
2020-10-25test: import cleanupChristian Poessinger
2020-10-24Revert "test: vyos.util: add testcase for process_named_running()"Christian Poessinger
This reverts commit 9939139ba4ad18dc4b62a827d8ab7b74d0c28124. Unfortunately this test does not work within the CI system. It fails with: 17:21:35 ====================================================================== 17:21:35 FAIL: test_process_named_running (test_util.TestVyOSUtil) 17:21:35 ---------------------------------------------------------------------- 17:21:35 Traceback (most recent call last): 17:21:35 File "/var/lib/jenkins/jenkins_slave/workspace/vyos-1x_current/build/src/tests/test_util.py", line 34, in test_process_named_running 17:21:35 self.assertTrue(isinstance(pid, int)) 17:21:35 AssertionError: False is not true As process_named_running() returns None on non existing bash process
2020-10-24test: vyos.util: add testcase for process_named_running()Christian Poessinger
2020-10-24test: vyos.util: add testcase for find_device_file()Christian Poessinger
2020-10-19unittests: T2995: vyos_dict_search() must return None on non-existing keysChristian Poessinger
The current wversion unfortunately will raise a KeyError: >>> data = {} >>> vyos_dict_search('foo', data) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3/dist-packages/vyos/util.py", line 685, in vyos_dict_search return dict[path] KeyError: 'foo'
2020-10-19unittests: cleanup unused importsChristian Poessinger
2020-07-22xml: T2582: use xml for is_tag and is_leafThomas Mangin
2020-06-18T2614: add a key mangling option to vyos.config.get_config_dict()Daniil Baturin
2019-09-28T1694: delete the now broken tests for NTP.Daniil Baturin
2019-03-08[ntp] T1280 - reverting added options from that taskhagbard
2019-03-07[ntp] T1280 - restrict option for servers, so they can query upstreamhagbard
2019-03-07Revert "[ntp] adding extra option to test"hagbard
This reverts commit 4b2c57f4ba08409b4b6ba459fa8a3d23c5f6990c.
2019-03-07[ntp] adding extra option to testhagbard
2019-03-04adjusted ntp test to accept the 2 new restrict parametershagbard
2019-02-16Temporary remove hostname test to get module to compile againChristian Poessinger
2019-02-16hostname: additional test case fixesChristian Poessinger
2019-02-16Tests: fix hostname testsChristian Poessinger
Commit 3d3eccd687 ("T1174: migrate local hostname/DNS handling to vyos-1x") changed a lot of the internal data handling for setting the systems host and domain name information.
2019-02-14[vyos.configtree] T1248: add a function for node copyingDaniil Baturin
Also improve sanity checks in the rename function and add unit tests for copy and rename.
2019-01-30Add build time tests for NTPkamijin_fanta
2019-01-26T1193: add some tests for the config parser.Daniil Baturin
2019-01-22Revert "adjusted unit test"hagbard
This reverts commit 0d80b06ccd33fc2a0001b8641ce45070f0e8726d.
2019-01-21adjusted unit testhagbard
2018-07-18T749: add unit tests for the initial setup library.Daniil Baturin
2018-05-24T462: make cron jobs run with vyattacfg GID.Daniil Baturin
2018-05-19host-name: fix test_applyYuya Kusakabe
2018-05-17Add tests for host-name and domain-name againYuya Kusakabe
2018-05-17Temporarily remove the broken hostname tests so that the package can build.Daniil Baturin
2018-05-17Add tests for hostnameYuya Kusakabe
2018-05-16T644: remove prefixing from all scripts and update environment variables ↵Daniil Baturin
with VyOS paths.
2018-05-16Use '_' instead of '-' for python scripts for testYuya Kusakabe
2018-05-16T626 Add tests for vyos-update-crontab and initial setup for sonarcloudYuya Kusakabe