From 910fa69e65b3d151ef2bdbbf90fdcc31cfa01008 Mon Sep 17 00:00:00 2001 From: Brinda Santh Date: Tue, 22 Oct 2019 16:14:00 -0400 Subject: [PATCH] Add grpc TLS property lib services. Issue-ID: CCSDK-1853 Signed-off-by: Brinda Santh Change-Id: I92c8b39a6db0bf7c1fe7e9928e4eddaef8a30f07 --- .../modules/commons/grpc-lib/pom.xml | 5 + .../grpc/BluePrintGrpcLibConfiguration.kt | 20 ++++ .../grpc/BluePrintGrpcLibData.kt | 26 +++++ .../service/BluePrintGrpcLibPropertyService.kt | 70 ++++++++++++-- ...rpcClientService.kt => BluePrintGrpcService.kt} | 6 ++ .../grpc/service/TLSAuthGrpcClientService.kt | 54 +++++++++++ .../grpc/service/TLSAuthGrpcServerService.kt | 49 ++++++++++ .../service/BluePrintGrpcLibPropertyServiceTest.kt | 70 +++++++++++++- .../grpc/service/BluePrintGrpcServerTest.kt | 105 +++++++++++++++++++++ .../service/MockTLSBluePrintProcessingServer.kt | 90 ++++++++++++++++++ .../grpc-lib/src/test/resources/tls-manual/README | 5 + .../test/resources/tls-manual/my-private-key.pem | 52 ++++++++++ .../resources/tls-manual/my-public-key-cert.pem | 27 ++++++ ms/blueprintsprocessor/parent/pom.xml | 10 ++ 14 files changed, 577 insertions(+), 12 deletions(-) rename ms/blueprintsprocessor/modules/commons/grpc-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/grpc/service/{BluePrintGrpcClientService.kt => BluePrintGrpcService.kt} (79%) create mode 100644 ms/blueprintsprocessor/modules/commons/grpc-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/grpc/service/TLSAuthGrpcClientService.kt create mode 100644 ms/blueprintsprocessor/modules/commons/grpc-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/grpc/service/TLSAuthGrpcServerService.kt create mode 100644 ms/blueprintsprocessor/modules/commons/grpc-lib/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/grpc/service/BluePrintGrpcServerTest.kt create mode 100644 ms/blueprintsprocessor/modules/commons/grpc-lib/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/grpc/service/MockTLSBluePrintProcessingServer.kt create mode 100644 ms/blueprintsprocessor/modules/commons/grpc-lib/src/test/resources/tls-manual/README create mode 100644 ms/blueprintsprocessor/modules/commons/grpc-lib/src/test/resources/tls-manual/my-private-key.pem create mode 100644 ms/blueprintsprocessor/modules/commons/grpc-lib/src/test/resources/tls-manual/my-public-key-cert.pem diff --git a/ms/blueprintsprocessor/modules/commons/grpc-lib/pom.xml b/ms/blueprintsprocessor/modules/commons/grpc-lib/pom.xml index 5945e29fd..15cabb260 100644 --- a/ms/blueprintsprocessor/modules/commons/grpc-lib/pom.xml +++ b/ms/blueprintsprocessor/modules/commons/grpc-lib/pom.xml @@ -1,6 +1,7 @@ @@ -665,6 +671,10 @@ com.google.protobuf protobuf-java-util + + io.netty + netty-tcnative-boringssl-static + -- 2.16.6