aboutsummaryrefslogtreecommitdiffstats
path: root/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/test/java
diff options
context:
space:
mode:
authorMichal Kabaj <michal.kabaj@nokia.com>2018-03-12 15:04:50 +0100
committerTakamune Cho <tc012c@att.com>2018-03-12 18:33:57 +0000
commitf8f6d212382f458e1cb31081dad744e78f92e521 (patch)
treed7482fc483dae47de3d77ccfcc829254157380c9 /appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/test/java
parent20eaa8a699ea41b7c40bbee7364dd3554af45606 (diff)
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 <michal.kabaj@nokia.com>
Diffstat (limited to 'appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/test/java')
-rw-r--r--appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/test/java/org/onap/appc/adapter/chef/chefclient/impl/ChefApiClientImplTest.java2
1 files changed, 1 insertions, 1 deletions
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<String, String> HEADERS = ImmutableMap.<String, String>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