aboutsummaryrefslogtreecommitdiffstats
path: root/certServiceK8sExternalProvider/src/cmpv2provisioner/cmpv2_provisioner_test.go
AgeCommit message (Collapse)AuthorFilesLines
2021-07-21[OOM-K8S-CERT-EXTERNAL-PROVIDER] Add handling request when updateEnpoint is ↵Tomasz Wrobel1-0/+32
missing Issue-ID: OOM-2753 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: I06fc3043787631b83cc776b1e446700bd13f9863
2021-07-20[OOM-K8S-CERT-EXTERNAL-PROVIDER] Refactor provider codePiotr Marcinkiewicz1-15/+10
- add csr and key params to SignCertificateModel - correct handling error when signing csr fails - create factory for SignCertificateModel Issue-ID: OOM-2753 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: I9bc296dfc999de0390ec90a00cbaa9dd82c89265
2021-07-15[OOM-K8S-CERT-EXTERNAL-PROVIDER] Add send update request functionalityTomasz Wrobel1-3/+43
Issue-ID: OOM-2753 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: I0637ded5c870cc66c7dc27dff269dab0f7d9015b
2020-11-05[OOM-K8S-CERT-EXTERNAL-PROVIDER] Add CertificateRequest controller testPiotr Marcinkiewicz1-55/+11
- Add CertificateRequest controller test with fake K8s API Issue-ID: OOM-2559 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: I4e32c2d28f5c4ea35dd013119dfc31acb1646582
2020-11-04[OOM-K8S-CERT-EXTERNAL-PROVIDER] Add CMPv2IssuerController testPiotr Marcinkiewicz1-6/+3
- Add Reconcile test in CMPv2IssuerController Issue-ID: OOM-2559 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: I49aff7bc36f7da4df7eeaebaca144ee5a5bb9853
2020-11-02[OOM-K8S-CERT-EXTERNAL-PROVIDER] Filter not supported CSR propertiesRemigiusz Janeczek1-1/+6
Align EJBCA config with OOM Issue-ID: OOM-2559 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: I8ab73c84415e1ea1b09b6210ffbf84386315f9eb
2020-10-29[OOM-K8S-CERT-EXTERNAL-PROVIDER] Save CertService response as PEM artifactsTomasz Wrobel1-6/+2
Issue-ID: OOM-2559 Change-Id: I86ce277396f87fdde5ffafa4ca8f8fe9853daa3c Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com>
2020-10-26[OOM-K8S-CERT-EXTERNAL-PROVIDER] Add health check of CMPv2 provisioner ↵Jan Malkiewicz1-0/+5
(cert-service-api) Issue-ID: OOM-2559 Signed-off-by: Jan Malkiewicz <jan.malkiewicz@nokia.com> Change-Id: I81d4dcfcb10f71182ea667770bafb9556817b793
2020-10-22[OOM-K8S-CERT-EXTERNAL-PROVIDER] Add client for CertService APIRemigiusz Janeczek1-23/+31
Issue-ID: OOM-2559 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: I3bf6c36b9eec7a661202b18eb7765e332ccfbc07
2020-10-20[OOM-K8S-CERT-EXTERNAL-PROVIDER] Fix failing buildRemigiusz Janeczek1-21/+27
Adjust cmpv2_provisioner_test to use cmpv2provisioner.New(...) with updated signature Issue-ID: OOM-2559 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: I4ebc91326ddf189660991c65f1727338c7eae5fb
2020-10-20[OOM-K8S-CERT-EXTERNAL-PROVIDER] Add unit tests to cmpv2_provisionerJoanna Jeremicz1-2/+127
Add tests with input and output .pem files Tests should be adjusted to future implementation when possible Issue-ID: OOM-2559 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com> Change-Id: I39952c2cb0bd35bfd8337b22ca6e95c86509b4f7
2020-10-15[OOM-K8S-CERT-EXTERNAL-PROVIDER] Mock implementaion enhanced (part II)Jan Malkiewicz1-0/+30
Rename CertServiceIssuer -> CMPv2Issuer Checking for Issuer.Kind (has to be CMPv2Issuer) Introduced exit codes Refactoring file names and packages Moved tests to main package (according to GOlang convention) Issue-ID: OOM-2559 Signed-off-by: Jan Malkiewicz <jan.malkiewicz@nokia.com> Change-Id: I710d9f6c9bd22318e5152e5215b78d5a9e7b4540