From 204ae9b5b21c48054d0d02761ef80b647c7e0473 Mon Sep 17 00:00:00 2001 From: "Claudio D. Gasparini" Date: Wed, 24 Mar 2021 09:43:40 +0100 Subject: Address some pendings items for SSLBasicAuthRestClient - FIXME under SSLBasicAuthRestClientProperties - TODO under SSLBasicAuthRestClientPropertiesBuilder Issue-ID: CCSDK-3235 Signed-off-by: Claudio D. Gasparini Change-Id: If00c7491573c69eb5d3f9192f54c7b384943abf7 --- .../rest/service/BlueprintRestLibPropertyServiceTest.kt | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'ms/blueprintsprocessor/modules/commons/rest-lib/src/test/kotlin') 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() -- cgit 1.2.3-korg