Jian Li | d486a73 | 2018-08-03 00:32:11 +0900 | [diff] [blame] | 1 | load( |
| 2 | "//apps/openstacknode:openstack4j.bzl", |
| 3 | "ALL_PACKAGES", |
| 4 | "EXCLUDE_PACKAGES", |
| 5 | "INCLUDE_PACKAGES", |
| 6 | "get_jackson_deps_path", |
| 7 | "get_openstack4j_deps_path", |
| 8 | ) |
| 9 | |
| 10 | COMPILE_DEPS = CORE_DEPS + JACKSON + KRYO + CLI + REST + [ |
| 11 | "//core/store/serializers:onos-core-serializers", |
| 12 | "//protocols/ovsdb/api:onos-protocols-ovsdb-api", |
| 13 | "//protocols/ovsdb/rfc:onos-protocols-ovsdb-rfc", |
| 14 | "//apps/openstacknode/api:onos-apps-openstacknode-api", |
| 15 | "//apps/openstacknetworking/api:onos-apps-openstacknetworking-api", |
Jian Li | 7b8c368 | 2019-05-12 13:57:15 +0900 | [diff] [blame^] | 16 | "@jersey_client//jar", |
Jian Li | 6343020 | 2018-08-30 16:24:09 +0900 | [diff] [blame] | 17 | "@httpclient_osgi//jar", |
| 18 | "@httpcore_osgi//jar", |
| 19 | "@commons_codec//jar", |
Jian Li | d486a73 | 2018-08-03 00:32:11 +0900 | [diff] [blame] | 20 | "@openstack4j_core//jar", |
| 21 | "@openstack4j_http_connector//jar", |
| 22 | "@openstack4j_httpclient//jar", |
| 23 | "@json_patch//jar", |
| 24 | "@jackson_coreutils//jar", |
| 25 | "@btf//jar", |
| 26 | "@msg_simple//jar", |
| 27 | "@snakeyaml//jar", |
Daniel Park | a73c236 | 2018-09-17 17:43:25 +0900 | [diff] [blame] | 28 | "@sshd_core//jar", |
| 29 | ] |
| 30 | |
| 31 | EXCLUDED_BUNDLES = [ |
| 32 | "@sshd_core//jar", |
Jian Li | d486a73 | 2018-08-03 00:32:11 +0900 | [diff] [blame] | 33 | ] |
| 34 | |
| 35 | TEST_DEPS = TEST_ADAPTERS + TEST_REST + [ |
| 36 | "//core/api:onos-api-tests", |
| 37 | "//apps/openstacknode/api:onos-apps-openstacknode-api-tests", |
| 38 | "//core/common:onos-core-common-tests", |
| 39 | "//web/api:onos-rest-tests", |
| 40 | ] |
| 41 | |
| 42 | osgi_jar_with_tests( |
| 43 | api_description = "REST API for OpenStack Networking", |
| 44 | api_package = "org.onosproject.openstacknetworking.web", |
| 45 | api_title = "OpenStack Networking API", |
| 46 | api_version = "1.0", |
| 47 | bundle_classpath = get_openstack4j_deps_path() + get_jackson_deps_path(), |
| 48 | import_packages = INCLUDE_PACKAGES + "," + EXCLUDE_PACKAGES + "," + ALL_PACKAGES, |
Jian Li | bb83f7c | 2018-11-13 01:47:19 +0900 | [diff] [blame] | 49 | karaf_command_packages = ["org.onosproject.openstacknetworking.cli"], |
Thomas Vachuska | a79bf6e | 2018-08-07 11:24:40 -0700 | [diff] [blame] | 50 | medium_tests = ["src/test/java/org/onosproject/openstacknetworking/util/OpenstackNetworkingUtilTest"], |
Ray Milkey | a01809a | 2018-08-09 09:20:06 -0700 | [diff] [blame] | 51 | test_deps = TEST_DEPS, |
Jian Li | d486a73 | 2018-08-03 00:32:11 +0900 | [diff] [blame] | 52 | web_context = "/onos/openstacknetworking", |
| 53 | deps = COMPILE_DEPS, |
| 54 | ) |