Matej Perina | d135c19 | 2017-07-18 13:59:41 +0200 | [diff] [blame] | 1 | from jvpp_connection import TestJVppConnection |
| 2 | |
| 3 | |
| 4 | class TestJVpp(TestJVppConnection): |
| 5 | """ JVPP Core Test Case """ |
| 6 | |
| 7 | def invoke_for_jvpp_core(self, api_jar_name, test_class_name): |
| 8 | self.jvpp_connection_test(api_jar_name=api_jar_name, |
| 9 | test_class_name=test_class_name, |
| 10 | timeout=10) |
| 11 | |
| 12 | def test_vpp_core_callback_api(self): |
| 13 | """ JVPP Core Callback Api Test Case """ |
| 14 | self.invoke_for_jvpp_core(api_jar_name="jvpp-core", |
| 15 | test_class_name="io.fd.vpp.jvpp.core.test." |
| 16 | "CallbackApiTest") |
| 17 | |
| 18 | def test_vpp_core_future_api(self): |
| 19 | """JVPP Core Future Api Test Case""" |
| 20 | self.invoke_for_jvpp_core(api_jar_name="jvpp-core", |
| 21 | test_class_name="io.fd.vpp.jvpp.core.test." |
| 22 | "FutureApiTest") |
| 23 | |
| 24 | def test_vpp_acl_callback_api(self): |
| 25 | """ JVPP Acl Callback Api Test Case """ |
| 26 | self.invoke_for_jvpp_core(api_jar_name="jvpp-acl", |
| 27 | test_class_name="io.fd.vpp.jvpp.acl.test." |
| 28 | "CallbackApiTest") |
| 29 | |
| 30 | def test_vpp_acl_future_api(self): |
| 31 | """JVPP Acl Future Api Test Case""" |
| 32 | self.invoke_for_jvpp_core(api_jar_name="jvpp-acl", |
| 33 | test_class_name="io.fd.vpp.jvpp.acl.test." |
| 34 | "FutureApiTest") |
| 35 | |
| 36 | def test_vpp_ioamexport_callback_api(self): |
| 37 | """ JVPP Ioamexport Callback Api Test Case """ |
| 38 | self.invoke_for_jvpp_core(api_jar_name="jvpp-ioamexport", |
| 39 | test_class_name="io.fd.vpp.jvpp.ioamexport." |
| 40 | "test.CallbackApiTest") |
| 41 | |
| 42 | def test_vpp_ioamexport_future_api(self): |
| 43 | """JVPP Ioamexport Future Api Test Case""" |
| 44 | self.invoke_for_jvpp_core(api_jar_name="jvpp-ioamexport", |
| 45 | test_class_name="io.fd.vpp.jvpp.ioamexport." |
| 46 | "test.FutureApiTest") |
| 47 | |
| 48 | def test_vpp_ioampot_callback_api(self): |
| 49 | """ JVPP Ioampot Callback Api Test Case """ |
| 50 | self.invoke_for_jvpp_core(api_jar_name="jvpp-ioampot", |
| 51 | test_class_name="io.fd.vpp.jvpp.ioampot." |
| 52 | "test.CallbackApiTest") |
| 53 | |
| 54 | def test_vpp_ioampot_future_api(self): |
| 55 | """JVPP Ioampot Future Api Test Case""" |
| 56 | self.invoke_for_jvpp_core(api_jar_name="jvpp-ioampot", |
| 57 | test_class_name="io.fd.vpp.jvpp.ioampot." |
| 58 | "test.FutureApiTest") |
| 59 | |
| 60 | def test_vpp_ioamtrace_callback_api(self): |
| 61 | """ JVPP Ioamtrace Callback Api Test Case """ |
| 62 | self.invoke_for_jvpp_core(api_jar_name="jvpp-ioamtrace", |
| 63 | test_class_name="io.fd.vpp.jvpp.ioamtrace." |
| 64 | "test.CallbackApiTest") |
| 65 | |
| 66 | def test_vpp_ioamtrace_future_api(self): |
| 67 | """JVPP Ioamtrace Future Api Test Case""" |
| 68 | self.invoke_for_jvpp_core(api_jar_name="jvpp-ioamtrace", |
| 69 | test_class_name="io.fd.vpp.jvpp.ioamtrace." |
| 70 | "test.FutureApiTest") |
| 71 | |
| 72 | def test_vpp_snat_callback_api(self): |
| 73 | """ JVPP Snat Callback Api Test Case """ |
| 74 | self.invoke_for_jvpp_core(api_jar_name="jvpp-nat", |
| 75 | test_class_name="io.fd.vpp.jvpp.nat.test." |
| 76 | "CallbackApiTest") |
| 77 | |
| 78 | def test_vpp_snat_future_api(self): |
| 79 | """JVPP Snat Future Api Test Case""" |
| 80 | self.invoke_for_jvpp_core(api_jar_name="jvpp-nat", |
| 81 | test_class_name="io.fd.vpp.jvpp.nat.test." |
| 82 | "FutureApiTest") |