blob: e11551a8a9c3c443fb34b213cace5408949ba442 [file] [log] [blame]
Jian Lid486a732018-08-03 00:32:11 +09001load(
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
10COMPILE_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 Li7b8c3682019-05-12 13:57:15 +090016 "@jersey_client//jar",
Jian Li63430202018-08-30 16:24:09 +090017 "@httpclient_osgi//jar",
18 "@httpcore_osgi//jar",
Jian Lif654dd12020-01-30 17:41:26 +090019 "@commons_net//jar",
Jian Li63430202018-08-30 16:24:09 +090020 "@commons_codec//jar",
Jian Lid486a732018-08-03 00:32:11 +090021 "@openstack4j_core//jar",
22 "@openstack4j_http_connector//jar",
23 "@openstack4j_httpclient//jar",
24 "@json_patch//jar",
25 "@jackson_coreutils//jar",
26 "@btf//jar",
27 "@msg_simple//jar",
28 "@snakeyaml//jar",
Daniel Parka73c2362018-09-17 17:43:25 +090029 "@sshd_core//jar",
30]
31
32EXCLUDED_BUNDLES = [
33 "@sshd_core//jar",
Jian Lid486a732018-08-03 00:32:11 +090034]
35
36TEST_DEPS = TEST_ADAPTERS + TEST_REST + [
37 "//core/api:onos-api-tests",
38 "//apps/openstacknode/api:onos-apps-openstacknode-api-tests",
39 "//core/common:onos-core-common-tests",
40 "//web/api:onos-rest-tests",
41]
42
43osgi_jar_with_tests(
44 api_description = "REST API for OpenStack Networking",
45 api_package = "org.onosproject.openstacknetworking.web",
46 api_title = "OpenStack Networking API",
47 api_version = "1.0",
48 bundle_classpath = get_openstack4j_deps_path() + get_jackson_deps_path(),
49 import_packages = INCLUDE_PACKAGES + "," + EXCLUDE_PACKAGES + "," + ALL_PACKAGES,
Jian Libb83f7c2018-11-13 01:47:19 +090050 karaf_command_packages = ["org.onosproject.openstacknetworking.cli"],
Thomas Vachuskaa79bf6e2018-08-07 11:24:40 -070051 medium_tests = ["src/test/java/org/onosproject/openstacknetworking/util/OpenstackNetworkingUtilTest"],
Ray Milkeya01809a2018-08-09 09:20:06 -070052 test_deps = TEST_DEPS,
Jian Lid486a732018-08-03 00:32:11 +090053 web_context = "/onos/openstacknetworking",
54 deps = COMPILE_DEPS,
55)