ChefAdapterImpl Junits
[appc.git] / appc-adapters / appc-chef-adapter / appc-chef-adapter-bundle / src / main / java / org / onap / appc / adapter / chef / chefclient / ChefApiClientFactory.java
index 1815266..11d820d 100644 (file)
@@ -19,6 +19,7 @@
  */
 package org.onap.appc.adapter.chef.chefclient;
 
+import com.google.common.collect.ImmutableMap;
 import org.apache.http.client.HttpClient;
 import org.apache.http.impl.client.HttpClients;
 import org.onap.appc.adapter.chef.chefclient.api.ChefApiClient;
@@ -37,4 +38,11 @@ public class ChefApiClientFactory {
             (methodName, requestPath, body) -> chefApiHeaderFactory
                 .create(methodName, requestPath, body, userId, organizations, pemPath));
     }
+
+    public ChefApiClient create(String endPoint) {
+        return new ChefApiClientImpl(
+            httpClient,
+            endPoint,
+            (methodName, requestPath, body) -> ImmutableMap.of());
+    }
 }