diff options
author | Jan Malkiewicz <jan.malkiewicz@nokia.com> | 2020-10-06 14:49:21 +0200 |
---|---|---|
committer | Jan Malkiewicz <jan.malkiewicz@nokia.com> | 2020-10-08 18:09:51 +0200 |
commit | 6ff92492d2d1712443fa2bef73f28bd8b8554e23 (patch) | |
tree | 412f3011d267c1c934f383a8047a88e935203e59 /certServiceK8sExternalProvider/test/certservice-provisioner | |
parent | b1ec7f0d28bcd699c9dc5aaf23e902f04145863c (diff) |
[OOM-K8S-CERT-EXTERNAL-PROVIDER] Create mock implementation
This project is a GOlang implementation of an external provider for kubernetes cert-manager.
External provider will use OOM CertService as backend signing CA.
Mock implementation only logs intent of certificate signing.
In order to provide the ultimate implemenatation please extend file 'certservice-provisioner.go'.
Issue-ID: OOM-2559
Signed-off-by: Jan Malkiewicz <jan.malkiewicz@nokia.com>
Change-Id: Ib3de4ca4c54424042ddaa50507375815cc3da7f4
Diffstat (limited to 'certServiceK8sExternalProvider/test/certservice-provisioner')
-rw-r--r-- | certServiceK8sExternalProvider/test/certservice-provisioner/certservice-provisioner_test.go | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/certServiceK8sExternalProvider/test/certservice-provisioner/certservice-provisioner_test.go b/certServiceK8sExternalProvider/test/certservice-provisioner/certservice-provisioner_test.go index a9435e2d..b439ef6b 100644 --- a/certServiceK8sExternalProvider/test/certservice-provisioner/certservice-provisioner_test.go +++ b/certServiceK8sExternalProvider/test/certservice-provisioner/certservice-provisioner_test.go @@ -1,13 +1,30 @@ +/* + * ============LICENSE_START======================================================= + * oom-certservice-k8s-external-provider + * ================================================================================ + * Copyright (C) 2020 Nokia. All rights reserved. + * ================================================================================ + * 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. + * ============LICENSE_END========================================================= + */ + package certservice_provisioner import ( - certservice_provisioner "onap.org/oom-certservice/k8s-external-provider/src/certservice-provisioner" "testing" ) func TestSignCertificate(t *testing.T) { - certservice_provisioner.SignCertificate() - - t.Logf("Everything is OK.") + t.Logf("Dummy GO test --> Everything is OK <--.") } |