diff options
author | Michal Kabaj <michal.kabaj@nokia.com> | 2018-03-12 15:04:50 +0100 |
---|---|---|
committer | Takamune Cho <tc012c@att.com> | 2018-03-12 18:33:57 +0000 |
commit | f8f6d212382f458e1cb31081dad744e78f92e521 (patch) | |
tree | d7482fc483dae47de3d77ccfcc829254157380c9 /appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/test/java/org | |
parent | 20eaa8a699ea41b7c40bbee7364dd3554af45606 (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/org')
-rw-r--r-- | appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/test/java/org/onap/appc/adapter/chef/chefclient/impl/ChefApiClientImplTest.java | 2 |
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 |