/*-
* ============LICENSE_START=======================================================
- * ONAP : APP-C
+ * ONAP : APPC
* ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
* ================================================================================
+ * Copyright (C) 2017 Amdocs
+ * =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
* ============LICENSE_END=========================================================
*/
import com.att.eelf.configuration.EELFManager;
/* move to open source
import org.apache.sling.testing.mock.osgi.MockOsgi;
-import com.att.sdnctl.dgtestlibrary.AbstractDGTestCase;
-import com.att.sdnctl.dgtestlibrary.DGTestCase;
-import com.att.sdnctl.dgtestlibrary.GraphKey;
+import org.onap.sdnc.dgtestlibrary.AbstractDGTestCase;
+import org.onap.sdnc.dgtestlibrary.DGTestCase;
+import org.onap.sdnc.dgtestlibrary.GraphKey;
*/
import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
-import org.onap.ccsdk.sli.core.sli.provider.ExecuteNodeExecutor;
import org.onap.ccsdk.sli.core.sli.provider.SvcLogicAdaptorFactory;
public class TestUpdateAaiInfo /* extends AbstractDGTestCase */ {
- //private final static Logger logger = LoggerFactory.getLogger(TestGetParams.class);
- private static final EELFLogger logger = EELFManager.getInstance().getLogger(TestUpdateAaiInfo.class);
- public static String UpdateAaiInfoXML = "src/main/resources/xml/APPC_UpdateAaiInfo.xml";
+ //private final static Logger logger = LoggerFactory.getLogger(TestGetParams.class);
+ private static final EELFLogger logger = EELFManager.getInstance().getLogger(TestUpdateAaiInfo.class);
+ public static String UpdateAaiInfoXML = "src/main/resources/xml/APPC_UpdateAaiInfo.xml";
/*
- @Test
- public void testUpdateAaiInfoSuccess() {
- try {
+ @Test
+ public void testUpdateAaiInfoSuccess() {
+ try {
+
+ String propertyfileName = "APPC/UpdateAaiInfo/Update_Success.properties";
+ Map<String, Object> serviceReferences = new HashMap<String, Object>();
+
+ // Register Call graphs
+ String injectGraphXmls[] = new String[] { UpdateAaiInfoXML };
+
+
+ Map<String, Object> resourceReferences = new HashMap<String, Object>();
+
+
+ resourceReferences.put("org.openecomp.sdnc.sli.aai.AAIService", new MockAaiResource());
+
+ GraphKey graphKey = new GraphKey("APPC", null, "UpdateAaiInfo", null);
+ DGTestCase tc = new DGTestCase(graphKey);
+ tc.setInjectGraphXmls(injectGraphXmls);
+ tc.setServiceReferences(serviceReferences);
+ tc.setPropertyfileName(propertyfileName);
+ tc.setResourceReferences(resourceReferences);
- String propertyfileName = "APPC/UpdateAaiInfo/Update_Success.properties";
- Map<String, Object> serviceReferences = new HashMap<String, Object>();
+ SvcLogicContext ctx = new SvcLogicContext();
+ processTestCase(tc, ctx);
- // Register Call graphs
- String injectGraphXmls[] = new String[] { UpdateAaiInfoXML };
-
- Map<String, Object> resourceReferences = new HashMap<String, Object>();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
-
- resourceReferences.put("org.onap.ccsdk.sli.adaptors.aai.AAIService", new MockAaiResource());
+ }
- GraphKey graphKey = new GraphKey("APPC", null, "UpdateAaiInfo", null);
- DGTestCase tc = new DGTestCase(graphKey);
- tc.setInjectGraphXmls(injectGraphXmls);
- tc.setServiceReferences(serviceReferences);
- tc.setPropertyfileName(propertyfileName);
- tc.setResourceReferences(resourceReferences);
- SvcLogicContext ctx = new SvcLogicContext();
- processTestCase(tc, ctx);
+ @Test
+ public void testUpdateAaiInfoFail() {
+ try {
- } catch (Exception e) {
- e.printStackTrace();
- }
+ String propertyfileName = "APPC/UpdateAaiInfo/Update_Fail.properties";
+ Map<String, Object> serviceReferences = new HashMap<String, Object>();
- }
+ // Register Call graphs
+ String injectGraphXmls[] = new String[] { UpdateAaiInfoXML };
- @Test
- public void testUpdateAaiInfoFail() {
- try {
- String propertyfileName = "APPC/UpdateAaiInfo/Update_Fail.properties";
- Map<String, Object> serviceReferences = new HashMap<String, Object>();
+ GraphKey graphKey = new GraphKey("APPC", null, "UpdateAaiInfo", null);
+ DGTestCase tc = new DGTestCase(graphKey);
+ tc.setInjectGraphXmls(injectGraphXmls);
+ tc.setServiceReferences(serviceReferences);
+ tc.setPropertyfileName(propertyfileName);
+ Map<String, Object> resourceReferences = new HashMap<String, Object>();
+ tc.setResourceReferences(resourceReferences);
- // Register Call graphs
- String injectGraphXmls[] = new String[] { UpdateAaiInfoXML };
+ SvcLogicContext ctx = new SvcLogicContext();
+ processTestCase(tc, ctx);
- GraphKey graphKey = new GraphKey("APPC", null, "UpdateAaiInfo", null);
- DGTestCase tc = new DGTestCase(graphKey);
- tc.setInjectGraphXmls(injectGraphXmls);
- tc.setServiceReferences(serviceReferences);
- tc.setPropertyfileName(propertyfileName);
-
- Map<String, Object> resourceReferences = new HashMap<String, Object>();
- tc.setResourceReferences(resourceReferences);
-
- SvcLogicContext ctx = new SvcLogicContext();
- processTestCase(tc, ctx);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
-
+ }
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
+ @Test
+ public void testGetVnfcRefFail() {
+ try {
+ String propertyfileName = "APPC/UpdateAaiInfo/GetVnfcRef_Fail.properties";
+ Map<String, Object> serviceReferences = new HashMap<String, Object>();
- @Test
- public void testGetVnfcRefFail() {
- try {
- String propertyfileName = "APPC/UpdateAaiInfo/GetVnfcRef_Fail.properties";
- Map<String, Object> serviceReferences = new HashMap<String, Object>();
+ // Register Call graphs
+ String injectGraphXmls[] = new String[] { UpdateAaiInfoXML };
- // Register Call graphs
- String injectGraphXmls[] = new String[] { UpdateAaiInfoXML };
+ GraphKey graphKey = new GraphKey("APPC", null, "UpdateAaiInfo", null);
+ DGTestCase tc = new DGTestCase(graphKey);
+ tc.setInjectGraphXmls(injectGraphXmls);
+ tc.setServiceReferences(serviceReferences);
+ tc.setPropertyfileName(propertyfileName);
+ Map<String, Object> resourceReferences = new HashMap<String, Object>();
+ tc.setResourceReferences(resourceReferences);
- GraphKey graphKey = new GraphKey("APPC", null, "UpdateAaiInfo", null);
- DGTestCase tc = new DGTestCase(graphKey);
- tc.setInjectGraphXmls(injectGraphXmls);
- tc.setServiceReferences(serviceReferences);
- tc.setPropertyfileName(propertyfileName);
+ SvcLogicContext ctx = new SvcLogicContext();
+ processTestCase(tc, ctx);
- Map<String, Object> resourceReferences = new HashMap<String, Object>();
- tc.setResourceReferences(resourceReferences);
-
- SvcLogicContext ctx = new SvcLogicContext();
- processTestCase(tc, ctx);
-
- } catch (Exception e) {
- e.printStackTrace();
- }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
- }
+ }
*/
}