From f8f6d212382f458e1cb31081dad744e78f92e521 Mon Sep 17 00:00:00 2001 From: Michal Kabaj Date: Mon, 12 Mar 2018 15:04:50 +0100 Subject: Decouple ChefApiClientImpl from header creation Introduce new FunctionalInterface HttpHeaderFactory to allow customization of http header providers when creating ChefApiClientImpl using ChefApiClientFactory This allows for better encapsulation of header specific values such as: userId,organizations,pemPath. Change-Id: Iec2c7cff8e664a18e15d7e973920152fdb158c98 Issue-ID: APPC-437 Signed-off-by: Michal Kabaj --- .../onap/appc/adapter/chef/chefclient/impl/ChefApiClientImplTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/test') diff --git a/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/test/java/org/onap/appc/adapter/chef/chefclient/impl/ChefApiClientImplTest.java b/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/test/java/org/onap/appc/adapter/chef/chefclient/impl/ChefApiClientImplTest.java index 21e607de7..ed39efb1b 100644 --- a/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/test/java/org/onap/appc/adapter/chef/chefclient/impl/ChefApiClientImplTest.java +++ b/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/test/java/org/onap/appc/adapter/chef/chefclient/impl/ChefApiClientImplTest.java @@ -55,6 +55,7 @@ public class ChefApiClientImplTest { private static final String USER_ID = "testUser"; private static final String REQUEST_PATH = "/test/path"; private static final String BODY = "SOME BODY STRING"; + private static final String PEM_FILEPATH = "path/to/pemFile"; private static final ImmutableMap HEADERS = ImmutableMap.builder() .put("Content-type", "application/json") .put("Accept", "application/json") @@ -71,7 +72,6 @@ public class ChefApiClientImplTest { @InjectMocks private ChefApiClientFactory chefApiClientFactory; - private static final String PEM_FILEPATH = "path/to/pemFile"; private ChefApiClient chefApiClient; @Before -- cgit 1.2.3-korg