aboutsummaryrefslogtreecommitdiffstats
path: root/certServiceClient/src/test
AgeCommit message (Collapse)AuthorFilesLines
2020-11-13[OOM ext-cert-provider] Refacor in validation (intermediate solution)kjaniak5-48/+87
Atomic validation function moved to BasicValidationFunctions More complex validation is served by ValidatorsFactory Sans property class object changed to List<String> Signed-off-by: kjaniak <kornel.janiak@nokia.com> Issue-ID: OOM-2559 Change-Id: I4719499dde969db95e2caa172f767674690c40e1
2020-09-17[OOM-CPMv2] Fix sonar issuetkogut1-2/+2
Remove unnecessary 'public' modifiers Issue-ID: OOM-2526 Signed-off-by: tkogut <tomasz.kogut@nokia.com> Change-Id: I94a67899ea1e1c4e207234206b94273b4dbf27b6
2020-08-05Removing AAF references from Cert-Service in OOM repo.baniewsk20-86/+86
Certificates regenerated External files (from legacy AAF) removed Still left: * Sonar link, * Link to documentation, * Names of K8s resources in RTD documentation, * Link to CSITs Issue-ID: OOM-2526 Signed-off-by: Pawel Baniewski <pawel.baniewski@nokia.com> Change-Id: I675f7485160b9b8e46e9ea573550e62ed28ca607
2020-07-13Add subfolders creationkjaniak1-27/+21
Added new not existing subfolders creation in output path to allow CMPv2 integration. Top up version to 1.2.0 Issue-ID: DCAEGEN2-2252 Change-Id: I59f8dfa7fddc5eb3a3fdd80ce18eb3e2272e1bfb Signed-off-by: kjaniak <kornel.janiak@nokia.com>
2020-06-25Fix sonar issuesPiotr Marcinkiewicz8-68/+80
Issue-ID: AAF-1152 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: I6e6ec500720204af32b8581e97fc563ac5c81acb
2020-06-25Fix checkstyle warnings1.1.0Piotr Marcinkiewicz4-8/+8
Issue-ID: AAF-1152 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: I77777db7080000c22ef3db9ff8e755dac8258c9e
2020-06-23Move ArtifcatsCreationProvider one level higherkjaniak14-99/+110
Code style cleanup (warnings from checkstyle). Issue-ID: AAF-1152 Signed-off-by: kjaniak <kornel.janiak@nokia.com> Change-Id: I0a8bbd998cd6aed4cf818ffe10c7fbffe99e9d22
2020-06-19Add creation JKS artifactPiotr Marcinkiewicz3-49/+94
Issue-ID: AAF-1152 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: I8b38dc07ddbf6758e0c4c036100572b350dceab9
2020-06-18Add PEM artifacts creationJoanna Jeremicz5-123/+167
with unit tests Issue-ID: AAF-1152 Change-Id: I95afd62330f3111f916507d628d142262ff951cc Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
2020-06-18Modify UT after adding output type parameterPiotr Marcinkiewicz1-0/+2
Issue-ID: AAF-1152 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: Iaab02cb87f9a364f42e3e51d8714e3c8e5837856
2020-06-17Add validation for OUTPUT_TYPE parameterpwielebs3-7/+43
Issue-ID: AAF-1152 Signed-off-by: pwielebs <piotr.wielebski@nokia.com> Change-Id: Iec46b8a7b8e1818b62877f5272368636dc1929a0
2020-06-16Remove unnecessary exceptionsTomasz Wrobel1-12/+1
Issue-ID: AAF-1152 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: Ie343cd2e3006f9217db5b8454c060eb8c1d3e9e3
2020-06-16Refactor flow of cert files generation, based on OUTPUT_TYPE parameterTomasz Wrobel3-80/+152
-Add artifacts creator provider (strategy pattern) -Refactor KeystoreTruststoreCreator -Add new exception: CertOutputTypeNotSupported -Change Unit tests Issue-ID: AAF-1152 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: If2b2fa50d551e72f19319d781bfb6079d07c7b83
2020-05-20Improve code coverage for CertServiceClientpwielebs2-0/+323
Issue-ID: AAF-996 Signed-off-by: pwielebs <piotr.wielebski@nokia.com> Change-Id: I2d9c5143446be73e3576f006359e734f5f2300d4
2020-04-24Fix wrong ExitStatus for TLS ExceptionAdam Wudzinski1-0/+47
Issue-ID: AAF-1132 Signed-off-by: Adam Wudzinski <adam.wudzinski@nokia.com> Change-Id: I4c7039416277a8cf9eb31e149a91c44e06367308
2020-04-03Switch client and server to communicate over TLSawudzins5-3/+200
Issue-ID: AAF-1084 Signed-off-by: Adam Wudziński <adam.wudzinski@nokia.com> Change-Id: I7f11b27c7dcdf4fc3eba2d5e64b6dc775c80dd74
2020-04-02Fix sonar issue Passwordedyta1-2/+2
Issue-ID: AAF-1118 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: I07b50976f57c97c17ae5ffcd36775c7aba089c4f
2020-03-24Merge "Improve code coverage"Paweł Baniewski1-0/+63
2020-03-23Improve code coverageBogumil Zebek1-0/+63
Issue-ID: AAF-1107 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com> Change-Id: I117eefc86867f388509b56e19e6b1d0d78df9d0b
2020-03-23Improve exceptions logging in certservice clientTomasz Wrobel4-78/+29
Issue-ID: AAF-1107 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: I94a6477a7b1f086b698be4f0388e7a3ded0cd0f3
2020-03-18Improve validation of country codepwielebs1-3/+3
Issue-ID: AAF-1107 Signed-off-by: pwielebs <piotr.wielebski@nokia.com> Change-Id: Id8c1ca149fd65746a02ee480cfc8abbb6b9f7b5c
2020-03-12Removal of EnvValidationUtils class and cleanupkjaniak1-22/+25
Issue-ID: AAF-996 Change-Id: Iccbbf5d746ed5772a0327a30fa8bdbc57bc8fe46 Signed-off-by: kjaniak <kornel.janiak@nokia.com>
2020-03-12Merge "Add UTs for remaining methods"Bogumil Zebek1-0/+36
2020-03-11Add UTs for remaining methodspwielebs1-0/+36
Issue-ID: AAF-996 Signed-off-by: pwielebs <piotr.wielebski@nokia.com> Change-Id: Id2407e66d012dce2b067a9ac3eaeb424bcf58095
2020-03-11Add docker-compose with certservice-client container succesful runRemigiusz Janeczek1-1/+2
Fix client default request url to match default url from helm deployment of certservice-api Issue-ID: AAF-996 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: Icfaf1043b6d6583cdf663a45dabd7b46d407dd2f
2020-03-04Merge "Improve paths validation and creation in certServiceClient, improve ↵Bogumil Zebek2-27/+143
coverage"
2020-03-04Improve paths validation and creation in certServiceClient, improve coverageRemigiusz Janeczek2-27/+143
Add tests for path validation Add tests for CsrConfigurationFactory Ensure path from env can end with "/" Ensure path built in file creator is not dependent on representation of root path Issue-ID: AAF-996 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: I3d6a7f534d49ff64177917989727a7330e3f6869
2020-03-04Fix PrivateKey encoding in certservice-client, refactor CsrFactoryRemigiusz Janeczek3-1/+95
Add PrivateKeyToPemEncoder with tests Refactor CsrFactory to return not encoded PEM string (less responsibility and easier to test later) Issue-ID: AAF-996 Change-Id: Ia8124d43ef7fb8b1d3077c98929c52f30b6512c6 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com>
2020-03-04Merge "Transform pem files into pkcs12"Bogumil Zebek9-0/+463
2020-03-03Transform pem files into pkcs12Joanna Jeremicz9-0/+463
Transform from received from CertService pem files into pkcs12 Issue-ID: AAF-996 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com> Change-Id: I39b71cf3f267c5ca701b3d4cf456fc6d81ae5f81
2020-03-03Add tests to HttpClientTomasz Wrobel1-0/+32
Issue-ID: AAF-996 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: I2d8883552421d055622d5d9ca55b437647c36da4
2020-03-02Merge "Add HttpClient"Bogumil Zebek8-0/+276
2020-02-28Add HttpClientTomasz Wrobel8-0/+276
Issue-ID: AAF-996 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: I3ebb0ea88ef1a72c16064fd9a1931943b57410d8
2020-02-28Merge "Refactor access to env variables in certservice-client"Bogumil Zebek2-47/+51
2020-02-28Refactor access to env variables in certservice-clientRemigiusz Janeczek2-47/+51
Issue-ID: AAF-996 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: Ib11998a72e3addefd16587cda5e10fb787e99a62
2020-02-27Implementation of CSR procedurepwielebs2-1/+59
Issue-ID: AAF-996 Signed-off-by: pwielebs <piotr.wielebski@nokia.com> Change-Id: Id294259b292e2d355be9c70ab4f7eb7017c8c150
2020-02-27Replacement of RuntimeException with Exception classkjaniak4-35/+13
Clean up in tests and run method. Issue-ID: AAF-996 Signed-off-by: kjaniak <kornel.janiak@nokia.com> Change-Id: I2abbfa9af4a77960cb65e9b9ecfcb058eb69cf12
2020-02-26Implementation of KeyPair generationkjaniak5-20/+129
Issue-ID: AAF-996 Change-Id: I97626d122033127d5bb234d134c20d0b5a6d7c03 Signed-off-by: kjaniak <kornel.janiak@nokia.com>
2020-02-20Add functionality for reading ENV variablespwielebs2-0/+235
Issue-ID: AAF-996 Signed-off-by: pwielebs <piotr.wielebski@nokia.com> Change-Id: If216040d59390f0956bae7f747c8cb6bce2a7f9f
2020-02-18Add first test of System.exitkjaniak1-3/+17
Issue-ID: AAF-996 Signed-off-by: kjaniak <kornel.janiak@nokia.com> Change-Id: Id0ee4d6a08e7050ef080f0e1fadea8c07459571c
2020-02-18Fix for not running testskjaniak1-0/+1
Junit5 version lowered. 5.6.0 Junit5 has issues with maven-surefire-plugin Issue-ID: AAF-996 Signed-off-by: kjaniak <kornel.janiak@nokia.com> Change-Id: I17489f106d42d4c0b66d8f68ef500fba2b68f261
2020-02-17Add of dummy testkjaniak1-0/+33
pluginManagement section moved to parent pom.xml Rename of package to follow conventions. Issue-ID: AAF-996 Signed-off-by: kjaniak <kornel.janiak@nokia.com> Change-Id: Id0e011408b149270da88157d1568a23b4709514b