blob: 0ce947d0a253a080528d7b5cc122c24bb6fed677 [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 Li63430202018-08-30 16:24:09 +090016 "@httpclient_osgi//jar",
17 "@httpcore_osgi//jar",
18 "@commons_codec//jar",
Jian Lid486a732018-08-03 00:32:11 +090019 "@openstack4j_core//jar",
20 "@openstack4j_http_connector//jar",
21 "@openstack4j_httpclient//jar",
22 "@json_patch//jar",
23 "@jackson_coreutils//jar",
24 "@btf//jar",
25 "@msg_simple//jar",
26 "@snakeyaml//jar",
Daniel Parka73c2362018-09-17 17:43:25 +090027 "@sshd_core//jar",
28]
29
30EXCLUDED_BUNDLES = [
31 "@sshd_core//jar",
Jian Lid486a732018-08-03 00:32:11 +090032]
33
34TEST_DEPS = TEST_ADAPTERS + TEST_REST + [
35 "//core/api:onos-api-tests",
36 "//apps/openstacknode/api:onos-apps-openstacknode-api-tests",
37 "//core/common:onos-core-common-tests",
38 "//web/api:onos-rest-tests",
39]
40
41osgi_jar_with_tests(
42 api_description = "REST API for OpenStack Networking",
43 api_package = "org.onosproject.openstacknetworking.web",
44 api_title = "OpenStack Networking API",
45 api_version = "1.0",
46 bundle_classpath = get_openstack4j_deps_path() + get_jackson_deps_path(),
47 import_packages = INCLUDE_PACKAGES + "," + EXCLUDE_PACKAGES + "," + ALL_PACKAGES,
Thomas Vachuskaa79bf6e2018-08-07 11:24:40 -070048 medium_tests = ["src/test/java/org/onosproject/openstacknetworking/util/OpenstackNetworkingUtilTest"],
Ray Milkeya01809a2018-08-09 09:20:06 -070049 test_deps = TEST_DEPS,
Jian Lid486a732018-08-03 00:32:11 +090050 web_context = "/onos/openstacknetworking",
51 deps = COMPILE_DEPS,
52)