aboutsummaryrefslogtreecommitdiffstats
path: root/integration
diff options
context:
space:
mode:
authorJorge Hernandez <jorge.hernandez-herrero@att.com>2019-10-03 14:51:35 +0000
committerGerrit Code Review <gerrit@onap.org>2019-10-03 14:51:35 +0000
commit6487e3f517472906998dc1f90c16468c0bc27af6 (patch)
treeff5c195122a8bebb78ff9625b88959d2cb808e03 /integration
parentfa44790365e0919efdd85a7a8dc5466e5c190d6d (diff)
parent6cbc069782b70cbac6419f3925810f149baad447 (diff)
Merge "Review ccsdk dependencies to integrate cds actor"
Diffstat (limited to 'integration')
-rw-r--r--integration/pom.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/integration/pom.xml b/integration/pom.xml
index fb4924d3..7c28c142 100644
--- a/integration/pom.xml
+++ b/integration/pom.xml
@@ -40,6 +40,7 @@
<version.powermock>1.7.4</version.powermock>
<version.eclipselink>2.7.0</version.eclipselink>
<version.jackson>2.10.0.pr3</version.jackson>
+ <version.ccsdk>0.6.3</version.ccsdk>
</properties>
<distributionManagement>
@@ -236,6 +237,13 @@
<version>1.24</version>
</dependency>
+ <!-- Common Controller SDK -->
+ <dependency>
+ <groupId>org.onap.ccsdk.cds.components</groupId>
+ <artifactId>proto-definition</artifactId>
+ <version>${version.ccsdk}</version>
+ </dependency>
+
<!-- Test dependencies -->
<!-- In memory Database Engine -->
re># # Copyright (C) 2019 Bell Canada. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from google.protobuf.timestamp_pb2 import Timestamp import proto.CommandExecutor_pb2 as CommandExecutor_pb2 def get_blueprint_id(request): blueprint_name = request.identifiers.blueprintName blueprint_version = request.identifiers.blueprintVersion return blueprint_name + '/' + blueprint_version def build_response(request, results, is_success=True): if is_success: status = CommandExecutor_pb2.SUCCESS else: status = CommandExecutor_pb2.FAILURE timestamp = Timestamp() timestamp.GetCurrentTime() return CommandExecutor_pb2.ExecutionOutput(requestId=request.requestId, response=results, status=status, timestamp=timestamp)