X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftest_data%2Flisp%2Fapi%2Flisp_api_resources.py;fp=tests%2Fsuites%2Flisp%2Fresources%2Flisp_api_resources.py;h=4502c3cb495de82374a356b2ea38e41d7e9e661e;hp=7a85fd85587cea8391043ce6c0ad5a52f586f62a;hb=021f8d100444281caf176b33f6dcc12bfba09f1f;hpb=cf48c2c10995284b9df0e87adcc101b76cd5ced7 diff --git a/tests/suites/lisp/resources/lisp_api_resources.py b/resources/test_data/lisp/api/lisp_api_resources.py similarity index 58% rename from tests/suites/lisp/resources/lisp_api_resources.py rename to resources/test_data/lisp/api/lisp_api_resources.py index 7a85fd8558..4502c3cb49 100644 --- a/tests/suites/lisp/resources/lisp_api_resources.py +++ b/resources/test_data/lisp/api/lisp_api_resources.py @@ -13,45 +13,45 @@ """Test variables for Lisp API test suite.""" -"""Lisp status example test data.""" -lisp_status = [[{"gpe_status":"disabled", - "feature_status":"disabled"}], - [{"gpe_status":"enabled", - "feature_status":"enabled"}]] +# Lisp status example test data. +lisp_status = [{"gpe_status":"disabled", + "feature_status":"disabled"}, + {"gpe_status":"enabled", + "feature_status":"enabled"}] -"""Example lisp local eid we want set to VPP -and then check if is set correct.""" -eid_table = [{'eid address': '192.168.0.1', +# Example lisp local eid we want set to VPP +# and then check if it is set correctly. +eid_table = [{'eid': '192.168.0.1', 'vni': 0, - 'eid prefix len': 24, + 'eid-prefix-len': 24, 'locator-set': 'ls1'}, - {'eid address': '192.168.1.1', + {'eid': '192.168.1.1', 'vni': 0, - 'eid prefix len': 24, + 'eid-prefix-len': 24, 'locator-set': 'ls1'}, - {'eid address': '192.168.2.1', + {'eid': '192.168.2.1', 'vni': 0, - 'eid prefix len': 24, + 'eid-prefix-len': 24, 'locator-set': 'ls1'}, - {'eid address': '192.168.3.1', + {'eid': '192.168.3.1', 'vni': 0, - 'eid prefix len': 24, + 'eid-prefix-len': 24, 'locator-set': 'ls1'}, - {'eid address': '10:1::1', + {'eid': '10:1::1', 'vni': 0, - 'eid prefix len': 32, + 'eid-prefix-len': 32, 'locator-set': 'ls1'}, - {'eid address': '10:2::1', + {'eid': '10:2::1', 'vni': 0, - 'eid prefix len': 32, + 'eid-prefix-len': 32, 'locator-set': 'ls1'}, - {'eid address': '10:3::1', + {'eid': '10:3::1', 'vni': 0, - 'eid prefix len': 32, + 'eid-prefix-len': 32, 'locator-set': 'ls1'}] -"""Example lisp map resolvers data we want set to VPP -and then check if is set correct.""" +# Example lisp map resolvers data we want set to VPP +# and then check if it is set correctly. map_resolver = [{'map resolver': '192.169.0.1'}, {'map resolver': '192.169.1.1'}, {'map resolver': '192.169.2.1'},