diff options
author | 2021-03-24 09:43:40 +0100 | |
---|---|---|
committer | 2021-03-25 17:00:57 +0000 | |
commit | 204ae9b5b21c48054d0d02761ef80b647c7e0473 (patch) | |
tree | 55200aefc8e2d34ea662529de2a8620ea39c2b0a /ms/blueprintsprocessor/modules/commons/rest-lib/src/test/kotlin | |
parent | c7bd99a9bf07e3023ab510dfe84fc2acbe74299b (diff) |
Address some pendings items for SSLBasicAuthRestClient
- FIXME under SSLBasicAuthRestClientProperties
- TODO under SSLBasicAuthRestClientPropertiesBuilder
Issue-ID: CCSDK-3235
Signed-off-by: Claudio D. Gasparini <claudio.gasparini@intl.att.com>
Change-Id: If00c7491573c69eb5d3f9192f54c7b384943abf7
Diffstat (limited to 'ms/blueprintsprocessor/modules/commons/rest-lib/src/test/kotlin')
-rw-r--r-- | ms/blueprintsprocessor/modules/commons/rest-lib/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/BlueprintRestLibPropertyServiceTest.kt | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/ms/blueprintsprocessor/modules/commons/rest-lib/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/BlueprintRestLibPropertyServiceTest.kt b/ms/blueprintsprocessor/modules/commons/rest-lib/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/BlueprintRestLibPropertyServiceTest.kt index 117fbbd25..8843ff71d 100644 --- a/ms/blueprintsprocessor/modules/commons/rest-lib/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/BlueprintRestLibPropertyServiceTest.kt +++ b/ms/blueprintsprocessor/modules/commons/rest-lib/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/BlueprintRestLibPropertyServiceTest.kt @@ -102,8 +102,8 @@ class BlueprintRestLibPropertyServiceTest { val p: SSLBasicAuthRestClientProperties = properties as SSLBasicAuthRestClientProperties - assertEquals(p.basicAuth!!.username, "admin") - assertEquals(p.basicAuth!!.password, "cds") + assertEquals(p.username, "admin") + assertEquals(p.password, "cds") assertEquals(p.sslTrust, "src/test/resources/keystore.p12") assertEquals(p.sslTrustPassword, "changeit") assertEquals(p.keyStoreInstance, "PKCS12") @@ -151,8 +151,8 @@ class BlueprintRestLibPropertyServiceTest { assertNotNull(properties, "failed to create property bean") val p: SSLBasicAuthRestClientProperties = properties as SSLBasicAuthRestClientProperties - assertEquals("admin", p.basicAuth!!.username) - assertEquals("cds", p.basicAuth!!.password) + assertEquals("admin", p.username) + assertEquals("cds", p.password) assertEquals("src/test/resources/keystore.p12", p.sslTrust) assertEquals("changeit", p.sslTrustPassword) assertEquals("PKCS12", p.keyStoreInstance) @@ -464,10 +464,8 @@ class BlueprintRestLibPropertyServiceTest { "keyStoreInstance" : "PKCS12", "sslTrust" : "src/test/resources/keystore.p12", "sslTrustPassword" : "changeit", - "basicAuth" : { - "username" : "admin", - "password" : "cds" - }$headers + "username" : "admin", + "password" : "cds"$headers } """.trimIndent() |