aboutsummaryrefslogtreecommitdiffstats
path: root/bpmn/MSOCommonBPMN/src/test/java
diff options
context:
space:
mode:
authorKalkere Ramesh, Sharan <sharan.kalkere.ramesh@att.com>2019-05-15 14:34:33 -0400
committerBenjamin, Max (mb388a) <mb388a@us.att.com>2019-05-15 14:34:43 -0400
commit6a4c6a980a5998c996e3ebecd340eb438bba5bc8 (patch)
tree4e296a245f51719cf24178648ab9916d8320660f /bpmn/MSOCommonBPMN/src/test/java
parentf9c309fb9e789225ccd6b02ec9ab4777bbd4021c (diff)
mapped host routes into gbb l3 network object
mapped host routes into gbb l3 network object Change-Id: Ie3ab4693f7584946b1e2020d43143412bec62631 Issue-ID: SO-1885 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
Diffstat (limited to 'bpmn/MSOCommonBPMN/src/test/java')
-rw-r--r--bpmn/MSOCommonBPMN/src/test/java/org/onap/so/bpmn/servicedecomposition/tasks/BBInputSetupMapperLayerTest.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/bpmn/MSOCommonBPMN/src/test/java/org/onap/so/bpmn/servicedecomposition/tasks/BBInputSetupMapperLayerTest.java b/bpmn/MSOCommonBPMN/src/test/java/org/onap/so/bpmn/servicedecomposition/tasks/BBInputSetupMapperLayerTest.java
index e7afa9ec8b..37f8b8b2fd 100644
--- a/bpmn/MSOCommonBPMN/src/test/java/org/onap/so/bpmn/servicedecomposition/tasks/BBInputSetupMapperLayerTest.java
+++ b/bpmn/MSOCommonBPMN/src/test/java/org/onap/so/bpmn/servicedecomposition/tasks/BBInputSetupMapperLayerTest.java
@@ -398,10 +398,12 @@ public class BBInputSetupMapperLayerTest {
@Test
public void testMapAAIL3NetworkIntoL3Network() throws IOException {
- L3Network expected = mapper.readValue(new File(RESOURCE_PATH + "l3NetworkExpected.json"), L3Network.class);
+ L3Network expected =
+ mapper.readValue(new File(RESOURCE_PATH + "l3NetworkExpectedWithSubnet.json"), L3Network.class);
- org.onap.aai.domain.yang.L3Network aaiL3Network = mapper.readValue(
- new File(RESOURCE_PATH + "aaiL3NetworkInput.json"), org.onap.aai.domain.yang.L3Network.class);
+ org.onap.aai.domain.yang.L3Network aaiL3Network =
+ mapper.readValue(new File(RESOURCE_PATH + "aaiL3NetworkInputWithSubnets.json"),
+ org.onap.aai.domain.yang.L3Network.class);
L3Network actual = bbInputSetupMapperLayer.mapAAIL3Network(aaiL3Network);
.gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/*-
 * ============LICENSE_START=======================================================
 * ONAP-Logging
 * ================================================================================
 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
 * ================================================================================
 * 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
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * 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=========================================================
 */

package org.onap.policy.common.logging.eelf;

import com.att.eelf.i18n.EELFResolvableErrorEnum;
import com.att.eelf.i18n.EELFResourceManager;

/**
 * 
 * MessageCodes contains all the messagge codes for EELF logging messages
 *
 */
public enum MessageCodes implements EELFResolvableErrorEnum {
	// Below is a list of Error Messages taken from com.att.research.xacml.api XACMLErrorConstants
	//       found under:  policy-engine\XACML\src\main\java\com\att\research\xacml\api\XACMLErrorConstants.java

	ERROR_PERMISSIONS,

	ERROR_SYSTEM_ERROR,

	ERROR_DATA_ISSUE,

	ERROR_SCHEMA_INVALID,

	ERROR_PROCESS_FLOW,

	ERROR_UNKNOWN,
	
	ERROR_AUDIT,
	
	// Above is a list of Error Messages taken from com.att.research.xacml.api XACMLErrorConstants
	//       found under:  policy-engine\XACML\src\main\java\com\att\research\xacml\api\XACMLErrorConstants.java
		
	//----------------------5000-5099 Business/Flow Processing Related --------------------/	
	
	BAD_TYPE_WARNING,
	
	GENERAL_INFO,
	
	GENERAL_WARNING,
	
	MISS_PROPERTY_ERROR,
	
	EXCEPTION_ERROR,
	
	MISS_PROPERTY_INFO,
	
	RULE_AUDIT_EXEC_INFO,
	
	RULE_AUDIT_BEGIN_INFO,
	
	RULE_AUDIT_END_INFO,	
	
	RULE_AUDIT_START_END_INFO,
	
	RULE_METRICS_INFO,	

	UEB_AUDIT_EXEC_INFO,
	
	UEB_AUDIT_BEGIN_INFO,
	
	UEB_AUDIT_END_INFO,
	
	UPDATE_ERROR,

	GENERAL_ERROR,
	
	//----------------------New enums should be added above this line ------------------------------------------------------------------/
	
	//--------------------- The enums below are old code. They should not be used since 1607 release and eventually will be removed -----/
	 /**
     * Application message which requires no arguments
     */
	MESSAGE_SAMPLE_NOARGS,
	
	 /**
     * Application message which requires one argument {0}
     */
	MESSAGE_SAMPLE_ONEARGUMENT,
	
	/**
     * Audit message which requires one argument {0}
     */	
	AUDIT_MESSAGE_ONEARGUMENT,
	
	/**
     * Error message which requires one argument {0}
     */
	ERROR_MESSAGE_ONEARGUMENT,
	
	/**
     * Metrics message which requires one argument {0}
     */
	METRICS_MESSAGE_ONEARGUMENT,
	
	/**
     * Debug message which requires one argument {0}
     */
	DEBUG_MESSAGE_ONEARGUMENT,
	
    /**
     * Application message which requires two argument {0} and another argument {1}
     */
	MESSAGE_SAMPLE_TWOARGUMENTS,
	
	/**
     * Sample error exception
     */
    MESSAGE_SAMPLE_EXCEPTION,
	
	/**
     * Sample warning message
     */
	MESSAGE_WARNING_SAMPLE,
	
	/**
     * Sample exception in method {0}
     */
	MESSAGE_SAMPLE_EXCEPTION_ONEARGUMENT,
	
	/**
     * Sample trace message
     */
	MESSAGE_TRACE_SAMPLE,
	
	/**
     * Sample error message
     */
	MESSAGE_ERROR_SAMPLE;
	
	
    /**
     * Static initializer to ensure the resource bundles for this class are loaded...
     * Here this application loads messages from three bundles
     */
    static {
        EELFResourceManager.loadMessageBundle("org/onap/policy/common/logging/eelf/Resources");
        String id = EELFResourceManager.getIdentifier(RULE_AUDIT_EXEC_INFO);
        String value = EELFResourceManager.getMessage(RULE_AUDIT_EXEC_INFO);
                
        PolicyLogger.info("*********************** Rule audit id: " + id);
        PolicyLogger.info("*********************** Rule audit value: " + value);
       
    }
}