Merge "Support multiple customer instantiation"
authorGary Wu <gary.i.wu@huawei.com>
Wed, 30 May 2018 16:56:49 +0000 (16:56 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 30 May 2018 16:56:49 +0000 (16:56 +0000)
35 files changed:
.gitignore
S3Ptools/Jmeter/000-VF_creation_Ran_New.jmx [new file with mode: 0644]
deployment/heat/onap-oom/scripts/deploy.sh
test/csit/plans/dcaegen2/prh_testsuites/setup.sh [new file with mode: 0644]
test/csit/plans/dcaegen2/prh_testsuites/teardown.sh [new file with mode: 0644]
test/csit/plans/dcaegen2/prh_testsuites/testplan.txt [new file with mode: 0644]
test/csit/tests/appc/healthcheck/LCM_HEALTHCHECK_TIMESTAMP.robot
test/csit/tests/appc/healthcheck/LCM_VM_RESTART_TIMESTAMP.robot
test/csit/tests/appc/healthcheck/LCM_VNF_RESTART_TIMESTAMP.robot
test/csit/tests/clamp/UIs/04__Submit_deploy_chain_Holmes.robot
test/csit/tests/clamp/UIs/05__Submit_deploy_chain_TCA.robot
test/csit/tests/dcaegen2/prh_testcases/__init__.robot [new file with mode: 0644]
test/csit/tests/dcaegen2/prh_testcases/assets/json_events/pnf_ready.json [new file with mode: 0644]
test/csit/tests/dcaegen2/prh_testcases/assets/json_events/response.json [new file with mode: 0644]
test/csit/tests/dcaegen2/prh_testcases/prh.robot [new file with mode: 0644]
test/csit/tests/dcaegen2/prh_testcases/prh_tests.robot [new file with mode: 0644]
test/csit/tests/dcaegen2/prh_testcases/resources/CommonEventFormat_28.3.json [new file with mode: 0644]
test/csit/tests/dcaegen2/prh_testcases/resources/DMaaP.py [new file with mode: 0644]
test/csit/tests/dcaegen2/prh_testcases/resources/Dockerfile [new file with mode: 0644]
test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py [new file with mode: 0644]
test/csit/tests/dcaegen2/prh_testcases/resources/PrhVariables.py [new file with mode: 0644]
test/csit/tests/dcaegen2/prh_testcases/resources/Simulator.py [new file with mode: 0644]
test/csit/tests/dcaegen2/prh_testcases/resources/docker-compose.yml [new file with mode: 0644]
test/csit/tests/dcaegen2/prh_testcases/resources/events/pnf_register_event.json [new file with mode: 0644]
test/csit/tests/dcaegen2/prh_testcases/resources/prh_keywords.robot [new file with mode: 0644]
test/ete/labs/gwu/onap-openstack-template.env
test/ete/labs/huawei/onap-openstack-template.env
test/ete/labs/tlab/onap-openstack-template.env
test/ete/labs/windriver/onap-openstack-template.env
test/mocks/pnfsimulator/pom.xml
test/mocks/pnfsimulator/simulator.sh
test/mocks/pnfsimulator/src/main/java/org/onap/pnfsimulator/message/MessageConstants.java
test/mocks/pnfsimulator/src/main/java/org/onap/pnfsimulator/message/MessageProvider.java
test/mocks/pnfsimulator/src/test/java/org/onap/pnfsimulator/message/MessageProviderTest.java
version-manifest/src/main/resources/docker-manifest.csv

index 209db72..4126c2c 100644 (file)
@@ -22,3 +22,6 @@ env.properties
 .DS_Store
 devtool/
 seccom/
+.idea
+*.iml
+
diff --git a/S3Ptools/Jmeter/000-VF_creation_Ran_New.jmx b/S3Ptools/Jmeter/000-VF_creation_Ran_New.jmx
new file mode 100644 (file)
index 0000000..1ad296a
--- /dev/null
@@ -0,0 +1,1627 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jmeterTestPlan version="1.2" properties="2.9" jmeter="3.0 r1743807">
+  <hashTree>
+    <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="000-VF_creation_Ran_Pollak" enabled="true">
+      <stringProp name="TestPlan.comments"></stringProp>
+      <boolProp name="TestPlan.functional_mode">true</boolProp>
+      <boolProp name="TestPlan.serialize_threadgroups">true</boolProp>
+      <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
+        <collectionProp name="Arguments.arguments">
+          <elementProp name="ASDC_SETUP" elementType="Argument">
+            <stringProp name="Argument.name">ASDC_SETUP</stringProp>
+            <stringProp name="Argument.value">${__P(setup,yonadav-build-11856-date-2018-01-0813-19-29)}</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+          <elementProp name="NUM_OF_THREAD" elementType="Argument">
+            <stringProp name="Argument.name">NUM_OF_THREAD</stringProp>
+            <stringProp name="Argument.value">${__P(iterations,1)}</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+          <elementProp name="TEST_DURATION" elementType="Argument">
+            <stringProp name="Argument.name">TEST_DURATION</stringProp>
+            <stringProp name="Argument.value">${__P(Duration,1)}</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+          <elementProp name="MAIN_THREAD_GROUP_CNT" elementType="Argument">
+            <stringProp name="Argument.name">MAIN_THREAD_GROUP_CNT</stringProp>
+            <stringProp name="Argument.value">${__P(loops,1)}</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+          <elementProp name="branch" elementType="Argument">
+            <stringProp name="Argument.name">branch</stringProp>
+            <stringProp name="Argument.value">${__P(workspace,/root/asdc_main/)}</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+        </collectionProp>
+      </elementProp>
+      <stringProp name="TestPlan.user_define_classpath"></stringProp>
+      <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
+    </TestPlan>
+    <hashTree>
+      <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="Test General Variables" enabled="true">
+        <collectionProp name="Arguments.arguments">
+          <elementProp name="##################   Test-Params   ##################" elementType="Argument">
+            <stringProp name="Argument.name">##################   Test-Params   ##################</stringProp>
+            <stringProp name="Argument.value">##############################################</stringProp>
+            <stringProp name="Argument.desc">##############################################</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+          <elementProp name="TestName" elementType="Argument">
+            <stringProp name="Argument.name">TestName</stringProp>
+            <stringProp name="Argument.value">000-VF_creation.log</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+          <elementProp name="step" elementType="Argument">
+            <stringProp name="Argument.name">step</stringProp>
+            <stringProp name="Argument.value">0</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+          <elementProp name="product" elementType="Argument">
+            <stringProp name="Argument.name">product</stringProp>
+            <stringProp name="Argument.value">ASDC_Full_distro</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+          <elementProp name="dashboard_path" elementType="Argument">
+            <stringProp name="Argument.name">dashboard_path</stringProp>
+            <stringProp name="Argument.value">/sdc1/proxy-designer1#/dashboard</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+          <elementProp name="service_name" elementType="Argument">
+            <stringProp name="Argument.name">service_name</stringProp>
+            <stringProp name="Argument.value">Internet_${__RandomString(5,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz,)}</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+          <elementProp name="fileRepo" elementType="Argument">
+            <stringProp name="Argument.name">fileRepo</stringProp>
+            <stringProp name="Argument.value">/${branch}/TestsProperties/HEATFiles/</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+          <elementProp name="file" elementType="Argument">
+            <stringProp name="Argument.name">file</stringProp>
+            <stringProp name="Argument.value">1.zip</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+          <elementProp name="zip" elementType="Argument">
+            <stringProp name="Argument.name">zip</stringProp>
+            <stringProp name="Argument.value">application/zip</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+          <elementProp name="#####################   URL   ####################" elementType="Argument">
+            <stringProp name="Argument.name">#####################   URL   ####################</stringProp>
+            <stringProp name="Argument.value">##############################################</stringProp>
+            <stringProp name="Argument.desc">##############################################</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+          <elementProp name="port" elementType="Argument">
+            <stringProp name="Argument.name">port</stringProp>
+            <stringProp name="Argument.value">8285</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+          <elementProp name="protocol" elementType="Argument">
+            <stringProp name="Argument.name">protocol</stringProp>
+            <stringProp name="Argument.value">http</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+          <elementProp name="##############################################" elementType="Argument">
+            <stringProp name="Argument.name">##############################################</stringProp>
+            <stringProp name="Argument.value">##############################################</stringProp>
+            <stringProp name="Argument.desc">##############################################</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+          <elementProp name="ValidFileName" elementType="Argument">
+            <stringProp name="Argument.name">ValidFileName</stringProp>
+            <stringProp name="Argument.value">vDBE.zip</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+          <elementProp name="file" elementType="Argument">
+            <stringProp name="Argument.name">file</stringProp>
+            <stringProp name="Argument.value">vDBE.zip</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+            <stringProp name="Argument.desc">1118-nested2nestedResourceGroup.zip</stringProp>
+          </elementProp>
+          <elementProp name="HTTP_Tester_ATTUID" elementType="Argument">
+            <stringProp name="Argument.name">HTTP_Tester_ATTUID</stringProp>
+            <stringProp name="Argument.value">jm0007</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+          <elementProp name="HTTP_OPS_ATTUID" elementType="Argument">
+            <stringProp name="Argument.name">HTTP_OPS_ATTUID</stringProp>
+            <stringProp name="Argument.value">op0001</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
+        </collectionProp>
+        <stringProp name="TestPlan.comments">attvdi142</stringProp>
+      </Arguments>
+      <hashTree/>
+      <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Test Init" enabled="true">
+        <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
+        <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
+          <boolProp name="LoopController.continue_forever">false</boolProp>
+          <stringProp name="LoopController.loops">1</stringProp>
+        </elementProp>
+        <stringProp name="ThreadGroup.num_threads">1</stringProp>
+        <stringProp name="ThreadGroup.ramp_time">1</stringProp>
+        <longProp name="ThreadGroup.start_time">1422885662000</longProp>
+        <longProp name="ThreadGroup.end_time">1422885662000</longProp>
+        <boolProp name="ThreadGroup.scheduler">false</boolProp>
+        <stringProp name="ThreadGroup.duration"></stringProp>
+        <stringProp name="ThreadGroup.delay"></stringProp>
+      </ThreadGroup>
+      <hashTree>
+        <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager Main" enabled="true">
+          <collectionProp name="HeaderManager.headers">
+            <elementProp name="" elementType="Header">
+              <stringProp name="Header.name">Accept</stringProp>
+              <stringProp name="Header.value">application/json</stringProp>
+            </elementProp>
+            <elementProp name="" elementType="Header">
+              <stringProp name="Header.name">Content-Type</stringProp>
+              <stringProp name="Header.value">application/json</stringProp>
+            </elementProp>
+            <elementProp name="" elementType="Header">
+              <stringProp name="Header.name">${__P(HTTP_REST_USER_ID_HEADER_NAME)}</stringProp>
+              <stringProp name="Header.value">${__P(HTTP_REST_USER_ID_HEADER_VALUE)}</stringProp>
+            </elementProp>
+          </collectionProp>
+        </HeaderManager>
+        <hashTree/>
+        <IncludeController guiclass="IncludeControllerGui" testclass="IncludeController" testname="Test Init" enabled="true">
+          <stringProp name="IncludeController.includepath">../_JMeter_Test_Fragments/BE/Test_Init.jmx</stringProp>
+        </IncludeController>
+        <hashTree/>
+      </hashTree>
+      <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Test Flow" enabled="true">
+        <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
+        <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
+          <boolProp name="LoopController.continue_forever">false</boolProp>
+          <stringProp name="LoopController.loops">${MAIN_THREAD_GROUP_CNT}</stringProp>
+        </elementProp>
+        <stringProp name="ThreadGroup.num_threads">${NUM_OF_THREAD}</stringProp>
+        <stringProp name="ThreadGroup.ramp_time">${TEST_DURATION}</stringProp>
+        <longProp name="ThreadGroup.start_time">1422885662000</longProp>
+        <longProp name="ThreadGroup.end_time">1422885662000</longProp>
+        <boolProp name="ThreadGroup.scheduler">false</boolProp>
+        <stringProp name="ThreadGroup.duration"></stringProp>
+        <stringProp name="ThreadGroup.delay"></stringProp>
+      </ThreadGroup>
+      <hashTree>
+        <LoopController guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
+          <boolProp name="LoopController.continue_forever">true</boolProp>
+          <stringProp name="LoopController.loops">1</stringProp>
+        </LoopController>
+        <hashTree>
+          <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Create VSP" enabled="true"/>
+          <hashTree>
+            <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager Main" enabled="true">
+              <collectionProp name="HeaderManager.headers">
+                <elementProp name="" elementType="Header">
+                  <stringProp name="Header.name">Accept</stringProp>
+                  <stringProp name="Header.value">application/json</stringProp>
+                </elementProp>
+                <elementProp name="" elementType="Header">
+                  <stringProp name="Header.name">Content-Type</stringProp>
+                  <stringProp name="Header.value">application/json</stringProp>
+                </elementProp>
+                <elementProp name="" elementType="Header">
+                  <stringProp name="Header.name">${__P(HTTP_REST_USER_ID_HEADER_NAME)}</stringProp>
+                  <stringProp name="Header.value">${__P(HTTP_REST_USER_ID_HEADER_VALUE)}</stringProp>
+                </elementProp>
+              </collectionProp>
+              <stringProp name="TestPlan.comments">Accept - application/octet-stream</stringProp>
+            </HeaderManager>
+            <hashTree/>
+            <IncludeController guiclass="IncludeControllerGui" testclass="IncludeController" testname="Vendor License Model" enabled="true">
+              <stringProp name="IncludeController.includepath">../_JMeter_Test_Fragments/BE/VLM/Create_Single_VLM.jmx</stringProp>
+            </IncludeController>
+            <hashTree/>
+            <IncludeController guiclass="IncludeControllerGui" testclass="IncludeController" testname="Entitlement Pool" enabled="true">
+              <stringProp name="IncludeController.includepath">../_JMeter_Test_Fragments/BE/VLM_Entitlement_Pools/Create_Single_EP.jmx</stringProp>
+            </IncludeController>
+            <hashTree/>
+            <IncludeController guiclass="IncludeControllerGui" testclass="IncludeController" testname="License Key Group" enabled="true">
+              <stringProp name="IncludeController.includepath">../_JMeter_Test_Fragments/BE/VLM_License_Key_Groups/Create_Single_LKG.jmx</stringProp>
+            </IncludeController>
+            <hashTree/>
+            <IncludeController guiclass="IncludeControllerGui" testclass="IncludeController" testname="Feature Group" enabled="true">
+              <stringProp name="IncludeController.includepath">../_JMeter_Test_Fragments/BE/VLM_Feature_Groups/Create_Single_Feature_Group.jmx</stringProp>
+            </IncludeController>
+            <hashTree/>
+            <IncludeController guiclass="IncludeControllerGui" testclass="IncludeController" testname="License Agreement" enabled="true">
+              <stringProp name="IncludeController.includepath">../_JMeter_Test_Fragments/BE/VLM_License_Agreements/Create_Single_License_Agreement.jmx</stringProp>
+            </IncludeController>
+            <hashTree/>
+            <IncludeController guiclass="IncludeControllerGui" testclass="IncludeController" testname="Commit VLM" enabled="true">
+              <stringProp name="IncludeController.includepath">../_JMeter_Test_Fragments/BE/VLM/Commit_VLM.jmx</stringProp>
+            </IncludeController>
+            <hashTree/>
+            <IncludeController guiclass="IncludeControllerGui" testclass="IncludeController" testname="Submit VLM" enabled="true">
+              <stringProp name="IncludeController.includepath">../_JMeter_Test_Fragments/BE/VLM/Submit_VLM.jmx</stringProp>
+            </IncludeController>
+            <hashTree/>
+            <IncludeController guiclass="IncludeControllerGui" testclass="IncludeController" testname="Get VLM Version ID and Label" enabled="true">
+              <stringProp name="IncludeController.includepath">../_JMeter_Test_Fragments/BE/VLM/Get_VLM_Version_ID_and_Label.jmx</stringProp>
+            </IncludeController>
+            <hashTree/>
+            <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Create VSP+Translate" enabled="true"/>
+            <hashTree>
+              <IncludeController guiclass="IncludeControllerGui" testclass="IncludeController" testname="Vendor Software Products" enabled="true">
+                <stringProp name="IncludeController.includepath">../_JMeter_Test_Fragments/BE/VSP/Create_Single_VSP.jmx</stringProp>
+              </IncludeController>
+              <hashTree/>
+              <IncludeController guiclass="IncludeControllerGui" testclass="IncludeController" testname="Upload ZIP file to VSP" enabled="true">
+                <stringProp name="IncludeController.includepath">../_JMeter_Test_Fragments/BE/VSP/Upload_ZIP_File_To_VSP.jmx</stringProp>
+              </IncludeController>
+              <hashTree/>
+              <IncludeController guiclass="IncludeControllerGui" testclass="IncludeController" testname="Validatrion/Save/Process" enabled="true">
+                <stringProp name="IncludeController.includepath">../_JMeter_Test_Fragments/BE/VSP_Processes/Validation_Save_Process.jmx</stringProp>
+              </IncludeController>
+              <hashTree/>
+              <IncludeController guiclass="IncludeControllerGui" testclass="IncludeController" testname="Commit VSP" enabled="true">
+                <stringProp name="IncludeController.includepath">../_JMeter_Test_Fragments/BE/VSP/Commit_VSP.jmx</stringProp>
+              </IncludeController>
+              <hashTree/>
+              <IncludeController guiclass="IncludeControllerGui" testclass="IncludeController" testname="Submit VSP" enabled="true">
+                <stringProp name="IncludeController.includepath">../_JMeter_Test_Fragments/BE/VSP/Submit_VSP.jmx</stringProp>
+              </IncludeController>
+              <hashTree/>
+              <IncludeController guiclass="IncludeControllerGui" testclass="IncludeController" testname="Get VSP Version ID and Label" enabled="true">
+                <stringProp name="IncludeController.includepath">../_JMeter_Test_Fragments/BE/VSP/Get_VSP_Version_ID_and_Label.jmx</stringProp>
+              </IncludeController>
+              <hashTree/>
+              <IncludeController guiclass="IncludeControllerGui" testclass="IncludeController" testname="Translate ZIP file" enabled="true">
+                <stringProp name="IncludeController.includepath">../_JMeter_Test_Fragments/BE/VSP/Translate_ZIP_file.jmx</stringProp>
+              </IncludeController>
+              <hashTree/>
+              <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Create rmp DIR to download" enabled="true">
+                <boolProp name="SystemSampler.checkReturnCode">false</boolProp>
+                <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
+                <stringProp name="SystemSampler.command">mkdir</stringProp>
+                <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
+                  <collectionProp name="Arguments.arguments">
+                    <elementProp name="" elementType="Argument">
+                      <stringProp name="Argument.name"></stringProp>
+                      <stringProp name="Argument.value">-p</stringProp>
+                      <stringProp name="Argument.metadata">=</stringProp>
+                    </elementProp>
+                    <elementProp name="" elementType="Argument">
+                      <stringProp name="Argument.name"></stringProp>
+                      <stringProp name="Argument.value">/tmp/${__TestPlanName}_${__P(VSP_P)}</stringProp>
+                      <stringProp name="Argument.metadata">=</stringProp>
+                    </elementProp>
+                  </collectionProp>
+                </elementProp>
+                <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
+                  <collectionProp name="Arguments.arguments"/>
+                </elementProp>
+                <stringProp name="SystemSampler.directory"></stringProp>
+              </SystemSampler>
+              <hashTree>
+                <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
+                  <boolProp name="ResultCollector.error_logging">false</boolProp>
+                  <objProp>
+                    <name>saveConfig</name>
+                    <value class="SampleSaveConfiguration">
+                      <time>true</time>
+                      <latency>true</latency>
+                      <timestamp>true</timestamp>
+                      <success>true</success>
+                      <label>true</label>
+                      <code>true</code>
+                      <message>true</message>
+                      <threadName>true</threadName>
+                      <dataType>true</dataType>
+                      <encoding>true</encoding>
+                      <assertions>true</assertions>
+                      <subresults>true</subresults>
+                      <responseData>true</responseData>
+                      <samplerData>true</samplerData>
+                      <xml>false</xml>
+                      <fieldNames>true</fieldNames>
+                      <responseHeaders>true</responseHeaders>
+                      <requestHeaders>true</requestHeaders>
+                      <responseDataOnError>false</responseDataOnError>
+                      <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
+                      <assertionsResultsToSave>0</assertionsResultsToSave>
+                      <bytes>true</bytes>
+                      <url>true</url>
+                      <fileName>true</fileName>
+                      <hostname>true</hostname>
+                      <threadCounts>true</threadCounts>
+                      <sampleCount>true</sampleCount>
+                      <idleTime>true</idleTime>
+                    </value>
+                  </objProp>
+                  <stringProp name="filename"></stringProp>
+                </ResultCollector>
+                <hashTree/>
+              </hashTree>
+              <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Download Package" enabled="true">
+                <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
+                  <collectionProp name="Arguments.arguments"/>
+                </elementProp>
+                <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp>
+                <stringProp name="HTTPSampler.port">${port}</stringProp>
+                <stringProp name="HTTPSampler.connect_timeout"></stringProp>
+                <stringProp name="HTTPSampler.response_timeout"></stringProp>
+                <stringProp name="HTTPSampler.protocol">${protocol}</stringProp>
+                <stringProp name="HTTPSampler.contentEncoding"></stringProp>
+                <stringProp name="HTTPSampler.path">${__P(ASDC_VSP)}/${__P(PKG)}/${__P(VSP_P)}</stringProp>
+                <stringProp name="HTTPSampler.method">GET</stringProp>
+                <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
+                <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
+                <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
+                <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
+                <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp>
+                <boolProp name="HTTPSampler.monitor">false</boolProp>
+                <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
+              </HTTPSamplerProxy>
+              <hashTree>
+                <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager Main" enabled="true">
+                  <collectionProp name="HeaderManager.headers">
+                    <elementProp name="" elementType="Header">
+                      <stringProp name="Header.name">${__P(HTTP_REST_USER_ID_HEADER_NAME)}</stringProp>
+                      <stringProp name="Header.value">${__P(HTTP_REST_USER_ID_HEADER_VALUE)}</stringProp>
+                    </elementProp>
+                    <elementProp name="" elementType="Header">
+                      <stringProp name="Header.name">Accept</stringProp>
+                      <stringProp name="Header.value">application/octet-stream</stringProp>
+                    </elementProp>
+                  </collectionProp>
+                  <stringProp name="TestPlan.comments">Accept - application/octet-stream</stringProp>
+                </HeaderManager>
+                <hashTree/>
+                <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
+                  <boolProp name="ResultCollector.error_logging">false</boolProp>
+                  <objProp>
+                    <name>saveConfig</name>
+                    <value class="SampleSaveConfiguration">
+                      <time>true</time>
+                      <latency>true</latency>
+                      <timestamp>true</timestamp>
+                      <success>true</success>
+                      <label>true</label>
+                      <code>true</code>
+                      <message>true</message>
+                      <threadName>true</threadName>
+                      <dataType>true</dataType>
+                      <encoding>false</encoding>
+                      <assertions>true</assertions>
+                      <subresults>true</subresults>
+                      <responseData>false</responseData>
+                      <samplerData>false</samplerData>
+                      <xml>false</xml>
+                      <fieldNames>false</fieldNames>
+                      <responseHeaders>false</responseHeaders>
+                      <requestHeaders>false</requestHeaders>
+                      <responseDataOnError>false</responseDataOnError>
+                      <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
+                      <assertionsResultsToSave>0</assertionsResultsToSave>
+                      <bytes>true</bytes>
+                      <threadCounts>true</threadCounts>
+                    </value>
+                  </objProp>
+                  <stringProp name="filename"></stringProp>
+                </ResultCollector>
+                <hashTree/>
+                <ResultSaver guiclass="ResultSaverGui" testclass="ResultSaver" testname="Save Responses to a file" enabled="true">
+                  <stringProp name="FileSaver.filename">/tmp/${__TestPlanName}_${__P(VSP_P)}/${__P(VSP_P)}.zip</stringProp>
+                  <boolProp name="FileSaver.errorsonly">false</boolProp>
+                  <boolProp name="FileSaver.skipautonumber">true</boolProp>
+                  <boolProp name="FileSaver.skipsuffix">true</boolProp>
+                  <boolProp name="FileSaver.successonly">true</boolProp>
+                </ResultSaver>
+                <hashTree/>
+                <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true">
+                  <boolProp name="resetInterpreter">false</boolProp>
+                  <stringProp name="parameters"></stringProp>
+                  <stringProp name="filename"></stringProp>
+                  <stringProp name="script">//String ResponseString = prev.getResponseDataAsString();
+String ResponseCode = prev.getResponseCode(); 
+String ResponseMessage = prev.getResponseMessage();
+
+String test_tmp_folder = &quot;/tmp/TestResult/${TestName}&quot;;
+       f = new FileOutputStream(test_tmp_folder, true); 
+       p = new PrintStream(f); 
+
+mydate = &quot;${__time(dd-MM-yyyy hh:mm:ss)}&quot;;
+
+p.println(&quot;\n#######################&quot;+&quot; Download Package &quot;+&quot;#######################&quot;);
+
+if (ResponseCode.contains(&quot;200&quot;))
+{
+       p.println(mydate + &quot; : Thread number ${__threadNum()} in step ${__samplerName}: PASS&quot;);
+       p.println(&quot;Response Code : &quot; + ResponseCode); 
+       p.println(&quot;Response Message : &quot; + ResponseMessage);
+       //p.println(&quot;Response String : &quot; + ResponseString);
+}
+else
+{
+       p.println(mydate + &quot; : Thread number ${__threadNum()} in step ${__samplerName}: FAIL&quot;);
+       p.println(&quot;Response Code : &quot; + ResponseCode);
+       p.println(&quot;Response Message : &quot; + ResponseMessage);
+       //p.println(&quot;Response String : &quot; + ResponseString);
+}
+
+p.println(&quot;############################################################################\n&quot;);
+
+p.close();f.close();</stringProp>
+                </BeanShellPostProcessor>
+                <hashTree/>
+                <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
+                  <stringProp name="ConstantTimer.delay">300</stringProp>
+                </ConstantTimer>
+                <hashTree/>
+                <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true">
+                  <intProp name="OnError.action">1</intProp>
+                </ResultAction>
+                <hashTree/>
+              </hashTree>
+            </hashTree>
+          </hashTree>
+          <DebugPostProcessor guiclass="TestBeanGUI" testclass="DebugPostProcessor" testname="Debug PostProcessor" enabled="true">
+            <boolProp name="displayJMeterProperties">true</boolProp>
+            <boolProp name="displayJMeterVariables">true</boolProp>
+            <boolProp name="displaySamplerProperties">true</boolProp>
+            <boolProp name="displaySystemProperties">false</boolProp>
+          </DebugPostProcessor>
+          <hashTree/>
+          <IncludeController guiclass="IncludeControllerGui" testclass="IncludeController" testname="Create Single VF" enabled="true">
+            <stringProp name="IncludeController.includepath">../_JMeter_Test_Fragments/BE/VF/Create_Single_VF.jmx</stringProp>
+          </IncludeController>
+          <hashTree/>
+          <IncludeController guiclass="IncludeControllerGui" testclass="IncludeController" testname="Create VF_Service" enabled="true">
+            <stringProp name="IncludeController.includepath">../_JMeter_Test_Fragments/BE/VF/Create_VF_Service.jmx</stringProp>
+          </IncludeController>
+          <hashTree/>
+          <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Create VF_Service" enabled="false"/>
+          <hashTree>
+            <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="Define VF_service Properties" enabled="true">
+              <stringProp name="BeanShellSampler.query">${__eval(${__FileToString(${branch}/TestsProperties/ASDC/VF_service_props.txt)})}</stringProp>
+              <stringProp name="BeanShellSampler.filename"></stringProp>
+              <stringProp name="BeanShellSampler.parameters"></stringProp>
+              <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp>
+            </BeanShellSampler>
+            <hashTree>
+              <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
+                <stringProp name="ConstantTimer.delay">300</stringProp>
+              </ConstantTimer>
+              <hashTree/>
+            </hashTree>
+            <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create VF Service" enabled="true">
+              <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
+              <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
+                <collectionProp name="Arguments.arguments">
+                  <elementProp name="" elementType="HTTPArgument">
+                    <boolProp name="HTTPArgument.always_encode">false</boolProp>
+                    <stringProp name="Argument.value">${__eval(${__FileToString(${branch}/TestsProperties/ASDC/VF_service_body.txt)})}</stringProp>
+                    <stringProp name="Argument.metadata">=</stringProp>
+                  </elementProp>
+                </collectionProp>
+              </elementProp>
+              <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp>
+              <stringProp name="HTTPSampler.port">${port}</stringProp>
+              <stringProp name="HTTPSampler.connect_timeout"></stringProp>
+              <stringProp name="HTTPSampler.response_timeout"></stringProp>
+              <stringProp name="HTTPSampler.protocol">${protocol}</stringProp>
+              <stringProp name="HTTPSampler.contentEncoding"></stringProp>
+              <stringProp name="HTTPSampler.path">${__P(ASDC_SERVICES)}</stringProp>
+              <stringProp name="HTTPSampler.method">POST</stringProp>
+              <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
+              <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
+              <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
+              <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
+              <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp>
+              <boolProp name="HTTPSampler.monitor">false</boolProp>
+              <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
+            </HTTPSamplerProxy>
+            <hashTree>
+              <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager Main" enabled="true">
+                <collectionProp name="HeaderManager.headers">
+                  <elementProp name="" elementType="Header">
+                    <stringProp name="Header.name">Accept</stringProp>
+                    <stringProp name="Header.value">application/json</stringProp>
+                  </elementProp>
+                  <elementProp name="" elementType="Header">
+                    <stringProp name="Header.name">Content-Type</stringProp>
+                    <stringProp name="Header.value">application/json</stringProp>
+                  </elementProp>
+                  <elementProp name="" elementType="Header">
+                    <stringProp name="Header.name">${__P(HTTP_REST_USER_ID_HEADER_NAME)}</stringProp>
+                    <stringProp name="Header.value">${__P(HTTP_REST_USER_ID_HEADER_VALUE)}</stringProp>
+                  </elementProp>
+                </collectionProp>
+                <stringProp name="TestPlan.comments">Accept - application/octet-stream</stringProp>
+              </HeaderManager>
+              <hashTree/>
+              <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Get VFresourceinstance from response" enabled="true">
+                <stringProp name="RegexExtractor.useHeaders">false</stringProp>
+                <stringProp name="RegexExtractor.refname">VFresourceinstance</stringProp>
+                <stringProp name="RegexExtractor.regex">&quot;uniqueId&quot;:&quot;(.+?)\.</stringProp>
+                <stringProp name="RegexExtractor.template">$1$</stringProp>
+                <stringProp name="RegexExtractor.default">0</stringProp>
+                <stringProp name="RegexExtractor.match_number">1</stringProp>
+                <stringProp name="Scope.variable"></stringProp>
+              </RegexExtractor>
+              <hashTree/>
+              <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Get parentUniqueId from response" enabled="false">
+                <stringProp name="RegexExtractor.useHeaders">false</stringProp>
+                <stringProp name="RegexExtractor.refname">VFSumbit</stringProp>
+                <stringProp name="RegexExtractor.regex">&quot;uniqueId&quot;:&quot;(.+?)\.</stringProp>
+                <stringProp name="RegexExtractor.template">$1$</stringProp>
+                <stringProp name="RegexExtractor.default">0</stringProp>
+                <stringProp name="RegexExtractor.match_number">1</stringProp>
+                <stringProp name="Scope.variable"></stringProp>
+              </RegexExtractor>
+              <hashTree/>
+              <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true">
+                <boolProp name="resetInterpreter">false</boolProp>
+                <stringProp name="parameters"></stringProp>
+                <stringProp name="filename"></stringProp>
+                <stringProp name="script">String ResponseString = prev.getResponseDataAsString();
+String ResponseCode = prev.getResponseCode(); 
+String ResponseMessage = prev.getResponseMessage();
+String test_tmp_folder = &quot;/tmp/TestResult/${TestName}&quot;;
+       f = new FileOutputStream(test_tmp_folder, true); 
+       p = new PrintStream(f); 
+mydate = &quot;${__time(dd-MM-yyyy hh:mm:ss)}&quot;;
+props.put(&quot;VFinstance_P&quot;,&quot;${VFresourceinstance}&quot;);
+p.println(&quot;\n#######################&quot;+&quot;Create VF Service &quot;+&quot;#######################&quot;);
+if (ResponseCode.contains(&quot;201&quot;))
+{
+       p.println(mydate + &quot; : Thread number ${__threadNum()} in step ${__samplerName}: PASS&quot;);
+       p.println(&quot;Response Code : &quot; + ResponseCode); 
+       p.println(&quot;Response Message : &quot; + ResponseMessage);
+       p.println(&quot;Response String : &quot; + ResponseString);
+}
+else
+{
+       p.println(mydate + &quot; : Thread number ${__threadNum()} in step ${__samplerName}: FAIL&quot;);
+       p.println(&quot;Response Code : &quot; + ResponseCode);
+       p.println(&quot;Response Message : &quot; + ResponseMessage + &quot;\nERROR: Create VF Service failed.&quot;);
+       p.println(&quot;Response String : &quot; + ResponseString);
+}
+p.println(&quot;#####################################################################\n&quot;);
+p.close();f.close();</stringProp>
+              </BeanShellPostProcessor>
+              <hashTree/>
+              <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
+                <boolProp name="ResultCollector.error_logging">false</boolProp>
+                <objProp>
+                  <name>saveConfig</name>
+                  <value class="SampleSaveConfiguration">
+                    <time>true</time>
+                    <latency>true</latency>
+                    <timestamp>true</timestamp>
+                    <success>true</success>
+                    <label>true</label>
+                    <code>true</code>
+                    <message>true</message>
+                    <threadName>true</threadName>
+                    <dataType>true</dataType>
+                    <encoding>false</encoding>
+                    <assertions>true</assertions>
+                    <subresults>true</subresults>
+                    <responseData>false</responseData>
+                    <samplerData>false</samplerData>
+                    <xml>false</xml>
+                    <fieldNames>false</fieldNames>
+                    <responseHeaders>false</responseHeaders>
+                    <requestHeaders>false</requestHeaders>
+                    <responseDataOnError>false</responseDataOnError>
+                    <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
+                    <assertionsResultsToSave>0</assertionsResultsToSave>
+                    <bytes>true</bytes>
+                    <threadCounts>true</threadCounts>
+                  </value>
+                </objProp>
+                <stringProp name="filename"></stringProp>
+              </ResultCollector>
+              <hashTree/>
+              <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true">
+                <intProp name="OnError.action">1</intProp>
+              </ResultAction>
+              <hashTree/>
+              <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
+                <stringProp name="ConstantTimer.delay">300</stringProp>
+              </ConstantTimer>
+              <hashTree/>
+            </hashTree>
+            <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="Define VF_resourceInstance Properties" enabled="true">
+              <stringProp name="BeanShellSampler.query">${__eval(${__FileToString(${branch}/TestsProperties/ASDC/VF_resourceInstance_props.txt)})}</stringProp>
+              <stringProp name="BeanShellSampler.filename"></stringProp>
+              <stringProp name="BeanShellSampler.parameters"></stringProp>
+              <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp>
+            </BeanShellSampler>
+            <hashTree>
+              <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
+                <stringProp name="ConstantTimer.delay">300</stringProp>
+              </ConstantTimer>
+              <hashTree/>
+            </hashTree>
+            <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create VFresourceinstance" enabled="true">
+              <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
+              <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
+                <collectionProp name="Arguments.arguments">
+                  <elementProp name="" elementType="HTTPArgument">
+                    <boolProp name="HTTPArgument.always_encode">false</boolProp>
+                    <stringProp name="Argument.value">${__eval(${__FileToString(${branch}/TestsProperties/ASDC/VF_resourceInstance_body.txt)})}</stringProp>
+                    <stringProp name="Argument.metadata">=</stringProp>
+                  </elementProp>
+                </collectionProp>
+              </elementProp>
+              <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp>
+              <stringProp name="HTTPSampler.port">${port}</stringProp>
+              <stringProp name="HTTPSampler.connect_timeout"></stringProp>
+              <stringProp name="HTTPSampler.response_timeout"></stringProp>
+              <stringProp name="HTTPSampler.protocol">${protocol}</stringProp>
+              <stringProp name="HTTPSampler.contentEncoding"></stringProp>
+              <stringProp name="HTTPSampler.path">${__P(ASDC_SERVICES)}/${__P(VFinstance_P)}/${__P(ResourceInstance)}</stringProp>
+              <stringProp name="HTTPSampler.method">POST</stringProp>
+              <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
+              <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
+              <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
+              <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
+              <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp>
+              <boolProp name="HTTPSampler.monitor">false</boolProp>
+              <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
+            </HTTPSamplerProxy>
+            <hashTree>
+              <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager Main" enabled="true">
+                <collectionProp name="HeaderManager.headers">
+                  <elementProp name="" elementType="Header">
+                    <stringProp name="Header.name">Accept</stringProp>
+                    <stringProp name="Header.value">application/json</stringProp>
+                  </elementProp>
+                  <elementProp name="" elementType="Header">
+                    <stringProp name="Header.name">Content-Type</stringProp>
+                    <stringProp name="Header.value">application/json</stringProp>
+                  </elementProp>
+                  <elementProp name="" elementType="Header">
+                    <stringProp name="Header.name">${__P(HTTP_REST_USER_ID_HEADER_NAME)}</stringProp>
+                    <stringProp name="Header.value">${__P(HTTP_REST_USER_ID_HEADER_VALUE)}</stringProp>
+                  </elementProp>
+                </collectionProp>
+                <stringProp name="TestPlan.comments">Accept - application/octet-stream</stringProp>
+              </HeaderManager>
+              <hashTree/>
+              <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Get parentUniqueId from response" enabled="false">
+                <stringProp name="RegexExtractor.useHeaders">false</stringProp>
+                <stringProp name="RegexExtractor.refname">VFSumbit</stringProp>
+                <stringProp name="RegexExtractor.regex">&quot;uniqueId&quot;:&quot;(.+?)\.</stringProp>
+                <stringProp name="RegexExtractor.template">$1$</stringProp>
+                <stringProp name="RegexExtractor.default">0</stringProp>
+                <stringProp name="RegexExtractor.match_number">1</stringProp>
+                <stringProp name="Scope.variable"></stringProp>
+              </RegexExtractor>
+              <hashTree/>
+              <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true">
+                <boolProp name="resetInterpreter">false</boolProp>
+                <stringProp name="parameters"></stringProp>
+                <stringProp name="filename"></stringProp>
+                <stringProp name="script">String ResponseString = prev.getResponseDataAsString();
+String ResponseCode = prev.getResponseCode(); 
+String ResponseMessage = prev.getResponseMessage();
+String test_tmp_folder = &quot;/tmp/TestResult/${TestName}&quot;;
+       f = new FileOutputStream(test_tmp_folder, true); 
+       p = new PrintStream(f); 
+mydate = &quot;${__time(dd-MM-yyyy hh:mm:ss)}&quot;;
+p.println(&quot;\n#######################&quot;+&quot;Create VF resourceinstance &quot;+&quot;#######################&quot;);
+if (ResponseCode.contains(&quot;201&quot;))
+{
+       p.println(mydate + &quot; : Thread number ${__threadNum()} in step ${__samplerName}: PASS&quot;);
+       p.println(&quot;Response Code : &quot; + ResponseCode); 
+       p.println(&quot;Response Message : &quot; + ResponseMessage);
+       p.println(&quot;Response String : &quot; + ResponseString);
+}
+else
+{
+       p.println(mydate + &quot; : Thread number ${__threadNum()} in step ${__samplerName}: FAIL&quot;);
+       p.println(&quot;Response Code : &quot; + ResponseCode);
+       p.println(&quot;Response Message : &quot; + ResponseMessage + &quot;\nERROR: Create VFresourceinstance failed.&quot;);
+       p.println(&quot;Response String : &quot; + ResponseString);
+}
+p.println(&quot;#####################################################################\n&quot;);
+p.close();f.close();</stringProp>
+              </BeanShellPostProcessor>
+              <hashTree/>
+              <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
+                <boolProp name="ResultCollector.error_logging">false</boolProp>
+                <objProp>
+                  <name>saveConfig</name>
+                  <value class="SampleSaveConfiguration">
+                    <time>true</time>
+                    <latency>true</latency>
+                    <timestamp>true</timestamp>
+                    <success>true</success>
+                    <label>true</label>
+                    <code>true</code>
+                    <message>true</message>
+                    <threadName>true</threadName>
+                    <dataType>true</dataType>
+                    <encoding>false</encoding>
+                    <assertions>true</assertions>
+                    <subresults>true</subresults>
+                    <responseData>false</responseData>
+                    <samplerData>false</samplerData>
+                    <xml>false</xml>
+                    <fieldNames>false</fieldNames>
+                    <responseHeaders>false</responseHeaders>
+                    <requestHeaders>false</requestHeaders>
+                    <responseDataOnError>false</responseDataOnError>
+                    <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
+                    <assertionsResultsToSave>0</assertionsResultsToSave>
+                    <bytes>true</bytes>
+                    <threadCounts>true</threadCounts>
+                  </value>
+                </objProp>
+                <stringProp name="filename"></stringProp>
+              </ResultCollector>
+              <hashTree/>
+              <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true">
+                <intProp name="OnError.action">1</intProp>
+              </ResultAction>
+              <hashTree/>
+              <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
+                <stringProp name="ConstantTimer.delay">300</stringProp>
+              </ConstantTimer>
+              <hashTree/>
+            </hashTree>
+            <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Submit VFresourceinstance" enabled="true">
+              <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
+              <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
+                <collectionProp name="Arguments.arguments">
+                  <elementProp name="" elementType="HTTPArgument">
+                    <boolProp name="HTTPArgument.always_encode">false</boolProp>
+                    <stringProp name="Argument.value">${__eval(${__FileToString(${branch}/TestsProperties/ASDC/VF_Checkin_body.txt)})}</stringProp>
+                    <stringProp name="Argument.metadata">=</stringProp>
+                  </elementProp>
+                </collectionProp>
+              </elementProp>
+              <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp>
+              <stringProp name="HTTPSampler.port">${port}</stringProp>
+              <stringProp name="HTTPSampler.connect_timeout"></stringProp>
+              <stringProp name="HTTPSampler.response_timeout"></stringProp>
+              <stringProp name="HTTPSampler.protocol">${protocol}</stringProp>
+              <stringProp name="HTTPSampler.contentEncoding"></stringProp>
+              <stringProp name="HTTPSampler.path">${__P(ASDC_SERVICES)}/${__P(VFinstance_P)}/${__P(LifecycleState)}/${__P(CertificationRequest)}</stringProp>
+              <stringProp name="HTTPSampler.method">POST</stringProp>
+              <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
+              <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
+              <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
+              <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
+              <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp>
+              <boolProp name="HTTPSampler.monitor">false</boolProp>
+              <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
+            </HTTPSamplerProxy>
+            <hashTree>
+              <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager Main" enabled="true">
+                <collectionProp name="HeaderManager.headers">
+                  <elementProp name="" elementType="Header">
+                    <stringProp name="Header.name">Accept</stringProp>
+                    <stringProp name="Header.value">application/json</stringProp>
+                  </elementProp>
+                  <elementProp name="" elementType="Header">
+                    <stringProp name="Header.name">Content-Type</stringProp>
+                    <stringProp name="Header.value">application/json</stringProp>
+                  </elementProp>
+                  <elementProp name="" elementType="Header">
+                    <stringProp name="Header.name">${__P(HTTP_REST_USER_ID_HEADER_NAME)}</stringProp>
+                    <stringProp name="Header.value">${__P(HTTP_REST_USER_ID_HEADER_VALUE)}</stringProp>
+                  </elementProp>
+                </collectionProp>
+                <stringProp name="TestPlan.comments">Accept - application/octet-stream</stringProp>
+              </HeaderManager>
+              <hashTree/>
+              <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true">
+                <boolProp name="resetInterpreter">false</boolProp>
+                <stringProp name="parameters"></stringProp>
+                <stringProp name="filename"></stringProp>
+                <stringProp name="script">String ResponseString = prev.getResponseDataAsString();
+String ResponseCode = prev.getResponseCode(); 
+String ResponseMessage = prev.getResponseMessage();
+
+String test_tmp_folder = &quot;/tmp/TestResult/${TestName}&quot;;
+       f = new FileOutputStream(test_tmp_folder, true); 
+       p = new PrintStream(f); 
+mydate = &quot;${__time(dd-MM-yyyy hh:mm:ss)}&quot;;
+
+p.println(&quot;\n#######################&quot;+&quot; Submit VFresourceinstance &quot;+&quot;#######################&quot;);
+if (ResponseCode.contains(&quot;200&quot;))
+{
+       p.println(mydate + &quot; : Thread number ${__threadNum()} in step ${__samplerName}: PASS&quot;);
+       p.println(&quot;Response Code : &quot; + ResponseCode); 
+       p.println(&quot;Response Message : &quot; + ResponseMessage);
+       p.println(&quot;Response String : &quot; + ResponseString);
+}
+else
+{
+       p.println(mydate + &quot; : Thread number ${__threadNum()} in step ${__samplerName}: FAIL&quot;);
+       p.println(&quot;Response Code : &quot; + ResponseCode);
+       p.println(&quot;Response Message : &quot; + ResponseMessage + &quot;\nERROR: Submit VFresourceinstance name from response failed.&quot;);
+       p.println(&quot;Response String : &quot; + ResponseString);
+}
+p.println(&quot;#####################################################################\n&quot;);
+p.close();f.close();</stringProp>
+              </BeanShellPostProcessor>
+              <hashTree/>
+              <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
+                <boolProp name="ResultCollector.error_logging">false</boolProp>
+                <objProp>
+                  <name>saveConfig</name>
+                  <value class="SampleSaveConfiguration">
+                    <time>true</time>
+                    <latency>true</latency>
+                    <timestamp>true</timestamp>
+                    <success>true</success>
+                    <label>true</label>
+                    <code>true</code>
+                    <message>true</message>
+                    <threadName>true</threadName>
+                    <dataType>true</dataType>
+                    <encoding>false</encoding>
+                    <assertions>true</assertions>
+                    <subresults>true</subresults>
+                    <responseData>false</responseData>
+                    <samplerData>false</samplerData>
+                    <xml>false</xml>
+                    <fieldNames>false</fieldNames>
+                    <responseHeaders>false</responseHeaders>
+                    <requestHeaders>false</requestHeaders>
+                    <responseDataOnError>false</responseDataOnError>
+                    <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
+                    <assertionsResultsToSave>0</assertionsResultsToSave>
+                    <bytes>true</bytes>
+                    <threadCounts>true</threadCounts>
+                  </value>
+                </objProp>
+                <stringProp name="filename"></stringProp>
+              </ResultCollector>
+              <hashTree/>
+              <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true">
+                <intProp name="OnError.action">1</intProp>
+              </ResultAction>
+              <hashTree/>
+              <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
+                <stringProp name="ConstantTimer.delay">300</stringProp>
+              </ConstantTimer>
+              <hashTree/>
+            </hashTree>
+            <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Start VFresourceinstance" enabled="true">
+              <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
+              <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
+                <collectionProp name="Arguments.arguments">
+                  <elementProp name="" elementType="HTTPArgument">
+                    <boolProp name="HTTPArgument.always_encode">false</boolProp>
+                    <stringProp name="Argument.value"></stringProp>
+                    <stringProp name="Argument.metadata">=</stringProp>
+                  </elementProp>
+                </collectionProp>
+              </elementProp>
+              <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp>
+              <stringProp name="HTTPSampler.port">${port}</stringProp>
+              <stringProp name="HTTPSampler.connect_timeout"></stringProp>
+              <stringProp name="HTTPSampler.response_timeout"></stringProp>
+              <stringProp name="HTTPSampler.protocol">${protocol}</stringProp>
+              <stringProp name="HTTPSampler.contentEncoding"></stringProp>
+              <stringProp name="HTTPSampler.path">${__P(ASDC_SERVICES)}/${__P(VFinstance_P)}/${__P(LifecycleState)}/${__P(StartCertification)}</stringProp>
+              <stringProp name="HTTPSampler.method">POST</stringProp>
+              <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
+              <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
+              <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
+              <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
+              <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp>
+              <boolProp name="HTTPSampler.monitor">false</boolProp>
+              <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
+            </HTTPSamplerProxy>
+            <hashTree>
+              <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager Main" enabled="true">
+                <collectionProp name="HeaderManager.headers">
+                  <elementProp name="" elementType="Header">
+                    <stringProp name="Header.name">Accept</stringProp>
+                    <stringProp name="Header.value">application/json</stringProp>
+                  </elementProp>
+                  <elementProp name="" elementType="Header">
+                    <stringProp name="Header.name">Content-Type</stringProp>
+                    <stringProp name="Header.value">application/json</stringProp>
+                  </elementProp>
+                  <elementProp name="" elementType="Header">
+                    <stringProp name="Header.name">${__P(HTTP_REST_USER_ID_HEADER_NAME)}</stringProp>
+                    <stringProp name="Header.value">${HTTP_Tester_ATTUID}</stringProp>
+                  </elementProp>
+                </collectionProp>
+                <stringProp name="TestPlan.comments">Accept - application/octet-stream</stringProp>
+              </HeaderManager>
+              <hashTree/>
+              <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true">
+                <boolProp name="resetInterpreter">false</boolProp>
+                <stringProp name="parameters"></stringProp>
+                <stringProp name="filename"></stringProp>
+                <stringProp name="script">String ResponseString = prev.getResponseDataAsString();
+String ResponseCode = prev.getResponseCode(); 
+String ResponseMessage = prev.getResponseMessage();
+
+String test_tmp_folder = &quot;/tmp/TestResult/${TestName}&quot;;
+       f = new FileOutputStream(test_tmp_folder, true); 
+       p = new PrintStream(f); 
+mydate = &quot;${__time(dd-MM-yyyy hh:mm:ss)}&quot;;
+props.put(&quot;parentUniqueId_P&quot;,&quot;${parentUniqueId}&quot;);
+
+p.println(&quot;\n#######################&quot;+&quot; Start VFresourceinstance &quot;+&quot;#######################&quot;);
+if (ResponseCode.contains(&quot;200&quot;))
+{
+       p.println(mydate + &quot; : Thread number ${__threadNum()} in step ${__samplerName}: PASS&quot;);
+       p.println(&quot;Response Code : &quot; + ResponseCode); 
+       p.println(&quot;Response Message : &quot; + ResponseMessage);
+       p.println(&quot;Response String : &quot; + ResponseString);
+}
+else
+{
+       p.println(mydate + &quot; : Thread number ${__threadNum()} in step ${__samplerName}: FAIL&quot;);
+       p.println(&quot;Response Code : &quot; + ResponseCode);
+       p.println(&quot;Response Message : &quot; + ResponseMessage + &quot;\nERROR: Start VFresourceinstance failed.&quot;);
+       p.println(&quot;Response String : &quot; + ResponseString);
+}
+p.println(&quot;#####################################################################\n&quot;);
+p.close();f.close();</stringProp>
+              </BeanShellPostProcessor>
+              <hashTree/>
+              <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
+                <boolProp name="ResultCollector.error_logging">false</boolProp>
+                <objProp>
+                  <name>saveConfig</name>
+                  <value class="SampleSaveConfiguration">
+                    <time>true</time>
+                    <latency>true</latency>
+                    <timestamp>true</timestamp>
+                    <success>true</success>
+                    <label>true</label>
+                    <code>true</code>
+                    <message>true</message>
+                    <threadName>true</threadName>
+                    <dataType>true</dataType>
+                    <encoding>false</encoding>
+                    <assertions>true</assertions>
+                    <subresults>true</subresults>
+                    <responseData>false</responseData>
+                    <samplerData>false</samplerData>
+                    <xml>false</xml>
+                    <fieldNames>false</fieldNames>
+                    <responseHeaders>false</responseHeaders>
+                    <requestHeaders>false</requestHeaders>
+                    <responseDataOnError>false</responseDataOnError>
+                    <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
+                    <assertionsResultsToSave>0</assertionsResultsToSave>
+                    <bytes>true</bytes>
+                    <threadCounts>true</threadCounts>
+                  </value>
+                </objProp>
+                <stringProp name="filename"></stringProp>
+              </ResultCollector>
+              <hashTree/>
+              <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true">
+                <intProp name="OnError.action">1</intProp>
+              </ResultAction>
+              <hashTree/>
+              <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
+                <stringProp name="ConstantTimer.delay">300</stringProp>
+              </ConstantTimer>
+              <hashTree/>
+            </hashTree>
+            <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Accept VFresourceinstance" enabled="true">
+              <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
+              <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
+                <collectionProp name="Arguments.arguments">
+                  <elementProp name="" elementType="HTTPArgument">
+                    <boolProp name="HTTPArgument.always_encode">false</boolProp>
+                    <stringProp name="Argument.value">${__eval(${__FileToString(${branch}/TestsProperties/ASDC/VF_Checkin_body.txt)})}</stringProp>
+                    <stringProp name="Argument.metadata">=</stringProp>
+                  </elementProp>
+                </collectionProp>
+              </elementProp>
+              <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp>
+              <stringProp name="HTTPSampler.port">${port}</stringProp>
+              <stringProp name="HTTPSampler.connect_timeout"></stringProp>
+              <stringProp name="HTTPSampler.response_timeout"></stringProp>
+              <stringProp name="HTTPSampler.protocol">${protocol}</stringProp>
+              <stringProp name="HTTPSampler.contentEncoding"></stringProp>
+              <stringProp name="HTTPSampler.path">${__P(ASDC_SERVICES)}/${__P(VFinstance_P)}/${__P(LifecycleState)}/${__P(Certify)}</stringProp>
+              <stringProp name="HTTPSampler.method">POST</stringProp>
+              <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
+              <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
+              <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
+              <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
+              <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp>
+              <boolProp name="HTTPSampler.monitor">false</boolProp>
+              <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
+            </HTTPSamplerProxy>
+            <hashTree>
+              <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager Main" enabled="true">
+                <collectionProp name="HeaderManager.headers">
+                  <elementProp name="" elementType="Header">
+                    <stringProp name="Header.name">Accept</stringProp>
+                    <stringProp name="Header.value">application/json</stringProp>
+                  </elementProp>
+                  <elementProp name="" elementType="Header">
+                    <stringProp name="Header.name">Content-Type</stringProp>
+                    <stringProp name="Header.value">application/json</stringProp>
+                  </elementProp>
+                  <elementProp name="" elementType="Header">
+                    <stringProp name="Header.name">${__P(HTTP_REST_USER_ID_HEADER_NAME)}</stringProp>
+                    <stringProp name="Header.value">${HTTP_Tester_ATTUID}</stringProp>
+                  </elementProp>
+                </collectionProp>
+                <stringProp name="TestPlan.comments">Accept - application/octet-stream</stringProp>
+              </HeaderManager>
+              <hashTree/>
+              <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Get VFAccept from response" enabled="false">
+                <stringProp name="RegexExtractor.useHeaders">false</stringProp>
+                <stringProp name="RegexExtractor.refname">VFAccept</stringProp>
+                <stringProp name="RegexExtractor.regex">&quot;ownerId&quot;:&quot;(.+?)\.</stringProp>
+                <stringProp name="RegexExtractor.template">$1$</stringProp>
+                <stringProp name="RegexExtractor.default">0</stringProp>
+                <stringProp name="RegexExtractor.match_number">1</stringProp>
+                <stringProp name="Scope.variable"></stringProp>
+              </RegexExtractor>
+              <hashTree/>
+              <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true">
+                <boolProp name="resetInterpreter">false</boolProp>
+                <stringProp name="parameters"></stringProp>
+                <stringProp name="filename"></stringProp>
+                <stringProp name="script">String ResponseString = prev.getResponseDataAsString();
+String ResponseCode = prev.getResponseCode(); 
+String ResponseMessage = prev.getResponseMessage();
+
+String test_tmp_folder = &quot;/tmp/TestResult/${TestName}&quot;;
+       f = new FileOutputStream(test_tmp_folder, true); 
+       p = new PrintStream(f); 
+mydate = &quot;${__time(dd-MM-yyyy hh:mm:ss)}&quot;;
+props.put(&quot;VFAccept_P&quot;,&quot;${VFAccept}&quot;);
+p.println(&quot;\n#######################&quot;+&quot; Accept VFresourceinstance &quot;+&quot;#######################&quot;);
+if (ResponseCode.contains(&quot;200&quot;))
+{
+       p.println(mydate + &quot; : Thread number ${__threadNum()} in step ${__samplerName}: PASS&quot;);
+       p.println(&quot;Response Code : &quot; + ResponseCode); 
+       p.println(&quot;Response Message : &quot; + ResponseMessage);
+       p.println(&quot;Response String : &quot; + ResponseString);
+}
+else
+{
+       p.println(mydate + &quot; : Thread number ${__threadNum()} in step ${__samplerName}: FAIL&quot;);
+       p.println(&quot;Response Code : &quot; + ResponseCode);
+       p.println(&quot;Response Message : &quot; + ResponseMessage + &quot;\nERROR: Accept VFresourceinstance failed.&quot;);
+       p.println(&quot;Response String : &quot; + ResponseString);
+}
+p.println(&quot;#####################################################################\n&quot;);
+p.close();f.close();</stringProp>
+              </BeanShellPostProcessor>
+              <hashTree/>
+              <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
+                <boolProp name="ResultCollector.error_logging">false</boolProp>
+                <objProp>
+                  <name>saveConfig</name>
+                  <value class="SampleSaveConfiguration">
+                    <time>true</time>
+                    <latency>true</latency>
+                    <timestamp>true</timestamp>
+                    <success>true</success>
+                    <label>true</label>
+                    <code>true</code>
+                    <message>true</message>
+                    <threadName>true</threadName>
+                    <dataType>true</dataType>
+                    <encoding>false</encoding>
+                    <assertions>true</assertions>
+                    <subresults>true</subresults>
+                    <responseData>false</responseData>
+                    <samplerData>false</samplerData>
+                    <xml>false</xml>
+                    <fieldNames>false</fieldNames>
+                    <responseHeaders>false</responseHeaders>
+                    <requestHeaders>false</requestHeaders>
+                    <responseDataOnError>false</responseDataOnError>
+                    <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
+                    <assertionsResultsToSave>0</assertionsResultsToSave>
+                    <bytes>true</bytes>
+                    <threadCounts>true</threadCounts>
+                  </value>
+                </objProp>
+                <stringProp name="filename"></stringProp>
+              </ResultCollector>
+              <hashTree/>
+              <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true">
+                <intProp name="OnError.action">1</intProp>
+              </ResultAction>
+              <hashTree/>
+              <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
+                <stringProp name="ConstantTimer.delay">300</stringProp>
+              </ConstantTimer>
+              <hashTree/>
+            </hashTree>
+          </hashTree>
+        </hashTree>
+        <IncludeController guiclass="IncludeControllerGui" testclass="IncludeController" testname="Show log" enabled="true">
+          <stringProp name="IncludeController.includepath">../_JMeter_Test_Fragments/BE/Show_log.jmx</stringProp>
+        </IncludeController>
+        <hashTree/>
+      </hashTree>
+      <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Test Cleanup" enabled="true">
+        <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
+        <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
+          <boolProp name="LoopController.continue_forever">false</boolProp>
+          <stringProp name="LoopController.loops">${MAIN_THREAD_GROUP_CNT}</stringProp>
+        </elementProp>
+        <stringProp name="ThreadGroup.num_threads">${NUM_OF_THREAD}</stringProp>
+        <stringProp name="ThreadGroup.ramp_time">${TEST_DURATION}</stringProp>
+        <longProp name="ThreadGroup.start_time">1422885662000</longProp>
+        <longProp name="ThreadGroup.end_time">1422885662000</longProp>
+        <boolProp name="ThreadGroup.scheduler">false</boolProp>
+        <stringProp name="ThreadGroup.duration"></stringProp>
+        <stringProp name="ThreadGroup.delay"></stringProp>
+      </ThreadGroup>
+      <hashTree>
+        <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager Main" enabled="true">
+          <collectionProp name="HeaderManager.headers">
+            <elementProp name="" elementType="Header">
+              <stringProp name="Header.name">Accept</stringProp>
+              <stringProp name="Header.value">application/json</stringProp>
+            </elementProp>
+            <elementProp name="" elementType="Header">
+              <stringProp name="Header.name">Content-Type</stringProp>
+              <stringProp name="Header.value">application/json</stringProp>
+            </elementProp>
+          </collectionProp>
+        </HeaderManager>
+        <hashTree/>
+        <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Delete tmp DIR" enabled="false">
+          <boolProp name="SystemSampler.checkReturnCode">false</boolProp>
+          <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
+          <stringProp name="SystemSampler.command">rm</stringProp>
+          <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
+            <collectionProp name="Arguments.arguments">
+              <elementProp name="" elementType="Argument">
+                <stringProp name="Argument.name"></stringProp>
+                <stringProp name="Argument.value">-rf</stringProp>
+                <stringProp name="Argument.metadata">=</stringProp>
+              </elementProp>
+              <elementProp name="" elementType="Argument">
+                <stringProp name="Argument.name"></stringProp>
+                <stringProp name="Argument.value">/tmp/${__TestPlanName}_${__P(VSP_P)}/</stringProp>
+                <stringProp name="Argument.metadata">=</stringProp>
+              </elementProp>
+            </collectionProp>
+          </elementProp>
+          <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
+            <collectionProp name="Arguments.arguments"/>
+          </elementProp>
+          <stringProp name="SystemSampler.directory"></stringProp>
+        </SystemSampler>
+        <hashTree/>
+        <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete VSP" enabled="false">
+          <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
+          <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
+            <collectionProp name="Arguments.arguments">
+              <elementProp name="" elementType="HTTPArgument">
+                <boolProp name="HTTPArgument.always_encode">false</boolProp>
+                <stringProp name="Argument.value"></stringProp>
+                <stringProp name="Argument.metadata">=</stringProp>
+              </elementProp>
+            </collectionProp>
+          </elementProp>
+          <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp>
+          <stringProp name="HTTPSampler.port">${port}</stringProp>
+          <stringProp name="HTTPSampler.connect_timeout"></stringProp>
+          <stringProp name="HTTPSampler.response_timeout"></stringProp>
+          <stringProp name="HTTPSampler.protocol">http</stringProp>
+          <stringProp name="HTTPSampler.contentEncoding"></stringProp>
+          <stringProp name="HTTPSampler.path">${__P(ASDC_VSP)}/${__P(vspId)}/versions/${__P(vspNewVersionID_p)}</stringProp>
+          <stringProp name="HTTPSampler.method">DELETE</stringProp>
+          <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
+          <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
+          <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
+          <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
+          <stringProp name="HTTPSampler.implementation">HttpClient4</stringProp>
+          <boolProp name="HTTPSampler.monitor">false</boolProp>
+          <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
+        </HTTPSamplerProxy>
+        <hashTree>
+          <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
+            <boolProp name="ResultCollector.error_logging">false</boolProp>
+            <objProp>
+              <name>saveConfig</name>
+              <value class="SampleSaveConfiguration">
+                <time>true</time>
+                <latency>true</latency>
+                <timestamp>true</timestamp>
+                <success>true</success>
+                <label>true</label>
+                <code>true</code>
+                <message>true</message>
+                <threadName>true</threadName>
+                <dataType>true</dataType>
+                <encoding>false</encoding>
+                <assertions>true</assertions>
+                <subresults>true</subresults>
+                <responseData>false</responseData>
+                <samplerData>false</samplerData>
+                <xml>false</xml>
+                <fieldNames>false</fieldNames>
+                <responseHeaders>false</responseHeaders>
+                <requestHeaders>false</requestHeaders>
+                <responseDataOnError>false</responseDataOnError>
+                <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
+                <assertionsResultsToSave>0</assertionsResultsToSave>
+                <bytes>true</bytes>
+                <threadCounts>true</threadCounts>
+              </value>
+            </objProp>
+            <stringProp name="filename"></stringProp>
+          </ResultCollector>
+          <hashTree/>
+          <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true">
+            <boolProp name="resetInterpreter">false</boolProp>
+            <stringProp name="parameters"></stringProp>
+            <stringProp name="filename"></stringProp>
+            <stringProp name="script">String ResponseString = prev.getResponseDataAsString();
+String ResponseCode = prev.getResponseCode(); 
+String ResponseMessage = prev.getResponseMessage();
+
+String test_tmp_folder = &quot;/tmp/TestResult/${TestName}&quot;;
+       f = new FileOutputStream(test_tmp_folder, true); 
+       p = new PrintStream(f); 
+
+mydate = &quot;${__time(dd-MM-yyyy hh:mm:ss)}&quot;;
+
+p.println(&quot;\n#######################&quot;+&quot; Delete Temporary VSP &quot;+&quot;#######################&quot;);
+
+if (ResponseCode.contains(&quot;200&quot;))
+{
+       p.println(mydate + &quot; : Thread number ${__threadNum()} in step ${__samplerName}: PASS&quot;);
+       p.println(&quot;Response Code : &quot; + ResponseCode); 
+       p.println(&quot;Response Message : &quot; + ResponseMessage);
+       p.println(&quot;Response String : &quot; + ResponseString);
+}
+else
+{
+       p.println(mydate + &quot; : Thread number ${__threadNum()} in step ${__samplerName}: FAIL&quot;);
+       p.println(&quot;Response Code : &quot; + ResponseCode);
+       p.println(&quot;Response Message : &quot; + ResponseMessage + &quot;\nERROR: Delete VSP REST failed.&quot;);
+       p.println(&quot;Response String : &quot; + ResponseString);
+}
+
+p.println(&quot;############################################################################\n&quot;);
+
+p.close();f.close();</stringProp>
+          </BeanShellPostProcessor>
+          <hashTree/>
+          <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
+            <stringProp name="ConstantTimer.delay">300</stringProp>
+          </ConstantTimer>
+          <hashTree/>
+          <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true">
+            <intProp name="OnError.action">1</intProp>
+          </ResultAction>
+          <hashTree/>
+        </hashTree>
+        <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Show log" enabled="true">
+          <boolProp name="SystemSampler.checkReturnCode">false</boolProp>
+          <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
+          <stringProp name="SystemSampler.command">cat</stringProp>
+          <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
+            <collectionProp name="Arguments.arguments">
+              <elementProp name="" elementType="Argument">
+                <stringProp name="Argument.name"></stringProp>
+                <stringProp name="Argument.value">${TestName}</stringProp>
+                <stringProp name="Argument.metadata">=</stringProp>
+              </elementProp>
+            </collectionProp>
+          </elementProp>
+          <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
+            <collectionProp name="Arguments.arguments"/>
+          </elementProp>
+          <stringProp name="SystemSampler.directory">/tmp/TestResult/</stringProp>
+        </SystemSampler>
+        <hashTree/>
+      </hashTree>
+      <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
+        <boolProp name="ResultCollector.error_logging">false</boolProp>
+        <objProp>
+          <name>saveConfig</name>
+          <value class="SampleSaveConfiguration">
+            <time>true</time>
+            <latency>true</latency>
+            <timestamp>true</timestamp>
+            <success>true</success>
+            <label>true</label>
+            <code>true</code>
+            <message>true</message>
+            <threadName>true</threadName>
+            <dataType>true</dataType>
+            <encoding>true</encoding>
+            <assertions>true</assertions>
+            <subresults>true</subresults>
+            <responseData>true</responseData>
+            <samplerData>true</samplerData>
+            <xml>false</xml>
+            <fieldNames>true</fieldNames>
+            <responseHeaders>true</responseHeaders>
+            <requestHeaders>true</requestHeaders>
+            <responseDataOnError>false</responseDataOnError>
+            <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
+            <assertionsResultsToSave>0</assertionsResultsToSave>
+            <bytes>true</bytes>
+            <url>true</url>
+            <fileName>true</fileName>
+            <hostname>true</hostname>
+            <threadCounts>true</threadCounts>
+            <sampleCount>true</sampleCount>
+            <idleTime>true</idleTime>
+          </value>
+        </objProp>
+        <stringProp name="filename"></stringProp>
+      </ResultCollector>
+      <hashTree/>
+      <kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.ResponseCodesPerSecondGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="Response Codes per Second" enabled="true">
+        <boolProp name="ResultCollector.error_logging">false</boolProp>
+        <objProp>
+          <name>saveConfig</name>
+          <value class="SampleSaveConfiguration">
+            <time>true</time>
+            <latency>true</latency>
+            <timestamp>true</timestamp>
+            <success>true</success>
+            <label>true</label>
+            <code>true</code>
+            <message>true</message>
+            <threadName>true</threadName>
+            <dataType>true</dataType>
+            <encoding>false</encoding>
+            <assertions>true</assertions>
+            <subresults>true</subresults>
+            <responseData>false</responseData>
+            <samplerData>false</samplerData>
+            <xml>false</xml>
+            <fieldNames>true</fieldNames>
+            <responseHeaders>false</responseHeaders>
+            <requestHeaders>false</requestHeaders>
+            <responseDataOnError>false</responseDataOnError>
+            <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
+            <assertionsResultsToSave>0</assertionsResultsToSave>
+            <bytes>true</bytes>
+            <threadCounts>true</threadCounts>
+          </value>
+        </objProp>
+        <stringProp name="filename">/tmp/TestResult/ResponseCodesPerSecond.jtl</stringProp>
+        <longProp name="interval_grouping">1000</longProp>
+        <boolProp name="graph_aggregated">false</boolProp>
+        <stringProp name="include_sample_labels"></stringProp>
+        <stringProp name="exclude_sample_labels"></stringProp>
+        <stringProp name="start_offset"></stringProp>
+        <stringProp name="end_offset"></stringProp>
+        <boolProp name="include_checkbox_state">false</boolProp>
+        <boolProp name="exclude_checkbox_state">false</boolProp>
+      </kg.apc.jmeter.vizualizers.CorrectedResultCollector>
+      <hashTree/>
+      <kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.ResponseTimesDistributionGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="Response Times Distribution" enabled="true">
+        <boolProp name="ResultCollector.error_logging">false</boolProp>
+        <objProp>
+          <name>saveConfig</name>
+          <value class="SampleSaveConfiguration">
+            <time>true</time>
+            <latency>true</latency>
+            <timestamp>true</timestamp>
+            <success>true</success>
+            <label>true</label>
+            <code>true</code>
+            <message>true</message>
+            <threadName>true</threadName>
+            <dataType>true</dataType>
+            <encoding>false</encoding>
+            <assertions>true</assertions>
+            <subresults>true</subresults>
+            <responseData>false</responseData>
+            <samplerData>false</samplerData>
+            <xml>false</xml>
+            <fieldNames>true</fieldNames>
+            <responseHeaders>false</responseHeaders>
+            <requestHeaders>false</requestHeaders>
+            <responseDataOnError>false</responseDataOnError>
+            <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
+            <assertionsResultsToSave>0</assertionsResultsToSave>
+            <bytes>true</bytes>
+            <threadCounts>true</threadCounts>
+          </value>
+        </objProp>
+        <stringProp name="filename">/tmp/TestResult/ResponseTimesDistribution.jtl</stringProp>
+        <longProp name="interval_grouping">100</longProp>
+        <boolProp name="graph_aggregated">false</boolProp>
+        <stringProp name="include_sample_labels"></stringProp>
+        <stringProp name="exclude_sample_labels"></stringProp>
+        <stringProp name="start_offset"></stringProp>
+        <stringProp name="end_offset"></stringProp>
+        <boolProp name="include_checkbox_state">false</boolProp>
+        <boolProp name="exclude_checkbox_state">false</boolProp>
+      </kg.apc.jmeter.vizualizers.CorrectedResultCollector>
+      <hashTree/>
+      <kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.ResponseTimesOverTimeGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="Response Times Over Time" enabled="true">
+        <boolProp name="ResultCollector.error_logging">false</boolProp>
+        <objProp>
+          <name>saveConfig</name>
+          <value class="SampleSaveConfiguration">
+            <time>true</time>
+            <latency>true</latency>
+            <timestamp>true</timestamp>
+            <success>true</success>
+            <label>true</label>
+            <code>true</code>
+            <message>true</message>
+            <threadName>true</threadName>
+            <dataType>true</dataType>
+            <encoding>false</encoding>
+            <assertions>true</assertions>
+            <subresults>true</subresults>
+            <responseData>false</responseData>
+            <samplerData>false</samplerData>
+            <xml>false</xml>
+            <fieldNames>true</fieldNames>
+            <responseHeaders>false</responseHeaders>
+            <requestHeaders>false</requestHeaders>
+            <responseDataOnError>false</responseDataOnError>
+            <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
+            <assertionsResultsToSave>0</assertionsResultsToSave>
+            <bytes>true</bytes>
+            <threadCounts>true</threadCounts>
+          </value>
+        </objProp>
+        <stringProp name="filename">/tmp/TestResult/ResponseTimesOverTime.jtl</stringProp>
+        <longProp name="interval_grouping">500</longProp>
+        <boolProp name="graph_aggregated">false</boolProp>
+        <stringProp name="include_sample_labels"></stringProp>
+        <stringProp name="exclude_sample_labels"></stringProp>
+        <stringProp name="start_offset"></stringProp>
+        <stringProp name="end_offset"></stringProp>
+        <boolProp name="include_checkbox_state">false</boolProp>
+        <boolProp name="exclude_checkbox_state">false</boolProp>
+      </kg.apc.jmeter.vizualizers.CorrectedResultCollector>
+      <hashTree/>
+      <kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.ResponseTimesPercentilesGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="Response Times Percentiles" enabled="true">
+        <boolProp name="ResultCollector.error_logging">false</boolProp>
+        <objProp>
+          <name>saveConfig</name>
+          <value class="SampleSaveConfiguration">
+            <time>true</time>
+            <latency>true</latency>
+            <timestamp>true</timestamp>
+            <success>true</success>
+            <label>true</label>
+            <code>true</code>
+            <message>true</message>
+            <threadName>true</threadName>
+            <dataType>true</dataType>
+            <encoding>false</encoding>
+            <assertions>true</assertions>
+            <subresults>true</subresults>
+            <responseData>false</responseData>
+            <samplerData>false</samplerData>
+            <xml>false</xml>
+            <fieldNames>true</fieldNames>
+            <responseHeaders>false</responseHeaders>
+            <requestHeaders>false</requestHeaders>
+            <responseDataOnError>false</responseDataOnError>
+            <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
+            <assertionsResultsToSave>0</assertionsResultsToSave>
+            <bytes>true</bytes>
+            <threadCounts>true</threadCounts>
+          </value>
+        </objProp>
+        <stringProp name="filename">/tmp/TestResult/ResponseTimesPercentiles.jtl</stringProp>
+        <longProp name="interval_grouping">500</longProp>
+        <boolProp name="graph_aggregated">false</boolProp>
+        <stringProp name="include_sample_labels"></stringProp>
+        <stringProp name="exclude_sample_labels"></stringProp>
+        <stringProp name="start_offset"></stringProp>
+        <stringProp name="end_offset"></stringProp>
+        <boolProp name="include_checkbox_state">false</boolProp>
+        <boolProp name="exclude_checkbox_state">false</boolProp>
+      </kg.apc.jmeter.vizualizers.CorrectedResultCollector>
+      <hashTree/>
+      <kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.HitsPerSecondGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="Hits per Second" enabled="true">
+        <boolProp name="ResultCollector.error_logging">false</boolProp>
+        <objProp>
+          <name>saveConfig</name>
+          <value class="SampleSaveConfiguration">
+            <time>true</time>
+            <latency>true</latency>
+            <timestamp>true</timestamp>
+            <success>true</success>
+            <label>true</label>
+            <code>true</code>
+            <message>true</message>
+            <threadName>true</threadName>
+            <dataType>true</dataType>
+            <encoding>false</encoding>
+            <assertions>true</assertions>
+            <subresults>true</subresults>
+            <responseData>false</responseData>
+            <samplerData>false</samplerData>
+            <xml>false</xml>
+            <fieldNames>true</fieldNames>
+            <responseHeaders>false</responseHeaders>
+            <requestHeaders>false</requestHeaders>
+            <responseDataOnError>false</responseDataOnError>
+            <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
+            <assertionsResultsToSave>0</assertionsResultsToSave>
+            <bytes>true</bytes>
+            <threadCounts>true</threadCounts>
+          </value>
+        </objProp>
+        <stringProp name="filename">/tmp/TestResult/HitsPerSecond.jtl</stringProp>
+        <longProp name="interval_grouping">1000</longProp>
+        <boolProp name="graph_aggregated">false</boolProp>
+        <stringProp name="include_sample_labels"></stringProp>
+        <stringProp name="exclude_sample_labels"></stringProp>
+        <stringProp name="start_offset"></stringProp>
+        <stringProp name="end_offset"></stringProp>
+        <boolProp name="include_checkbox_state">false</boolProp>
+        <boolProp name="exclude_checkbox_state">false</boolProp>
+      </kg.apc.jmeter.vizualizers.CorrectedResultCollector>
+      <hashTree/>
+      <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true">
+        <boolProp name="ResultCollector.error_logging">false</boolProp>
+        <objProp>
+          <name>saveConfig</name>
+          <value class="SampleSaveConfiguration">
+            <time>true</time>
+            <latency>true</latency>
+            <timestamp>true</timestamp>
+            <success>true</success>
+            <label>true</label>
+            <code>true</code>
+            <message>true</message>
+            <threadName>true</threadName>
+            <dataType>true</dataType>
+            <encoding>true</encoding>
+            <assertions>true</assertions>
+            <subresults>true</subresults>
+            <responseData>true</responseData>
+            <samplerData>true</samplerData>
+            <xml>true</xml>
+            <fieldNames>true</fieldNames>
+            <responseHeaders>true</responseHeaders>
+            <requestHeaders>true</requestHeaders>
+            <responseDataOnError>false</responseDataOnError>
+            <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
+            <assertionsResultsToSave>0</assertionsResultsToSave>
+            <bytes>true</bytes>
+            <url>true</url>
+            <fileName>true</fileName>
+            <hostname>true</hostname>
+            <threadCounts>true</threadCounts>
+            <sampleCount>true</sampleCount>
+            <idleTime>true</idleTime>
+          </value>
+        </objProp>
+        <stringProp name="filename">/tmp/TestResult/ResultsTable.xml</stringProp>
+      </ResultCollector>
+      <hashTree/>
+    </hashTree>
+    <WorkBench guiclass="WorkBenchGui" testclass="WorkBench" testname="WorkBench" enabled="true">
+      <boolProp name="WorkBench.save">true</boolProp>
+    </WorkBench>
+    <hashTree>
+      <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Get Response" enabled="false">
+        <stringProp name="filename"></stringProp>
+        <stringProp name="parameters"></stringProp>
+        <boolProp name="resetInterpreter">false</boolProp>
+        <stringProp name="script">String ResponseString = prev.getResponseDataAsString();
+String ResponseCode = prev.getResponseCode(); 
+String ResponseMessage = prev.getResponseMessage();
+
+
+vars.put(&quot;ResponseCode&quot;,ResponseCode);
+vars.put(&quot;ResponseString&quot;,ResponseString);
+vars.put(&quot;ResponseMessage&quot;,ResponseMessage);</stringProp>
+      </BeanShellPostProcessor>
+      <hashTree/>
+    </hashTree>
+  </hashTree>
+</jmeterTestPlan>
index 656b410..aaf5924 100755 (executable)
@@ -10,6 +10,8 @@ if [ "$#" -ne 1 ]; then
 fi
 ENV_FILE=$1
 
+SSH_KEY=~/.ssh/onap_key
+
 source $WORKSPACE/test/ete/scripts/install_openstack_cli.sh
 
 SO_ENCRYPTION_KEY=aa3871669d893c7fb8abbcda31b88b4f
@@ -20,11 +22,25 @@ for n in $(seq 1 5); do
 
     cd $WORKSPACE/deployment/heat/onap-oom
     envsubst < $ENV_FILE > $ENV_FILE~
-    openstack stack create -t ./onap-oom.yaml -e $ENV_FILE~ onap-oom
+
+    if ! openstack stack create -t ./onap-oom.yaml -e $ENV_FILE~ onap-oom; then
+        break
+    fi
+
+    while [ "CREATE_IN_PROGRESS" == "$(openstack stack show -c stack_status -f value onap-oom)" ]; do
+        sleep 20
+    done
+
+    STATUS=$(openstack stack show -c stack_status -f value onap-oom)
+    echo $STATUS
+    if [ "CREATE_COMPLETE" != "$STATUS" ]; then
+        break
+    fi
 
     for i in $(seq 1 30); do
        sleep 30
        RANCHER_IP=$(openstack stack output show onap-oom rancher_vm_ip -c output_value -f value)
+        K8S_IP=$(openstack stack output show onap-oom k8s_1_vm_ip -c output_value -f value)
        timeout 1 ping -c 1 "$RANCHER_IP" && break
     done
 
@@ -39,17 +55,30 @@ if ! timeout 1 ping -c 1 "$RANCHER_IP"; then
 fi
 
 ssh-keygen -R $RANCHER_IP
+
+ssh -o StrictHostKeychecking=no -i $SSH_KEY ubuntu@$RANCHER_IP "sed -u '/Cloud-init.*finished/q' <(tail -n+0 -f /var/log/cloud-init-output.log)"
+
 for n in $(seq 1 6); do
-    timeout 15m ssh -o StrictHostKeychecking=no -i ~/.ssh/onap_key ubuntu@$RANCHER_IP  'sudo su -l root -c "/root/oom/kubernetes/robot/ete-k8s.sh onap health"'
+    timeout 15m ssh -i $SSH_KEY ubuntu@$RANCHER_IP  'sudo su -l root -c "/root/oom/kubernetes/robot/ete-k8s.sh onap health"'
     RESULT=$?
     if [ $RESULT -eq 0 ]; then
        break
     fi
     sleep 15m
 done
-ROBOT_POD=$(ssh -o StrictHostKeychecking=no -i ~/.ssh/onap_key ubuntu@$RANCHER_IP 'sudo su -c "kubectl --namespace onap get pods"' | grep robot | sed 's/ .*//')
-LOG_DIR=$(ssh -o StrictHostKeychecking=no -i ~/.ssh/onap_key ubuntu@$RANCHER_IP "sudo su -c \"kubectl exec $ROBOT_POD --namespace onap -- ls -1t /share/logs | head -1\"")
+ROBOT_POD=$(ssh -i $SSH_KEY ubuntu@$RANCHER_IP 'sudo su -c "kubectl --namespace onap get pods"' | grep robot | sed 's/ .*//')
+if [ "$ROBOT_POD" == "" ]; then
+    exit 1
+fi
+
+LOG_DIR=$(echo "kubectl exec -n onap $ROBOT_POD -- ls -1t /share/logs | grep health | head -1" | ssh -i $SSH_KEY ubuntu@$RANCHER_IP sudo su)
+if [ "$LOG_DIR" == "" ]; then
+    exit 1
+fi
+
+echo "kubectl cp -n onap $ROBOT_POD:share/logs/$LOG_DIR /tmp/robot/logs/$LOG_DIR" | ssh -i $SSH_KEY ubuntu@$RANCHER_IP sudo su
+rsync -e "ssh -i $SSH_KEY" -avtz ubuntu@$RANCHER_IP:/tmp/robot/logs/$LOG_DIR/ $WORKSPACE/archives/
+
+echo "Browse Robot results at http://$K8S_IP:30209/logs/$LOG_DIR/"
 
-K8S_IP=$(openstack stack output show onap-oom k8s_1_vm_ip -c output_value -f value)
-wget --user=robot --password=robot -r -np -nH --cut-dirs=2 -R "index.html*" -P $WORKSPACE/archives/ http://$K8S_IP:30209/logs/$LOG_DIR/
 exit 0
diff --git a/test/csit/plans/dcaegen2/prh_testsuites/setup.sh b/test/csit/plans/dcaegen2/prh_testsuites/setup.sh
new file mode 100644 (file)
index 0000000..012d4c5
--- /dev/null
@@ -0,0 +1,50 @@
+#!/bin/bash
+
+source ${SCRIPTS}/common_functions.sh
+
+export PRH_SERVICE="prh"
+export DMAAP_SIMULATOR="dmaap_simulator"
+
+cd ${WORKSPACE}/test/csit/tests/dcaegen2/prh_testcases/resources/
+
+docker login -u docker -p docker nexus3.onap.org:10003
+docker-compose up -d
+
+# Wait for initialization of Docker containers
+for i in {1..50}; do
+       if [ $(docker inspect --format '{{ .State.Running }}' ${PRH_SERVICE}) ] && \
+         [ $(docker inspect --format '{{ .State.Running }}' ${DMAAP_SIMULATOR}) ]
+       then
+               echo "dmaap_simulator and prh services are running"
+               break                   
+       else 
+               echo sleep ${i}
+               sleep ${i}
+       fi
+done
+
+PRH_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${PRH_SERVICE})
+DMAAP_SIMULATOR_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${DMAAP_SIMULATOR})
+
+bypass_ip_adress ${PRH_IP}
+bypass_ip_adress ${DMAAP_SIMULATOR_IP}
+
+echo PRH_IP=${PRH_IP}
+echo DMAAP_SIMULATOR_IP=${DMAAP_SIMULATOR_IP}
+
+# Wait for initialization of docker services
+for i in {1..50}; do
+    curl -sS -m 1 localhost:2222 && \
+    curl -sS -m 1 localhost:8100/heartbeat && break
+    echo sleep ${i}
+    sleep ${i}
+done
+
+#
+docker cp prh:/config/prh_endpoints.json ${WORKDIR}
+sed -i -e 's/"dmaapHostName":.*/"dmaapHostName": "'${DMAAP_SIMULATOR_IP}'",/g' ${WORKDIR}/prh_endpoints.json
+sed -i -e 's/"aaiHost":.*/"aaiHost": "'${DMAAP_SIMULATOR_IP}'",/g' ${WORKDIR}/prh_endpoints.json
+docker cp ${WORKDIR}/prh_endpoints.json prh:/config/
+
+#Pass any variables required by Robot test suites in ROBOT_VARIABLES
+ROBOT_VARIABLES="-v DMAAP_SIMULATOR:localhost:2222 -v PRH:localhost:8100"
diff --git a/test/csit/plans/dcaegen2/prh_testsuites/teardown.sh b/test/csit/plans/dcaegen2/prh_testsuites/teardown.sh
new file mode 100644 (file)
index 0000000..5ff3c66
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/bash
+#
+# Copyright 2017 Nokia, Inc. and others.
+#
+# 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.
+#
+
+kill-instance.sh prh
+kill-instance.sh dmaap_simulator
\ No newline at end of file
diff --git a/test/csit/plans/dcaegen2/prh_testsuites/testplan.txt b/test/csit/plans/dcaegen2/prh_testsuites/testplan.txt
new file mode 100644 (file)
index 0000000..8c1f327
--- /dev/null
@@ -0,0 +1,3 @@
+# Test suites are relative paths under [integration.git]/test/csit/tests/.
+# Place the suites in run order.
+dcaegen2/prh_testcases
index 2259f3f..cfba50b 100644 (file)
@@ -14,7 +14,7 @@ ${var}
 APPC LCM API HEALTHCHECK
        [Documentation] APPC LCM API HEALTHCHECK 
        Start Virtual Display     1920     1080
-       Open Browser    http://admin:Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U@localhost:8282/apidoc/explorer/index.html      chrome
+       Open Browser    http://admin:admin@localhost:8282/apidoc/explorer/index.html    chrome
        Maximize Browser Window 
 #      Click Element    xpath=.//p[contains(text(),'If you have reason to expect the website is safe, select the I Accept the Risk button to continue.')]//following::img
 
@@ -49,4 +49,4 @@ APPC LCM API HEALTHCHECK
 Tear Down
 
     [Documentation]   Close all browsers
-    Close All Browsers
\ No newline at end of file
+    Close All Browsers
index 768865f..98a8e58 100644 (file)
@@ -13,7 +13,7 @@ ${var}
 APPC LCM API VM RESTART
        [Documentation] APPC LCM API VM RESTART 
        Start Virtual Display     1920     1080
-       Open Browser    http://admin:Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U@localhost:8282/apidoc/explorer/index.html    chrome
+       Open Browser    http://admin:admin@localhost:8282/apidoc/explorer/index.html    chrome
        Maximize Browser Window
 #      Click Element    xpath=.//p[contains(text(),'If you have reason to expect the website is safe, select the I Accept the Risk button to continue.')]//following::img
        
@@ -44,4 +44,4 @@ APPC LCM API VM RESTART
         
 Tear Down
     [Documentation]   Close all browsers
-    Close All Browsers
\ No newline at end of file
+    Close All Browsers
index 15690f0..0f550d3 100644 (file)
@@ -16,7 +16,7 @@ ${var}
 APPC LCM API VNF RESTART
        [Documentation] APPC LCM API VNF RESTART 
        Start Virtual Display     1920     1080
-       Open Browser    http://admin:Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U@localhost:8282/apidoc/explorer/index.html    chrome
+       Open Browser    http://admin:admin@localhost:8282/apidoc/explorer/index.html    chrome
        Maximize Browser Window
 #      Click Element    xpath=.//p[contains(text(),'If you have reason to expect the website is safe, select the I Accept the Risk button to continue.')]//following::img
        
@@ -47,4 +47,4 @@ APPC LCM API VNF RESTART
         
 Tear Down
     [Documentation]   Close all browsers
-    Close All Browsers
\ No newline at end of file
+    Close All Browsers
index f400156..32b4ce7 100644 (file)
@@ -78,8 +78,8 @@ Deploy Holmes CL
     Click Element    xpath=//*[@id="navbar"]/ul/li[2]/a
     Wait Until Element Is Visible       locator=Deploy       timeout=60
     Click Element    locator=Deploy
-    Wait Until Element Is Visible       xpath=//*[@id="deployProperties"]       timeout=60
-    Input Text      xpath=//*[@id="deployProperties"]      text={}
+#    Wait Until Element Is Visible       xpath=//*[@id="deployProperties"]       timeout=60
+#    Input Text      xpath=//*[@id="deployProperties"]      text={}
     Click Button    locator=Deploy
     Click Button    locator=Yes
     Wait Until Element Is Visible       xpath=//*[@id="alert_message_"]      timeout=60
index 34c1a71..db72f3b 100644 (file)
@@ -78,8 +78,8 @@ Deploy TCA CL
     Click Element    xpath=//*[@id="navbar"]/ul/li[2]/a
     Wait Until Element Is Visible       locator=Deploy       timeout=60
     Click Element    locator=Deploy
-    Wait Until Element Is Visible       xpath=//*[@id="deployProperties"]       timeout=60
-    Input Text      xpath=//*[@id="deployProperties"]      text={}
+#    Wait Until Element Is Visible       xpath=//*[@id="deployProperties"]       timeout=60
+#    Input Text      xpath=//*[@id="deployProperties"]      text={}
     Click Button    locator=Deploy
     Click Button    locator=Yes
     Wait Until Element Is Visible       xpath=//*[@id="alert_message_"]      timeout=60
diff --git a/test/csit/tests/dcaegen2/prh_testcases/__init__.robot b/test/csit/tests/dcaegen2/prh_testcases/__init__.robot
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/test/csit/tests/dcaegen2/prh_testcases/assets/json_events/pnf_ready.json b/test/csit/tests/dcaegen2/prh_testcases/assets/json_events/pnf_ready.json
new file mode 100644 (file)
index 0000000..d340709
--- /dev/null
@@ -0,0 +1,6 @@
+{"event":
+    {"correlationID":"NOKQTFCOC540002E", 
+    "pnfOamIpv4Address":"10.16.123.234", 
+    "pnfOamIpv6Address":"2001:0db8:85a3:0000:0000:8a2e:0370:7334"
+    }
+}
diff --git a/test/csit/tests/dcaegen2/prh_testcases/assets/json_events/response.json b/test/csit/tests/dcaegen2/prh_testcases/assets/json_events/response.json
new file mode 100644 (file)
index 0000000..39c76df
--- /dev/null
@@ -0,0 +1,33 @@
+{"event":
+    {"commonEventHeader":
+        {"sourceId":"QTFCOC540002E",
+        "startEpochMicrosec":1519837825682,
+        "eventId":"QTFCOC540002E-reg",
+        "nfcNamingCode":"5DU",
+        "internalHeaderFields":{"collectorTimeStamp":"Fri, 04 27 2018 09:01:10 GMT"},
+        "eventType":"pnfRegistration",
+        "priority":"Normal",
+        "version":3,
+        "reportingEntityName":"5GRAN_DU",
+        "sequence":0,
+        "domain":"other",
+        "lastEpochMicrosec":1519837825682,
+        "eventName":"pnfRegistration_5GDU",
+        "sourceName":"5GRAN_DU",
+        "nfNamingCode":"5GRAN"
+        },
+    "otherFields":
+        {"pnfLastServiceDate":1517206400,
+        "pnfOamIpv6Address":"2001:0db8:85a3:0000:0000:8a2e:0370:7334",
+        "pnfVendorName":"Nokia",
+        "pnfModelNumber":"AJ02",
+        "pnfFamily":"BBU",
+        "pnfType":"AirScale",
+        "otherFieldsVersion":1,
+        "pnfOamIpv4Address":"10.16.123.234",
+        "pnfSoftwareVersion":"v4.5.0.1",
+        "pnfSerialNumber":"QTFCOC540002E",
+        "pnfManufactureDate":1516406400
+        }
+    }
+}
diff --git a/test/csit/tests/dcaegen2/prh_testcases/prh.robot b/test/csit/tests/dcaegen2/prh_testcases/prh.robot
new file mode 100644 (file)
index 0000000..7c9b953
--- /dev/null
@@ -0,0 +1,19 @@
+*** Settings ***
+Documentation     Testing PRH with various use scenarios
+Suite Setup       PRH Suite Setup
+Suite Teardown    PRH Suite Shutdown
+Library           Collections
+Library           resources/PrhLibrary.py
+Resource          resources/prh_keywords.robot
+
+*** Variables ***
+${DMaaP_URL}      http://localhost:3904
+${AAI_URL}        http://localhost:3905
+${PNF_READY}      %{WORKSPACE}/test/csit/tests/dcaegen2/prh_testcases/assets/json_events/pnf_ready.json
+
+*** Test Cases ***
+New test
+    [Documentation]    First positive TC
+    [Tags]    PRH
+    #First TC will be added after initial commit
+    Should Be True    True
diff --git a/test/csit/tests/dcaegen2/prh_testcases/prh_tests.robot b/test/csit/tests/dcaegen2/prh_testcases/prh_tests.robot
new file mode 100644 (file)
index 0000000..ec21b39
--- /dev/null
@@ -0,0 +1,48 @@
+*** Settings ***
+Library           OperatingSystem
+Library           RequestsLibrary
+Library           requests
+Library           Collections
+Library           String
+
+*** Variables ***
+${PNF_REGISTER_URL}         http://${DMAAP_SIMULATOR}/events/unauthenticated.SEC_OTHER_OUTPUT
+${PNF_READY_URL}            http://${DMAAP_SIMULATOR}/events/pnfReady
+${PRH_START_URL}            http://${PRH}/start
+${PNF_REGISTER_EVENT}       %{WORKSPACE}/test/csit/tests/dcaegen2/prh_testcases/resources/events/pnf_register_event.json
+
+
+*** Test Cases ***
+Run Posting and Consuming
+    [Documentation]                                      Post message to new topic and consume it
+    [Timeout]                                              1 minute
+    ${req_data}=                  Get Binary File       ${PNF_REGISTER_EVENT}
+    ${resp}=                                               PostCall                                    ${PNF_REGISTER_URL}     ${req_data}
+    log                                                    ${PNF_REGISTER_URL}
+    log                                                    ${resp.text}
+    Should Be Equal As Strings    ${resp.status_code}   200
+   # ${count}=                         Evaluate                                        $resp.json().get('count')
+    log                                                                'JSON Response Code:' ${resp}
+    ${resp}=                                               GetCall                                       ${PRH_START_URL}
+    log                           ${PRH_START_URL}
+    log                                                    ${resp.text}
+    Should Be Equal As Strings    ${resp.status_code}   201
+    ${resp}=                                                 GetCall                                                   ${PNF_READY_URL}
+    log                                                                ${PNF_READY_URL}
+    log                                                    ${resp.text}
+    Should Be Equal As Strings    ${resp.status_code}   200
+    log                                        'JSON Response Code:' ${resp}
+
+
+*** Keywords ***
+PostCall
+    [Arguments]    ${url}       ${data}
+    ${headers}=    Create Dictionary    Accept=application/json    Content-Type=application/json
+    ${resp}=       Evaluate    requests.post('${url}',data='${data}', headers=${headers},verify=False)    requests
+    [Return]       ${resp}
+
+GetCall
+    [Arguments]    ${url}
+    ${headers}=    Create Dictionary    Accept=application/json    Content-Type=application/json
+    ${resp}=            Evaluate    requests.get('${url}', headers=${headers}, verify=False)    requests
+    [Return]            ${resp}
diff --git a/test/csit/tests/dcaegen2/prh_testcases/resources/CommonEventFormat_28.3.json b/test/csit/tests/dcaegen2/prh_testcases/resources/CommonEventFormat_28.3.json
new file mode 100644 (file)
index 0000000..90f6d81
--- /dev/null
@@ -0,0 +1,1866 @@
+{
+    "$schema": "http://json-schema.org/draft-04/schema#",
+       
+       "definitions": {
+       "attCopyrightNotice": {
+                       "description": "Copyright (c) <2017>, AT&T Intellectual Property. All rights reserved. Licensed under the Apache License, Version 2.0 (the License)",
+                       "type": "object",
+                       "properties": {
+                               "useAndRedistribution": {
+                                       "description": "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",
+                                       "type": "string"
+                               },
+                               "licenseLink": {
+                                "description": "http://www.apache.org/licenses/LICENSE-2.0",
+                                "type":"string"
+                               },
+                               "condition1": {
+                                       "description": "Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an AS IS BASIS,",
+                                       "type": "string"
+                               },
+                               "condition2": {
+                                       "description": "Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.",
+                                       "type": "string"
+                               },
+                               "condition3": {
+                                       "description": "WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.",
+                                       "type": "string"
+                               },
+                               "condition4": {
+                                       "description": "See the License for the specific language governing permissions and limitations under the License.",
+                                       "type": "string"
+                               },
+                               "Trademarks": {
+                                       "description": "ECOMP and OpenECOMP are trademarks and service marks of AT&T Intellectual Property.",
+                                       "type": "string"
+                               }
+                       }
+               },
+       
+               "codecsInUse": {
+                       "description": "number of times an identified codec was used over the measurementInterval",
+                       "type": "object",
+                       "properties": {
+                               "codecIdentifier": { "type": "string" },
+                               "numberInUse": { "type": "integer" }
+                       },
+                       "required": [ "codecIdentifier", "numberInUse" ]
+               },
+               "command": {
+                       "description": "command from an event collector toward an event source",
+                       "type": "object",
+                       "properties": {
+                               "commandType": {
+                                       "type": "string",
+                                       "enum": [
+                                               "heartbeatIntervalChange",
+                                               "measurementIntervalChange",
+                                               "provideThrottlingState",
+                                               "throttlingSpecification"
+                                       ]
+                               },
+                               "eventDomainThrottleSpecification": { "$ref": "#/definitions/eventDomainThrottleSpecification" },
+                               "heartbeatInterval": { "type": "integer" },
+                               "measurementInterval": { "type": "integer" }
+                       },
+                       "required": [ "commandType" ]
+               },
+               "commandList": {
+                       "description": "array of commands from an event collector toward an event source",
+                       "type": "array",
+                       "items": {
+                           "$ref": "#/definitions/command"
+                       },
+                       "minItems": 0
+               },
+               "commonEventHeader": {
+                       "description": "fields common to all events",
+                       "type": "object",
+                       "properties": {
+                               "domain": {
+                                       "description": "the eventing domain associated with the event",
+                                       "type": "string",
+                                       "enum": [
+                                               "fault",
+                                               "heartbeat",
+                                               "measurementsForVfScaling",
+                                               "mobileFlow",
+                                               "other",
+                                               "sipSignaling",
+                                               "stateChange",
+                                               "syslog",
+                                               "thresholdCrossingAlert",
+                                               "voiceQuality"
+                                       ]
+                               },
+                               "eventId": {
+                                       "description": "event key that is unique to the event source",
+                                       "type": "string"
+                               },
+                               "eventName": {
+                                       "description": "unique event name",
+                                       "type": "string"
+                               },
+                               "eventType": {
+                                       "description": "for example - applicationVnf, guestOS, hostOS, platform",
+                                       "type": "string"
+                               },
+                               "internalHeaderFields": { "$ref": "#/definitions/internalHeaderFields" },
+                               "lastEpochMicrosec": {
+                                       "description": "the latest unix time aka epoch time associated with the event from any component--as microseconds elapsed since 1 Jan 1970 not including leap seconds",
+                                       "type": "number"
+                               },
+                               "nfcNamingCode": {
+                                       "description": "3 character network function component type, aligned with vfc naming standards",
+                                       "type": "string"
+                               },
+                               "nfNamingCode": {
+                                       "description": "4 character network function type, aligned with vnf naming standards",
+                                       "type": "string"
+                               },
+                               "priority": {
+                                       "description": "processing priority",
+                                       "type": "string",
+                                       "enum": [
+                                               "High",
+                                               "Medium",
+                                               "Normal",
+                                               "Low"
+                                       ]
+                               },
+                               "reportingEntityId": {
+                                       "description": "UUID identifying the entity reporting the event, for example an OAM VM; must be populated by the ATT enrichment process",
+                                       "type": "string"
+                               },
+                               "reportingEntityName": {
+                                       "description": "name of the entity reporting the event, for example, an EMS name; may be the same as sourceName",
+                                       "type": "string"
+                               },
+                               "sequence": {
+                                       "description": "ordering of events communicated by an event source instance or 0 if not needed",
+                                       "type": "integer"
+                               },
+                               "sourceId": {
+                                       "description": "UUID identifying the entity experiencing the event issue; must be populated by the ATT enrichment process",
+                                       "type": "string"
+                               },
+                               "sourceName": {
+                                       "description": "name of the entity experiencing the event issue",
+                                       "type": "string"
+                               },
+                               "startEpochMicrosec": {
+                                       "description": "the earliest unix time aka epoch time associated with the event from any component--as microseconds elapsed since 1 Jan 1970 not including leap seconds",
+                                       "type": "number"
+                               },
+                               "version": {
+                                       "description": "version of the event header",
+                                       "type": "number"
+                               }
+                       },
+                       "required": [ "domain", "eventId", "eventName", "lastEpochMicrosec", 
+                                                 "priority", "reportingEntityName", "sequence", "sourceName",
+                                     "startEpochMicrosec", "version" ]
+               },
+               "counter": {
+                       "description": "performance counter",
+                       "type": "object",
+                       "properties": {
+                               "criticality": { "type": "string", "enum": [ "CRIT", "MAJ" ] },
+                               "name":  { "type": "string" },
+                               "thresholdCrossed": { "type": "string" },
+                               "value": { "type": "string"}
+                       },
+                       "required": [ "criticality", "name", "thresholdCrossed", "value" ]
+               },
+               "cpuUsage": {
+                       "description": "usage of an identified CPU",
+                       "type": "object",
+                       "properties": {
+                               "cpuIdentifier": { 
+                    "description": "cpu identifer",
+                    "type": "string" 
+                },
+                               "cpuIdle": { 
+                    "description": "percentage of CPU time spent in the idle task",
+                    "type": "number" 
+                },
+                               "cpuUsageInterrupt": { 
+                    "description": "percentage of time spent servicing interrupts",
+                    "type": "number" 
+                },
+                               "cpuUsageNice": { 
+                    "description": "percentage of time spent running user space processes that have been niced",
+                    "type": "number" 
+                },
+                               "cpuUsageSoftIrq": { 
+                    "description": "percentage of time spent handling soft irq interrupts",
+                    "type": "number" 
+                },
+                               "cpuUsageSteal": { 
+                    "description": "percentage of time spent in involuntary wait which is neither user, system or idle time and is effectively time that went missing",
+                    "type": "number" 
+                },
+                               "cpuUsageSystem": { 
+                    "description": "percentage of time spent on system tasks running the kernel",
+                    "type": "number" 
+                },
+                               "cpuUsageUser": { 
+                    "description": "percentage of time spent running un-niced user space processes",
+                    "type": "number" 
+                },
+                               "cpuWait": { 
+                    "description": "percentage of CPU time spent waiting for I/O operations to complete",
+                    "type": "number" 
+                },
+                               "percentUsage": { 
+                    "description": "aggregate cpu usage of the virtual machine on which the VNFC reporting the event is running",
+                    "type": "number" 
+                }
+                       },
+                       "required": [ "cpuIdentifier", "percentUsage" ]
+               },
+               "diskUsage": {
+                       "description": "usage of an identified disk",
+                       "type": "object",
+                       "properties": {
+                               "diskIdentifier": { 
+                    "description": "disk identifier", 
+                    "type": "string" 
+                },
+                "diskIoTimeAvg": {
+                    "description": "milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms  matches 100% load; provide the average over the measurement interval",
+                    "type": "number"
+                },
+                "diskIoTimeLast": {
+                    "description": "milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms  matches 100% load; provide the last value measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskIoTimeMax": {
+                    "description": "milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms  matches 100% load; provide the maximum value measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskIoTimeMin": {
+                    "description": "milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms  matches 100% load; provide the minimum value measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskMergedReadAvg": {
+                    "description": "number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the average measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskMergedReadLast": {
+                    "description": "number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the last value measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskMergedReadMax": {
+                    "description": "number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the maximum value measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskMergedReadMin": {
+                    "description": "number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the minimum value measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskMergedWriteAvg": {
+                    "description": "number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the average measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskMergedWriteLast": {
+                    "description": "number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the last value measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskMergedWriteMax": {
+                    "description": "number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the maximum value measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskMergedWriteMin": {
+                    "description": "number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the minimum value measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskOctetsReadAvg": {
+                    "description": "number of octets per second read from a disk or partition; provide the average measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskOctetsReadLast": {
+                    "description": "number of octets per second read from a disk or partition; provide the last measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskOctetsReadMax": {
+                    "description": "number of octets per second read from a disk or partition; provide the maximum measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskOctetsReadMin": {
+                    "description": "number of octets per second read from a disk or partition; provide the minimum measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskOctetsWriteAvg": {
+                    "description": "number of octets per second written to a disk or partition; provide the average measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskOctetsWriteLast": {
+                    "description": "number of octets per second written to a disk or partition; provide the last measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskOctetsWriteMax": {
+                    "description": "number of octets per second written to a disk or partition; provide the maximum measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskOctetsWriteMin": {
+                    "description": "number of octets per second written to a disk or partition; provide the minimum measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskOpsReadAvg": {
+                    "description": "number of read operations per second issued to the disk; provide the average measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskOpsReadLast": {
+                    "description": "number of read operations per second issued to the disk; provide the last measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskOpsReadMax": {
+                    "description": "number of read operations per second issued to the disk; provide the maximum measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskOpsReadMin": {
+                    "description": "number of read operations per second issued to the disk; provide the minimum measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskOpsWriteAvg": {
+                    "description": "number of write operations per second issued to the disk; provide the average measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskOpsWriteLast": {
+                    "description": "number of write operations per second issued to the disk; provide the last measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskOpsWriteMax": {
+                    "description": "number of write operations per second issued to the disk; provide the maximum measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskOpsWriteMin": {
+                    "description": "number of write operations per second issued to the disk; provide the minimum measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskPendingOperationsAvg": {
+                    "description": "queue size of pending I/O operations per second; provide the average measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskPendingOperationsLast": {
+                    "description": "queue size of pending I/O operations per second; provide the last measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskPendingOperationsMax": {
+                    "description": "queue size of pending I/O operations per second; provide the maximum measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskPendingOperationsMin": {
+                    "description": "queue size of pending I/O operations per second; provide the minimum measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskTimeReadAvg": {
+                    "description": "milliseconds a read operation took to complete; provide the average measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskTimeReadLast": {
+                    "description": "milliseconds a read operation took to complete; provide the last measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskTimeReadMax": {
+                    "description": "milliseconds a read operation took to complete; provide the maximum measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskTimeReadMin": {
+                    "description": "milliseconds a read operation took to complete; provide the minimum measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskTimeWriteAvg": {
+                    "description": "milliseconds a write operation took to complete; provide the average measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskTimeWriteLast": {
+                    "description": "milliseconds a write operation took to complete; provide the last measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskTimeWriteMax": {
+                    "description": "milliseconds a write operation took to complete; provide the maximum measurement within the measurement interval",
+                    "type": "number"
+                },
+                "diskTimeWriteMin": {
+                    "description": "milliseconds a write operation took to complete; provide the minimum measurement within the measurement interval",
+                    "type": "number"
+                }
+                       },
+                       "required": [ "diskIdentifier" ]
+               },
+        "endOfCallVqmSummaries": {
+            "description": "provides end of call voice quality metrics",
+                       "type": "object",
+                       "properties": {
+                "adjacencyName": {
+                    "description": " adjacency name",
+                    "type": "string"
+                },
+                "endpointDescription": {
+                    "description": "Either Caller or Callee",
+                    "type": "string",
+                    "enum": ["Caller", "Callee"]
+                },
+                "endpointJitter": {
+                    "description": "",
+                    "type": "number"
+                },
+                "endpointRtpOctetsDiscarded": {
+                    "description": "",
+                    "type": "number"
+                },
+                "endpointRtpOctetsReceived": {
+                    "description": "",
+                    "type": "number"
+                },
+                "endpointRtpOctetsSent": {
+                    "description": "",
+                    "type": "number"
+                },
+                "endpointRtpPacketsDiscarded": {
+                    "description": "",
+                    "type": "number"
+                },
+                "endpointRtpPacketsReceived": {
+                    "description": "",
+                    "type": "number"
+                },
+                "endpointRtpPacketsSent": {
+                    "description": "",
+                    "type": "number"
+                },
+                "localJitter": {
+                    "description": "",
+                    "type": "number"
+                },
+                "localRtpOctetsDiscarded": {
+                    "description": "",
+                    "type": "number"
+                },
+                "localRtpOctetsReceived": {
+                    "description": "",
+                    "type": "number"
+                },
+                "localRtpOctetsSent": {
+                    "description": "",
+                    "type": "number"
+                },
+                "localRtpPacketsDiscarded": {
+                    "description": "",
+                    "type": "number"
+                },
+                "localRtpPacketsReceived": {
+                    "description": "",
+                    "type": "number"
+                },
+                "localRtpPacketsSent": {
+                    "description": "",
+                    "type": "number"
+                },
+                "mosCqe": {
+                    "description": "1-5 1dp",
+                    "type": "number"
+                },
+                "packetsLost": {
+                    "description": "",
+                    "type": "number"
+                },
+                "packetLossPercent": {
+                    "description" : "Calculated percentage packet loss based on Endpoint RTP packets lost (as reported in RTCP) and Local RTP packets sent. Direction is based on Endpoint description (Caller, Callee). Decimal (2 dp)",
+                    "type": "number"
+                },
+                "rFactor": {
+                    "description": "0-100",
+                    "type": "number"
+                },
+                "roundTripDelay": {
+                    "description": "millisecs",
+                    "type": "number"
+                }
+            },
+            "required": [ "adjacencyName", "endpointDescription" ]
+        },
+        "event": {
+            "description": "the root level of the common event format",
+               "type": "object",
+               "properties": {
+                       "commonEventHeader": { "$ref": "#/definitions/commonEventHeader" },
+                       "faultFields": { "$ref": "#/definitions/faultFields" },
+                       "heartbeatFields": { "$ref": "#/definitions/heartbeatFields" },
+                       "measurementsForVfScalingFields": { "$ref": "#/definitions/measurementsForVfScalingFields" },
+                               "mobileFlowFields": { "$ref": "#/definitions/mobileFlowFields" },
+                       "otherFields": { "$ref": "#/definitions/otherFields" },
+                       "sipSignalingFields": { "$ref": "#/definitions/sipSignalingFields" },
+                       "stateChangeFields": { "$ref": "#/definitions/stateChangeFields" },
+                               "syslogFields": { "$ref": "#/definitions/syslogFields" },
+                       "thresholdCrossingAlertFields": { "$ref": "#/definitions/thresholdCrossingAlertFields" },
+                       "voiceQualityFields": { "$ref": "#/definitions/voiceQualityFields" }
+               },
+            "required": [ "commonEventHeader" ]
+        },
+               "eventDomainThrottleSpecification": {
+                       "description": "specification of what information to suppress within an event domain",
+                       "type": "object",
+                       "properties": {
+                       "eventDomain": {
+                               "description": "Event domain enum from the commonEventHeader domain field",
+                               "type": "string"
+                       },
+                       "suppressedFieldNames": {
+                               "description": "List of optional field names in the event block that should not be sent to the Event Listener",
+                               "type": "array",
+                                       "items": {
+                                           "type": "string"
+                                       }
+                       },
+                               "suppressedNvPairsList": {
+                                       "description": "Optional list of specific NvPairsNames to suppress within a given Name-Value Field",
+                               "type": "array",
+                                       "items": {
+                                           "$ref": "#/definitions/suppressedNvPairs"
+                                       }
+                       }
+                       },
+                       "required": [ "eventDomain" ]
+               },
+               "eventDomainThrottleSpecificationList": {
+                       "description": "array of eventDomainThrottleSpecifications",
+                       "type": "array",
+                       "items": {
+                           "$ref": "#/definitions/eventDomainThrottleSpecification"
+                       },
+                       "minItems": 0
+               },
+               "eventList": {
+                       "description": "array of events",
+                       "type": "array",
+                       "items": {
+                               "$ref": "#/definitions/event"
+                       }
+               },
+               "eventThrottlingState": {
+                       "description": "reports the throttling in force at the event source",
+                       "type": "object",
+                       "properties": {
+                       "eventThrottlingMode": {
+                               "description": "Mode the event manager is in",
+                               "type": "string",
+                                       "enum": [
+                                               "normal",
+                                               "throttled"
+                                       ]
+                       },
+                               "eventDomainThrottleSpecificationList": { "$ref": "#/definitions/eventDomainThrottleSpecificationList" }
+                       },
+                       "required": [ "eventThrottlingMode" ]
+               },
+               "faultFields": {
+                       "description": "fields specific to fault events",
+                       "type": "object",
+                       "properties": {
+                               "alarmAdditionalInformation": {
+                                       "description": "additional alarm information",
+                                       "type": "array",
+                                       "items": {
+                                               "$ref": "#/definitions/field"
+                                       }
+                               },
+                               "alarmCondition": {
+                                       "description": "alarm condition reported by the device",
+                                       "type": "string"
+                               },
+                               "alarmInterfaceA": {
+                                       "description": "card, port, channel or interface name of the device generating the alarm",
+                                       "type": "string"
+                               },
+                               "eventCategory": {
+                                       "description": "Event category, for example: license, link, routing, security, signaling",
+                                       "type": "string"
+                               },
+                               "eventSeverity": {
+                                       "description": "event severity",
+                                       "type": "string",
+                                       "enum": [
+                                               "CRITICAL",
+                                               "MAJOR",
+                                               "MINOR",
+                                               "WARNING",
+                                               "NORMAL"
+                                       ]
+                               },
+                               "eventSourceType": {
+                                       "description": "type of event source; examples: card, host, other, port, portThreshold, router, slotThreshold, switch, virtualMachine, virtualNetworkFunction",
+                                       "type": "string"
+                               },
+                               "faultFieldsVersion": {
+                                       "description": "version of the faultFields block",
+                                       "type": "number"
+                               },
+                               "specificProblem": {
+                                       "description": "short description of the alarm or problem",
+                                       "type": "string"
+                               },
+                               "vfStatus": {
+                                       "description": "virtual function status enumeration",
+                                       "type": "string",
+                                       "enum": [
+                                               "Active",
+                                               "Idle",
+                                               "Preparing to terminate",
+                                               "Ready to terminate",
+                                               "Requesting termination"
+                                       ]
+                               }
+                       },
+                       "required": [ "alarmCondition", "eventSeverity", "eventSourceType",
+                                     "faultFieldsVersion", "specificProblem", "vfStatus" ]
+               },
+               "featuresInUse": {
+                       "description": "number of times an identified feature was used over the measurementInterval",
+                       "type": "object",
+                       "properties": {
+                               "featureIdentifier": { "type": "string" },
+                               "featureUtilization": { "type": "integer" }
+                       },
+                       "required": [ "featureIdentifier", "featureUtilization" ]
+               },
+               "field": {
+                       "description": "name value pair",
+                       "type": "object",
+                       "properties": {
+                               "name":  { "type": "string" },
+                               "value": { "type": "string" }
+                       },
+                       "required": [ "name", "value" ]
+               },
+               "filesystemUsage": {
+                       "description": "disk usage of an identified virtual machine in gigabytes and/or gigabytes per second",
+                       "type": "object",
+                       "properties": {
+                               "blockConfigured": { "type": "number" },
+                               "blockIops": { "type": "number" },
+                               "blockUsed": { "type": "number" },
+                               "ephemeralConfigured": { "type": "number" },
+                               "ephemeralIops": { "type": "number" },
+                               "ephemeralUsed": { "type": "number" },
+                               "filesystemName": { "type": "string" }
+                       },
+                       "required": [ "blockConfigured", "blockIops", "blockUsed", "ephemeralConfigured",
+                                     "ephemeralIops", "ephemeralUsed", "filesystemName" ]
+               },
+               "gtpPerFlowMetrics": {
+                       "description": "Mobility GTP Protocol per flow metrics",
+                       "type": "object",
+                       "properties": {
+                               "avgBitErrorRate": {
+                                       "description": "average bit error rate",
+                                       "type": "number"
+                               },
+                               "avgPacketDelayVariation": {
+                                       "description": "Average packet delay variation or jitter in milliseconds for received packets: Average difference between the packet timestamp and time received for all pairs of consecutive packets",
+                                       "type": "number"
+                               },
+                               "avgPacketLatency": {
+                                       "description": "average delivery latency",
+                                       "type": "number"
+                               },
+                               "avgReceiveThroughput": {
+                                       "description": "average receive throughput",
+                                       "type": "number"
+                               },
+                               "avgTransmitThroughput": {
+                                       "description": "average transmit throughput",
+                                       "type": "number"
+                               },
+                               "durConnectionFailedStatus": {
+                                       "description": "duration of failed state in milliseconds, computed as the cumulative time between a failed echo request and the next following successful error request, over this reporting interval",
+                                       "type": "number"
+                               },
+                               "durTunnelFailedStatus": {
+                                       "description": "Duration of errored state, computed as the cumulative time between a tunnel error indicator and the next following non-errored indicator, over this reporting interval",
+                                       "type": "number"
+                               },
+                               "flowActivatedBy": {
+                                       "description": "Endpoint activating the flow",
+                                       "type": "string"
+                               },
+                               "flowActivationEpoch": {
+                                       "description": "Time the connection is activated in the flow (connection) being reported on, or transmission time of the first packet if activation time is not available",
+                                       "type": "number"
+                               },
+                               "flowActivationMicrosec": {
+                                       "description": "Integer microseconds for the start of the flow connection",
+                                       "type": "number"
+                               },
+                               "flowActivationTime": {
+                                       "description": "time the connection is activated in the flow being reported on, or transmission time of the first packet if activation time is not available; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800",
+                                       "type": "string"
+                               },
+                               "flowDeactivatedBy": {
+                                       "description": "Endpoint deactivating the flow",
+                                       "type": "string"
+                               },
+                               "flowDeactivationEpoch": {
+                                       "description": "Time for the start of the flow connection, in integer UTC epoch time aka UNIX time",
+                                       "type": "number"
+                               },
+                               "flowDeactivationMicrosec": {
+                                       "description": "Integer microseconds for the start of the flow connection",
+                                       "type": "number"
+                               },
+                               "flowDeactivationTime": {
+                                       "description": "Transmission time of the first packet in the flow connection being reported on; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800",
+                                       "type": "string"
+                               },
+                               "flowStatus": {
+                                       "description": "connection status at reporting time as a working / inactive / failed indicator value",
+                                       "type": "string"
+                               },
+                               "gtpConnectionStatus": {
+                                       "description": "Current connection state at reporting time",
+                                       "type": "string"
+                               },
+                               "gtpTunnelStatus": {
+                                       "description": "Current tunnel state  at reporting time",
+                                       "type": "string"
+                               },
+                               "ipTosCountList": {
+                                       "description": "array of key: value pairs where the keys are drawn from the IP Type-of-Service identifiers which range from '0' to '255', and the values are the count of packets that had those ToS identifiers in the flow",
+                    "type": "array",
+                    "items": {
+                                               "type": "array",
+                                               "items": [
+                                                       { "type": "string" },
+                                                       { "type": "number" }
+                                               ]
+                                       }
+                               },
+                               "ipTosList": {
+                                       "description": "Array of unique IP Type-of-Service values observed in the flow where values range from '0' to '255'",
+                                       "type": "array",
+                                       "items": {
+                                               "type": "string"
+                                       }
+                               },
+                               "largePacketRtt": {
+                                       "description": "large packet round trip time",
+                                       "type": "number"
+                               },
+                               "largePacketThreshold": {
+                                       "description": "large packet threshold being applied",
+                                       "type": "number"
+                               },
+                               "maxPacketDelayVariation": {
+                                       "description": "Maximum packet delay variation or jitter in milliseconds for received packets: Maximum of the difference between the packet timestamp and time received for all pairs of consecutive packets",
+                                       "type": "number"
+                               },
+                               "maxReceiveBitRate": {
+                                       "description": "maximum receive bit rate",
+                                       "type": "number"
+                               },
+                               "maxTransmitBitRate": {
+                                       "description": "maximum transmit bit rate",
+                                       "type": "number"
+                               },
+                               "mobileQciCosCountList": {
+                                       "description": "array of key: value pairs where the keys are drawn from LTE QCI or UMTS class of service strings, and the values are the count of packets that had those strings in the flow",
+                    "type": "array",
+                    "items": {
+                                               "type": "array",
+                                               "items": [
+                                                       { "type": "string" },
+                                                       { "type": "number" }
+                                               ]
+                                       }
+                               },
+                               "mobileQciCosList": {
+                                       "description": "Array of unique LTE QCI or UMTS class-of-service values observed in the flow",
+                                       "type": "array",
+                                       "items": {
+                                               "type": "string"
+                                       }
+                               },
+                               "numActivationFailures": {
+                                       "description": "Number of failed activation requests, as observed by the reporting node",
+                                       "type": "number"
+                               },
+                               "numBitErrors": {
+                                       "description": "number of errored bits",
+                                       "type": "number"
+                               },
+                               "numBytesReceived": {
+                                       "description": "number of bytes received, including retransmissions",
+                                       "type": "number"
+                               },
+                               "numBytesTransmitted": {
+                                       "description": "number of bytes transmitted, including retransmissions",
+                                       "type": "number"
+                               },
+                               "numDroppedPackets": {
+                                       "description": "number of received packets dropped due to errors per virtual interface",
+                                       "type": "number"
+                               },
+                               "numGtpEchoFailures": {
+                                       "description": "Number of Echo request path failures where failed paths are defined in 3GPP TS 29.281 sec 7.2.1 and 3GPP TS 29.060 sec. 11.2",
+                                       "type": "number"
+                               },
+                               "numGtpTunnelErrors": {
+                                       "description": "Number of tunnel error indications where errors are defined in 3GPP TS 29.281 sec 7.3.1 and 3GPP TS 29.060 sec. 11.1",
+                                       "type": "number"
+                               },
+                               "numHttpErrors": {
+                                       "description": "Http error count",
+                                       "type": "number"
+                               },
+                               "numL7BytesReceived": {
+                                       "description": "number of tunneled layer 7 bytes received, including retransmissions",
+                                       "type": "number"
+                               },
+                               "numL7BytesTransmitted": {
+                                       "description": "number of tunneled layer 7 bytes transmitted, excluding retransmissions",
+                                       "type": "number"
+                               },
+                               "numLostPackets": {
+                                       "description": "number of lost packets",
+                                       "type": "number"
+                               },
+                               "numOutOfOrderPackets": {
+                                       "description": "number of out-of-order packets",
+                                       "type": "number"
+                               },
+                               "numPacketErrors": {
+                                       "description": "number of errored packets",
+                                       "type": "number"
+                               },
+                               "numPacketsReceivedExclRetrans": {
+                                       "description": "number of packets received, excluding retransmission",
+                                       "type": "number"
+                               },
+                               "numPacketsReceivedInclRetrans": {
+                                       "description": "number of packets received, including retransmission",
+                                       "type": "number"
+                               },
+                               "numPacketsTransmittedInclRetrans": {
+                                       "description": "number of packets transmitted, including retransmissions",
+                                       "type": "number"
+                               },
+                               "numRetries": {
+                                       "description": "number of packet retries",
+                                       "type": "number"
+                               },
+                               "numTimeouts": {
+                                       "description": "number of packet timeouts",
+                                       "type": "number"
+                               },
+                               "numTunneledL7BytesReceived": {
+                                       "description": "number of tunneled layer 7 bytes received, excluding retransmissions",
+                                       "type": "number"
+                               },
+                               "roundTripTime": {
+                                       "description": "round trip time",
+                                       "type": "number"
+                               },
+                               "tcpFlagCountList": {
+                                       "description": "array of key: value pairs where the keys are drawn from TCP Flags and the values are the count of packets that had that TCP Flag in the flow",
+                    "type": "array",
+                    "items": {
+                                               "type": "array",
+                                               "items": [
+                                                       { "type": "string" },
+                                                       { "type": "number" }
+                                               ]
+                                       }
+                               },
+                               "tcpFlagList": {
+                                       "description": "Array of unique TCP Flags observed in the flow",
+                                       "type": "array",
+                                       "items": {
+                                               "type": "string"
+                                       }
+                               },
+                               "timeToFirstByte": {
+                                       "description": "Time in milliseconds between the connection activation and first byte received",
+                                       "type": "number"
+                               }
+                       },
+                       "required": [ "avgBitErrorRate", "avgPacketDelayVariation", "avgPacketLatency",
+                          "avgReceiveThroughput", "avgTransmitThroughput",
+                                                 "flowActivationEpoch", "flowActivationMicrosec",
+                                                 "flowDeactivationEpoch", "flowDeactivationMicrosec",
+                          "flowDeactivationTime", "flowStatus",
+                                                 "maxPacketDelayVariation", "numActivationFailures",
+                                                 "numBitErrors", "numBytesReceived", "numBytesTransmitted",
+                                                 "numDroppedPackets", "numL7BytesReceived",
+                                                 "numL7BytesTransmitted", "numLostPackets",
+                                                 "numOutOfOrderPackets", "numPacketErrors",
+                                                 "numPacketsReceivedExclRetrans",
+                                                 "numPacketsReceivedInclRetrans",
+                                                 "numPacketsTransmittedInclRetrans",
+                                                 "numRetries", "numTimeouts", "numTunneledL7BytesReceived",
+                                                 "roundTripTime", "timeToFirstByte"
+                       ]
+               },
+               "heartbeatFields": {
+                       "description": "optional field block for fields specific to heartbeat events",
+                       "type": "object",
+                       "properties": {
+                               "additionalFields": {
+                                       "description": "additional heartbeat fields if needed",
+                                       "type": "array",
+                                       "items": {
+                                               "$ref": "#/definitions/field"
+                                       }
+                               },
+                               "heartbeatFieldsVersion": {
+                                       "description": "version of the heartbeatFields block",
+                                       "type": "number"
+                               },
+                               "heartbeatInterval": {
+                                       "description": "current heartbeat interval in seconds",
+                                       "type": "integer"
+                               }
+                       },
+                       "required": [ "heartbeatFieldsVersion", "heartbeatInterval" ]
+               },
+               "internalHeaderFields": {
+                       "description": "enrichment fields for internal VES Event Listener service use only, not supplied by event sources",
+                       "type": "object"
+               },
+               "jsonObject": {
+                       "description": "json object schema, name and other meta-information along with one or more object instances",
+                       "type": "object",
+                       "properties": {
+                               "objectInstances":  {
+                    "description": "one or more instances of the jsonObject", 
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/jsonObjectInstance"     
+                    }                                  
+                },
+                               "objectName":  {
+                    "description": "name of the JSON Object", 
+                    "type": "string" 
+                },
+                               "objectSchema":  {
+                    "description": "json schema for the object", 
+                    "type": "string" 
+                },
+                               "objectSchemaUrl":  {
+                    "description": "Url to the json schema for the object", 
+                    "type": "string" 
+                },
+                               "nfSubscribedObjectName":  {
+                    "description": "name of the object associated with the nfSubscriptonId", 
+                    "type": "string" 
+                },
+                               "nfSubscriptionId":  {
+                    "description": "identifies an openConfig telemetry subscription on a network function, which configures the network function to send complex object data associated with the jsonObject", 
+                    "type": "string" 
+                }
+                       },
+                       "required": [ "objectInstances", "objectName" ]
+               },
+               "jsonObjectInstance": {
+                       "description": "meta-information about an instance of a jsonObject along with the actual object instance",
+                       "type": "object",
+                       "properties": {
+                               "objectInstance":  {
+                    "description": "an instance conforming to the jsonObject schema", 
+                    "type": "object" 
+                },
+                               "objectInstanceEpochMicrosec":  {
+                    "description": "the unix time aka epoch time associated with this objectInstance--as microseconds elapsed since 1 Jan 1970 not including leap seconds", 
+                    "type": "number" 
+                },
+                               "objectKeys":  {
+                    "description": "an ordered set of keys that identifies this particular instance of jsonObject", 
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/key"
+                    }                                  
+                }
+                       },
+                       "required": [ "objectInstance" ]
+               },
+               "key": {
+                       "description": "tuple which provides the name of a key along with its value and relative order",
+                       "type": "object",
+                       "properties": {
+                               "keyName": { 
+                    "description": "name of the key", 
+                                   "type": "string" 
+                               },
+                               "keyOrder": { 
+                    "description": "relative sequence or order of the key with respect to other keys", 
+                                   "type": "integer" 
+                               },
+                               "keyValue": { 
+                    "description": "value of the key", 
+                                   "type": "string" 
+                               }
+                       },
+                       "required": [ "keyName" ]
+               },
+               "latencyBucketMeasure": {
+                       "description": "number of counts falling within a defined latency bucket",
+                       "type": "object",
+                       "properties": {
+                               "countsInTheBucket": { "type": "number" },
+                               "highEndOfLatencyBucket": { "type": "number" },
+                               "lowEndOfLatencyBucket":  { "type": "number" }
+                       },
+                       "required": [ "countsInTheBucket" ]
+               },
+               "measurementsForVfScalingFields": {
+                       "description": "measurementsForVfScaling fields",
+                       "type": "object",
+                       "properties": {
+                               "additionalFields": {
+                                       "description": "additional name-value-pair fields",
+                                       "type": "array",
+                                       "items": {
+                                               "$ref": "#/definitions/field"
+                                       }
+                               },
+                               "additionalMeasurements": {
+                                       "description": "array of named name-value-pair arrays",
+                                       "type": "array",
+                                       "items": {
+                                               "$ref": "#/definitions/namedArrayOfFields"
+                                       }
+                               },
+                "additionalObjects": {
+                    "description": "array of JSON objects described by name, schema and other meta-information",
+                                       "type": "array",
+                                       "items": {
+                        "$ref": "#/definitions/jsonObject"
+                                       }
+                },
+                               "codecUsageArray": {
+                                       "description": "array of codecs in use",
+                                       "type": "array",
+                                       "items": {
+                                               "$ref": "#/definitions/codecsInUse"
+                                       }
+                               },
+                               "concurrentSessions": {
+                                       "description": "peak concurrent sessions for the VM or VNF over the measurementInterval",
+                                       "type": "integer"
+                               },
+                               "configuredEntities": {
+                                       "description": "over the measurementInterval, peak total number of: users, subscribers, devices, adjacencies, etc., for the VM, or subscribers, devices, etc., for the VNF",
+                                       "type": "integer"
+                               },
+                               "cpuUsageArray": {
+                                       "description": "usage of an array of CPUs",
+                                       "type": "array",
+                                       "items": {
+                                               "$ref": "#/definitions/cpuUsage"
+                                       }
+                               },
+                "diskUsageArray": {
+                                       "description": "usage of an array of disks",
+                                       "type": "array",
+                                       "items": {
+                                               "$ref": "#/definitions/diskUsage"
+                                       }
+                               },
+                               "featureUsageArray": {
+                                       "description": "array of features in use",
+                                       "type": "array",
+                                       "items": {
+                                               "$ref": "#/definitions/featuresInUse"
+                                       }
+                               },
+                               "filesystemUsageArray": {
+                                       "description": "filesystem usage of the VM on which the VNFC reporting the event is running",
+                                       "type": "array",
+                                       "items": {
+                                               "$ref": "#/definitions/filesystemUsage"
+                                       }
+                               },
+                               "latencyDistribution": {
+                                       "description": "array of integers representing counts of requests whose latency in milliseconds falls within per-VNF configured ranges",
+                                       "type": "array",
+                                       "items": {
+                                               "$ref": "#/definitions/latencyBucketMeasure"
+                                       }
+                               },
+                               "meanRequestLatency": {
+                                       "description": "mean seconds required to respond to each request for the VM on which the VNFC reporting the event is running",
+                                       "type": "number"
+                               },
+                               "measurementInterval": {
+                                       "description": "interval over which measurements are being reported in seconds",
+                                       "type": "number"
+                               },
+                               "measurementsForVfScalingVersion": {
+                                       "description": "version of the measurementsForVfScaling block",
+                                       "type": "number"
+                               },
+                               "memoryUsageArray": {
+                                       "description": "memory usage of an array of VMs",
+                                       "type": "array",
+                                       "items": {
+                                               "$ref": "#/definitions/memoryUsage"
+                                       }
+                               },
+                               "numberOfMediaPortsInUse": {
+                                       "description": "number of media ports in use",
+                                       "type": "integer"
+                               },
+                               "requestRate": {
+                                       "description": "peak rate of service requests per second to the VNF over the measurementInterval",
+                                       "type": "number"
+                               },
+                               "vnfcScalingMetric": {
+                                       "description": "represents busy-ness of the VNF from 0 to 100 as reported by the VNFC",
+                                       "type": "integer"
+                               },
+                               "vNicPerformanceArray": {
+                                       "description": "usage of an array of virtual network interface cards",
+                                       "type": "array",
+                                       "items": {
+                                               "$ref": "#/definitions/vNicPerformance"
+                                       }
+                               }
+                       },
+                       "required": [ "measurementInterval", "measurementsForVfScalingVersion" ]
+               },
+               "memoryUsage": {
+                       "description": "memory usage of an identified virtual machine",
+                       "type": "object",
+                       "properties": {
+                               "memoryBuffered": { 
+                    "description": "kibibytes of temporary storage for raw disk blocks", 
+                    "type": "number" 
+                },
+                               "memoryCached": { 
+                    "description": "kibibytes of memory used for cache", 
+                    "type": "number" 
+                },
+                               "memoryConfigured": { 
+                    "description": "kibibytes of memory configured in the virtual machine on which the VNFC reporting the event is running", 
+                    "type": "number" 
+                },
+                               "memoryFree": { 
+                    "description": "kibibytes of physical RAM left unused by the system", 
+                    "type": "number" 
+                },
+                               "memorySlabRecl": { 
+                    "description": "the part of the slab that can be reclaimed such as caches measured in kibibytes", 
+                    "type": "number" 
+                },
+                               "memorySlabUnrecl": { 
+                    "description": "the part of the slab that cannot be reclaimed even when lacking memory measured in kibibytes", 
+                    "type": "number" 
+                },
+                               "memoryUsed": { 
+                    "description": "total memory minus the sum of free, buffered, cached and slab memory measured in kibibytes", 
+                    "type": "number" 
+                },
+                               "vmIdentifier": { 
+                    "description": "virtual machine identifier associated with the memory metrics", 
+                    "type": "string" 
+                }
+                       },
+                       "required": [ "memoryFree", "memoryUsed", "vmIdentifier" ]
+               },
+               "mobileFlowFields": {
+                       "description": "mobileFlow fields",
+                       "type": "object",
+                       "properties": {
+                               "additionalFields": {
+                                       "description": "additional mobileFlow fields if needed",
+                                       "type": "array",
+                                       "items": {
+                                               "$ref": "#/definitions/field"
+                                       }
+                               },
+                               "applicationType": {
+                                       "description": "Application type inferred",
+                                       "type": "string"
+                               },
+                               "appProtocolType": {
+                                       "description": "application protocol",
+                                       "type": "string"
+                               },
+                               "appProtocolVersion": {
+                                       "description": "application protocol version",
+                                       "type": "string"
+                               },
+                               "cid": {
+                                       "description": "cell id",
+                                       "type": "string"
+                               },
+                               "connectionType": {
+                                       "description": "Abbreviation referencing a 3GPP reference point e.g., S1-U, S11, etc",
+                                       "type": "string"
+                               },
+                               "ecgi": {
+                                       "description": "Evolved Cell Global Id",
+                                       "type": "string"
+                               },
+                               "flowDirection": {
+                                       "description": "Flow direction, indicating if the reporting node is the source of the flow or destination for the flow",
+                                       "type": "string"
+                               },
+                               "gtpPerFlowMetrics": { "$ref": "#/definitions/gtpPerFlowMetrics" },
+                               "gtpProtocolType": {
+                                       "description": "GTP protocol",
+                                       "type": "string"
+                               },
+                               "gtpVersion": {
+                                       "description": "GTP protocol version",
+                                       "type": "string"
+                               },
+                               "httpHeader": {
+                                       "description": "HTTP request header, if the flow connects to a node referenced by HTTP",
+                                       "type": "string"
+                               },
+                               "imei": {
+                                       "description": "IMEI for the subscriber UE used in this flow, if the flow connects to a mobile device",
+                                       "type": "string"
+                               },
+                               "imsi": {
+                                       "description": "IMSI for the subscriber UE used in this flow, if the flow connects to a mobile device",
+                                       "type": "string"
+                               },
+                               "ipProtocolType": {
+                                       "description": "IP protocol type e.g., TCP, UDP, RTP...",
+                                       "type": "string"
+                               },
+                               "ipVersion": {
+                                       "description": "IP protocol version e.g., IPv4, IPv6",
+                                       "type": "string"
+                               },
+                               "lac": {
+                                       "description": "location area code",
+                                       "type": "string"
+                               },
+                               "mcc": {
+                                       "description": "mobile country code",
+                                       "type": "string"
+                               },
+                               "mnc": {
+                                       "description": "mobile network code",
+                                       "type": "string"
+                               },
+                "mobileFlowFieldsVersion": {
+                    "description": "version of the mobileFlowFields block",
+                    "type": "number"
+                },
+                               "msisdn": {
+                                       "description": "MSISDN for the subscriber UE used in this flow, as an integer, if the flow connects to a mobile device",
+                                       "type": "string"
+                               },
+                               "otherEndpointIpAddress": {
+                                       "description": "IP address for the other endpoint, as used for the flow being reported on",
+                                       "type": "string"
+                               },
+                               "otherEndpointPort": {
+                                       "description": "IP Port for the reporting entity, as used for the flow being reported on",
+                                       "type": "integer"
+                               },
+                               "otherFunctionalRole": {
+                                       "description": "Functional role of the other endpoint for the flow being reported on e.g., MME, S-GW, P-GW, PCRF...",
+                                       "type": "string"
+                               },
+                               "rac": {
+                                       "description": "routing area code",
+                                       "type": "string"
+                               },
+                               "radioAccessTechnology": {
+                                       "description": "Radio Access Technology e.g., 2G, 3G, LTE",
+                                       "type": "string"
+                               },
+                               "reportingEndpointIpAddr": {
+                                       "description": "IP address for the reporting entity, as used for the flow being reported on",
+                                       "type": "string"
+                               },
+                               "reportingEndpointPort": {
+                                       "description": "IP port for the reporting entity, as used for the flow being reported on",
+                                       "type": "integer"
+                               },
+                               "sac": {
+                                       "description": "service area code",
+                                       "type": "string"
+                               },
+                               "samplingAlgorithm": {
+                                       "description": "Integer identifier for the sampling algorithm or rule being applied in calculating the flow metrics if metrics are calculated based on a sample of packets, or 0 if no sampling is applied",
+                                       "type": "integer"
+                               },
+                               "tac": {
+                                       "description": "transport area code",
+                                       "type": "string"
+                               },
+                               "tunnelId": {
+                                       "description": "tunnel identifier",
+                                       "type": "string"
+                               },
+                               "vlanId": {
+                                       "description": "VLAN identifier used by this flow",
+                                       "type": "string"
+                               }
+                       },
+                       "required": [ "flowDirection", "gtpPerFlowMetrics", "ipProtocolType", "ipVersion",
+                                     "mobileFlowFieldsVersion", "otherEndpointIpAddress", "otherEndpointPort",
+                                     "reportingEndpointIpAddr", "reportingEndpointPort" ]
+               },
+               "namedArrayOfFields": {
+                       "description": "an array of name value pairs along with a name for the array",
+                       "type": "object",
+                       "properties": {
+                               "name":  { "type": "string" },
+                               "arrayOfFields": {
+                                       "description": "array of name value pairs",
+                                       "type": "array",
+                                       "items": {  
+                                               "$ref": "#/definitions/field" 
+                                       }
+                               }
+                       },
+                       "required": [ "name", "arrayOfFields" ]
+               },
+               "otherFields": {
+                       "description": "fields for events belonging to the 'other' domain of the commonEventHeader domain enumeration",
+                       "type": "object",
+                       "properties": {
+                               "hashOfNameValuePairArrays": {
+                                       "description": "array of named name-value-pair arrays",
+                                       "type": "array",
+                                       "items": {
+                                               "$ref": "#/definitions/namedArrayOfFields"
+                                       }
+                               },
+                "jsonObjects": {
+                    "description": "array of JSON objects described by name, schema and other meta-information",
+                                       "type": "array",
+                                       "items": {
+                        "$ref": "#/definitions/jsonObject"
+                                       }
+                },
+                               "nameValuePairs": {
+                                       "description": "array of name-value pairs",
+                                       "type": "array",
+                                       "items": {
+                                               "$ref": "#/definitions/field"
+                                       }
+                               },                              
+                "otherFieldsVersion": {
+                    "description": "version of the otherFields block",
+                    "type": "number"
+                }
+            },
+            "required": [ "otherFieldsVersion" ]
+               },
+               "requestError": {
+                       "description": "standard request error data structure",
+                       "type": "object",
+                       "properties": {
+                           "messageId": {
+                                       "description": "Unique message identifier of the format ABCnnnn where ABC is either SVC for Service Exceptions or POL for Policy Exception",
+                                       "type": "string"
+                               },
+                               "text": {
+                                       "description": "Message text, with replacement variables marked with %n, where n is an index into the list of <variables> elements, starting at 1",
+                                       "type": "string"
+                               },
+                               "url": {
+                                       "description": "Hyperlink to a detailed error resource e.g., an HTML page for browser user agents",
+                                       "type": "string"
+                               },
+                               "variables": {
+                                       "description": "List of zero or more strings that represent the contents of the variables used by the message text",
+                                       "type": "string"
+                               }
+                       },
+                       "required": [ "messageId", "text" ]
+               },
+        "sipSignalingFields": {
+            "description": "sip signaling fields",
+            "type": "object",
+            "properties": {
+                "additionalInformation": {
+                                       "description": "additional sip signaling fields if needed",
+                                       "type": "array",
+                                       "items": {  
+                                               "$ref": "#/definitions/field" 
+                                       }
+                },
+                "compressedSip": {
+                    "description": "the full SIP request/response including headers and bodies",
+                    "type": "string"
+                },
+                "correlator": {
+                    "description": "this is the same for all events on this call",
+                    "type": "string"
+                },
+                "localIpAddress": {
+                    "description": "IP address on VNF",
+                    "type": "string"
+                },
+                "localPort": {
+                    "description": "port on VNF",
+                    "type": "string"
+                },
+                "remoteIpAddress": {
+                    "description": "IP address of peer endpoint",
+                    "type": "string"
+                },
+                "remotePort": {
+                    "description": "port of peer endpoint",
+                    "type": "string"
+                },
+                "sipSignalingFieldsVersion": {
+                    "description": "version of the sipSignalingFields block",
+                    "type": "number"
+                },
+                "summarySip": {
+                    "description": "the SIP Method or Response (‘INVITE’, Ã¢â‚¬Ëœ200 OK’, Ã¢â‚¬ËœBYE’, etc)",
+                    "type": "string"
+                },
+                "vendorVnfNameFields": {
+                    "$ref": "#/definitions/vendorVnfNameFields"
+                }
+            },
+            "required": [ "correlator", "localIpAddress", "localPort", "remoteIpAddress", 
+                                     "remotePort", "sipSignalingFieldsVersion", "vendorVnfNameFields" ]
+        },
+               "stateChangeFields": {
+                       "description": "stateChange fields",
+                       "type": "object",
+                       "properties": {
+                               "additionalFields": {
+                                       "description": "additional stateChange fields if needed",
+                                       "type": "array",
+                                       "items": {
+                                               "$ref": "#/definitions/field"
+                                       }
+                               },
+                               "newState": {
+                                       "description": "new state of the entity",
+                                       "type": "string",
+                                       "enum": [
+                                               "inService",
+                                               "maintenance",
+                                               "outOfService"
+                                       ]
+                               },
+                               "oldState": {
+                                       "description": "previous state of the entity",
+                                       "type": "string",
+                                       "enum": [
+                                               "inService",
+                                               "maintenance",
+                                               "outOfService"
+                                       ]
+                               },
+                               "stateChangeFieldsVersion": {
+                                       "description": "version of the stateChangeFields block",
+                                       "type": "number"
+                               },
+                               "stateInterface": {
+                                       "description": "card or port name of the entity that changed state",
+                                       "type": "string"
+                               }
+                       },
+                       "required": [ "newState", "oldState", "stateChangeFieldsVersion", "stateInterface" ]
+               },
+               "suppressedNvPairs": {
+                       "description": "List of specific NvPairsNames to suppress within a given Name-Value Field for event Throttling",
+                       "type": "object",
+                       "properties": {
+                               "nvPairFieldName": {
+                                       "description": "Name of the field within which are the nvpair names to suppress",
+                                       "type": "string"
+                               },
+                               "suppressedNvPairNames": {
+                                       "description": "Array of nvpair names to suppress within the nvpairFieldName",
+                               "type": "array",
+                                       "items": {
+                                           "type": "string"
+                                       }
+                               }
+                       },
+                       "required": [ "nvPairFieldName", "suppressedNvPairNames" ]
+               },
+               "syslogFields": {
+                       "description": "sysLog fields",
+                       "type": "object",
+                       "properties": {
+                               "additionalFields": {
+                                       "description": "additional syslog fields if needed provided as name=value delimited by a pipe Ã¢â‚¬Ëœ|’ symbol, for example: 'name1=value1|name2=value2|…'",
+                                       "type": "string"
+                               },
+                               "eventSourceHost": {
+                                       "description": "hostname of the device",
+                                       "type": "string"
+                               },
+                               "eventSourceType": {
+                                       "description": "type of event source; examples: other, router, switch, host, card, port, slotThreshold, portThreshold, virtualMachine, virtualNetworkFunction",
+                                       "type": "string"
+                               },
+                               "syslogFacility": {
+                                       "description": "numeric code from 0 to 23 for facility--see table in documentation",
+                                       "type": "integer"
+                               },
+                               "syslogFieldsVersion": {
+                                       "description": "version of the syslogFields block",
+                                       "type": "number"
+                               },
+                               "syslogMsg": {
+                                       "description": "syslog message",
+                                       "type": "string"
+                               },
+                               "syslogPri": {
+                                       "description": "0-192 combined severity and facility",
+                                       "type": "integer"
+                               },
+                               "syslogProc": {
+                                       "description": "identifies the application that originated the message",
+                                       "type": "string"
+                               },
+                               "syslogProcId": {
+                                       "description": "a change in the value of this field indicates a discontinuity in syslog reporting",
+                                       "type": "number"
+                               },
+                               "syslogSData": {
+                                       "description": "syslog structured data consisting of a structured data Id followed by a set of key value pairs",
+                                       "type": "string"
+                               },
+                               "syslogSdId": {
+                                       "description": "0-32 char in format name@number for example ourSDID@32473",
+                                       "type": "string"
+                               },
+                               "syslogSev": {
+                                       "description": "numerical Code for  severity derived from syslogPri as remaider of syslogPri / 8",
+                                       "type": "string",
+                                       "enum": [
+                                               "Alert",
+                                               "Critical",
+                                               "Debug",
+                                               "Emergency",
+                                               "Error",
+                                               "Info",
+                                               "Notice",
+                                               "Warning"
+                                       ]
+                               },
+                               "syslogTag": {
+                                       "description": "msgId indicating the type of message such as TCPOUT or TCPIN; NILVALUE should be used when no other value can be provided",
+                                       "type": "string"
+                               },
+                               "syslogVer": {
+                                       "description": "IANA assigned version of the syslog protocol specification - typically 1",
+                                       "type": "number"
+                               }
+                       },
+                       "required": [ "eventSourceType", "syslogFieldsVersion", "syslogMsg", "syslogTag" ]
+               },
+               "thresholdCrossingAlertFields": {
+                       "description": "fields specific to threshold crossing alert events",
+                       "type": "object",
+                       "properties": {
+                               "additionalFields": {
+                                       "description": "additional threshold crossing alert fields if needed",
+                                       "type": "array",
+                                       "items": {  
+                                               "$ref": "#/definitions/field" 
+                                       }
+                               },
+                               "additionalParameters": {
+                                       "description": "performance counters",
+                                       "type": "array",
+                                       "items": {
+                                               "$ref": "#/definitions/counter"
+                                       }
+                               },
+                               "alertAction": {
+                                       "description": "Event action",
+                                       "type": "string",
+                                       "enum": [
+                                               "CLEAR",
+                                               "CONT",
+                                               "SET"
+                                       ]
+                               },
+                               "alertDescription": {
+                                       "description": "Unique short alert description such as IF-SHUB-ERRDROP",
+                                       "type": "string"
+                               },
+                               "alertType": {
+                                       "description": "Event type",
+                                       "type": "string",
+                                       "enum": [
+                                               "CARD-ANOMALY",
+                                               "ELEMENT-ANOMALY",
+                                               "INTERFACE-ANOMALY",
+                                               "SERVICE-ANOMALY"
+                                       ]
+                               },
+                               "alertValue": {
+                                       "description": "Calculated API value (if applicable)",
+                                       "type": "string"
+                               },
+                               "associatedAlertIdList": {
+                                       "description": "List of eventIds associated with the event being reported",
+                                       "type": "array",
+                                       "items": { "type": "string" }
+                               },
+                               "collectionTimestamp": {
+                                       "description": "Time when the performance collector picked up the data; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800",
+                                       "type": "string"
+                               },
+                               "dataCollector": {
+                                       "description": "Specific performance collector instance used",
+                                       "type": "string"
+                               },
+                               "elementType": {
+                                       "description": "type of network element - internal ATT field",
+                                       "type": "string"
+                               },
+                               "eventSeverity": {
+                                       "description": "event severity or priority",
+                                       "type": "string",
+                                       "enum": [
+                                               "CRITICAL",
+                                               "MAJOR",
+                                               "MINOR",
+                                               "WARNING",
+                                               "NORMAL"
+                                       ]
+                               },
+                               "eventStartTimestamp": {
+                                       "description": "Time closest to when the measurement was made; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800",
+                                       "type": "string"
+                               },
+                               "interfaceName": {
+                                       "description": "Physical or logical port or card (if applicable)",
+                                       "type": "string"
+                               },
+                               "networkService": {
+                                       "description": "network name - internal ATT field",
+                                       "type": "string"
+                               },
+                               "possibleRootCause": {
+                                       "description": "Reserved for future use",
+                                       "type": "string"
+                               },
+                               "thresholdCrossingFieldsVersion": {
+                                       "description": "version of the thresholdCrossingAlertFields block",
+                                       "type": "number"
+                               }
+                       },
+                       "required": [
+                               "additionalParameters",
+                               "alertAction",
+                               "alertDescription",
+                               "alertType",
+                               "collectionTimestamp",
+                               "eventSeverity",
+                               "eventStartTimestamp",
+                               "thresholdCrossingFieldsVersion"
+                       ]
+               },
+               "vendorVnfNameFields": {
+                       "description": "provides vendor, vnf and vfModule identifying information",
+                       "type": "object",
+                       "properties": {
+                               "vendorName": {
+                                       "description": "VNF vendor name",
+                                       "type": "string"
+                               },
+                               "vfModuleName": {
+                                       "description": "ASDC vfModuleName for the vfModule generating the event",
+                                       "type": "string"
+                               },
+                               "vnfName": {
+                                       "description": "ASDC modelName for the VNF generating the event",
+                                       "type": "string"
+                               }
+                       },
+                       "required": [ "vendorName" ]
+               },
+               "vNicPerformance": {
+                       "description": "describes the performance and errors of an identified virtual network interface card",
+                       "type": "object",
+                       "properties": {
+                               "receivedBroadcastPacketsAccumulated": {
+                                       "description": "Cumulative count of broadcast packets received as read at the end of the measurement interval",
+                                       "type": "number"
+                               },
+                               "receivedBroadcastPacketsDelta": {
+                                       "description": "Count of broadcast packets received within the measurement interval",
+                                       "type": "number"
+                               },
+                               "receivedDiscardedPacketsAccumulated": {
+                                       "description": "Cumulative count of discarded packets received as read at the end of the measurement interval",
+                                       "type": "number"
+                               },
+                               "receivedDiscardedPacketsDelta": {
+                                       "description": "Count of discarded packets received within the measurement interval",
+                                       "type": "number"
+                               },
+                               "receivedErrorPacketsAccumulated": {
+                                       "description": "Cumulative count of error packets received as read at the end of the measurement interval",
+                                       "type": "number"
+                               },
+                               "receivedErrorPacketsDelta": {
+                                       "description": "Count of error packets received within the measurement interval",
+                                       "type": "number"
+                               },
+                               "receivedMulticastPacketsAccumulated": {
+                                       "description": "Cumulative count of multicast packets received as read at the end of the measurement interval",
+                                       "type": "number"
+                               },
+                               "receivedMulticastPacketsDelta": {
+                                       "description": "Count of multicast packets received within the measurement interval",
+                                       "type": "number"
+                               },
+                               "receivedOctetsAccumulated": {
+                                       "description": "Cumulative count of octets received as read at the end of the measurement interval",
+                                       "type": "number"
+                               },
+                               "receivedOctetsDelta": {
+                                       "description": "Count of octets received within the measurement interval",
+                                       "type": "number"
+                               },
+                               "receivedTotalPacketsAccumulated": {
+                                       "description": "Cumulative count of all packets received as read at the end of the measurement interval",
+                                       "type": "number"
+                               },
+                               "receivedTotalPacketsDelta": {
+                                       "description": "Count of all packets received within the measurement interval",
+                                       "type": "number"
+                               },
+                               "receivedUnicastPacketsAccumulated": {
+                                       "description": "Cumulative count of unicast packets received as read at the end of the measurement interval",
+                                       "type": "number"
+                               },
+                               "receivedUnicastPacketsDelta": {
+                                       "description": "Count of unicast packets received within the measurement interval",
+                                       "type": "number"
+                               },
+                               "transmittedBroadcastPacketsAccumulated": {
+                                       "description": "Cumulative count of broadcast packets transmitted as read at the end of the measurement interval",
+                                       "type": "number"
+                               },
+                               "transmittedBroadcastPacketsDelta": {
+                                       "description": "Count of broadcast packets transmitted within the measurement interval",
+                                       "type": "number"
+                               },
+                               "transmittedDiscardedPacketsAccumulated": {
+                                       "description": "Cumulative count of discarded packets transmitted as read at the end of the measurement interval",
+                                       "type": "number"
+                               },
+                               "transmittedDiscardedPacketsDelta": {
+                                       "description": "Count of discarded packets transmitted within the measurement interval",
+                                       "type": "number"
+                               },
+                               "transmittedErrorPacketsAccumulated": {
+                                       "description": "Cumulative count of error packets transmitted as read at the end of the measurement interval",
+                                       "type": "number"
+                               },
+                               "transmittedErrorPacketsDelta": {
+                                       "description": "Count of error packets transmitted within the measurement interval",
+                                       "type": "number"
+                               },
+                               "transmittedMulticastPacketsAccumulated": {
+                                       "description": "Cumulative count of multicast packets transmitted as read at the end of the measurement interval",
+                                       "type": "number"
+                               },
+                               "transmittedMulticastPacketsDelta": {
+                                       "description": "Count of multicast packets transmitted within the measurement interval",
+                                       "type": "number"
+                               },
+                               "transmittedOctetsAccumulated": {
+                                       "description": "Cumulative count of octets transmitted as read at the end of the measurement interval",
+                                       "type": "number"
+                               },
+                               "transmittedOctetsDelta": {
+                                       "description": "Count of octets transmitted within the measurement interval",
+                                       "type": "number"
+                               },
+                               "transmittedTotalPacketsAccumulated": {
+                                       "description": "Cumulative count of all packets transmitted as read at the end of the measurement interval",
+                                       "type": "number"
+                               },
+                               "transmittedTotalPacketsDelta": {
+                                       "description": "Count of all packets transmitted within the measurement interval",
+                                       "type": "number"
+                               },
+                               "transmittedUnicastPacketsAccumulated": {
+                                       "description": "Cumulative count of unicast packets transmitted as read at the end of the measurement interval",
+                                       "type": "number"
+                               },
+                               "transmittedUnicastPacketsDelta": {
+                                       "description": "Count of unicast packets transmitted within the measurement interval",
+                                       "type": "number"
+                               },
+                               "valuesAreSuspect": {
+                                       "description": "Indicates whether vNicPerformance values are likely inaccurate due to counter overflow or other condtions",
+                                       "type": "string",
+                                       "enum": [ "true", "false" ]
+                               },
+                               "vNicIdentifier": {
+                                       "description": "vNic identification",
+                                       "type": "string"
+                               }
+                       },
+                       "required": [ "valuesAreSuspect", "vNicIdentifier" ]
+               },
+        "voiceQualityFields": {
+            "description": "provides statistics related to customer facing voice products",
+            "type": "object",
+            "properties": {
+                "additionalInformation": {
+                                       "description": "additional voice quality fields if needed",
+                                       "type": "array",
+                                       "items": {  
+                                               "$ref": "#/definitions/field" 
+                                       }
+                },
+                "calleeSideCodec": {
+                    "description": "callee codec for the call",
+                    "type": "string"
+                },
+                "callerSideCodec": {
+                    "description": "caller codec for the call",
+                    "type": "string"
+                },
+                "correlator": {
+                    "description": "this is the same for all events on this call",
+                    "type": "string"
+                },
+                "endOfCallVqmSummaries": {
+                    "$ref": "#/definitions/endOfCallVqmSummaries"
+                },
+                "phoneNumber": {
+                    "description": "phone number associated with the correlator",
+                    "type": "string"
+                },
+                "midCallRtcp": {
+                    "description": "Base64 encoding of the binary RTCP data excluding Eth/IP/UDP headers",
+                    "type": "string"
+                },
+                "vendorVnfNameFields": {
+                    "$ref": "#/definitions/vendorVnfNameFields"
+                },
+                "voiceQualityFieldsVersion": {
+                    "description": "version of the voiceQualityFields block",
+                    "type": "number"
+                }
+            },
+            "required": [ "calleeSideCodec", "callerSideCodec", "correlator", "midCallRtcp",
+                                     "vendorVnfNameFields", "voiceQualityFieldsVersion" ]
+        }
+       },
+       "title": "Event Listener",
+       "type": "object",
+       "properties": {
+        "event": {"$ref": "#/definitions/event"}
+    }
+}
diff --git a/test/csit/tests/dcaegen2/prh_testcases/resources/DMaaP.py b/test/csit/tests/dcaegen2/prh_testcases/resources/DMaaP.py
new file mode 100644 (file)
index 0000000..6daf59b
--- /dev/null
@@ -0,0 +1,157 @@
+import BaseHTTPServer
+import json
+import posixpath
+import sys
+import urllib
+from Queue import Queue
+
+import jsonschema
+from robot.api import logger
+
+try:
+    from cStringIO import StringIO
+except ImportError:
+    from StringIO import StringIO
+
+CommonEventSchemaV5 = "./CommonEventFormat_28.3.json"
+EvtSchema = None
+EventQueue = {"defaultTopic": Queue()}
+
+
+def cleanUpEvent(topic="defaultTopic"):
+    try:
+        EventQueue.get(topic).empty()
+    except Exception as e:
+        logger.console(str(e))
+        logger.console("DMaaP Event enqueue failed")
+
+
+def enqueEvent(evt, topic="defaultTopic"):
+    if topic not in EventQueue.keys():
+        EventQueue.update({topic: Queue()})
+
+    try:
+        EventQueue.get(topic).put(evt)
+        logger.console("DMaaP Event enqued - size=" + str(len(evt)))
+        return True
+    except Exception as e:
+        logger.console(str(e))
+        logger.console("DMaaP Event enqueue failed")
+        return False
+
+
+def dequeEvent(topic="defaultTopic", waitSec=10):
+    try:
+        evt = EventQueue.get(topic).get(True, waitSec)
+        logger.console("DMaaP Event dequeued - size=" + str(len(evt)))
+        return evt
+    except Exception as e:
+        logger.console(str(e))
+        logger.console("DMaaP Event dequeue failed")
+        return None
+
+
+class DMaaPHandler(BaseHTTPServer.BaseHTTPRequestHandler):
+
+    def do_PUT(self):
+        self.send_response(405)
+        return
+
+    def do_PATCH(self):
+        self.send_response(200)
+        return
+        
+    def do_POST(self):
+        
+        respCode = 0
+
+        if 'POST' not in self.requestline:
+            respCode = 405
+        
+        if respCode == 0:
+            content_len = int(self.headers.getheader('content-length', 0))
+            post_body = self.rfile.read(content_len)
+
+            logger.console("DMaaP Receive Event:\n" + post_body)
+            
+            indx = post_body.index("{")
+            if indx != 0:
+                post_body = post_body[indx:]
+
+            topic = self.getTopicName(self.path)
+
+            if topic is not None:
+                logger.console("DMaaP Topic Name: " + topic)
+                if enqueEvent(post_body, topic) == False:
+                    print "enque event fails"
+                   
+            global EvtSchema
+            try:
+                if EvtSchema is None:
+                    with open(CommonEventSchemaV5) as file:
+                        EvtSchema = json.load(file)
+                decoded_body = json.loads(post_body)
+                jsonschema.validate(decoded_body, EvtSchema)
+            except:
+                respCode = 400
+        
+        if respCode == 0:
+            if 'clientThrottlingState' in self.requestline:
+                self.send_response(204)
+            else:
+                self.send_response(200)
+                self.send_header('Content-Type', 'application/json')
+                self.end_headers()
+                self.wfile.write("{\"count\": 1, \"serverTimeMs\": 3}")
+                self.wfile.close()
+        else:
+            self.send_response(respCode)
+
+        return
+
+    def do_GET(self):
+        self.send_response(200)
+        self.send_header('Content-Type', 'application/json')
+        self.end_headers()
+        self.wfile.write(dequeEvent(self.getTopicName(self.path)))
+        self.wfile.close()
+
+        return
+
+    def getTopicName(self, path):
+        # abandon query parameters
+        path = path.split('?',1)[0]
+        path = path.split('#',1)[0]
+
+        path = posixpath.normpath(urllib.unquote(path))
+        parts = filter(None, path.split('/'))
+
+        if len(parts) > 1 and parts[0] == "events":
+            return str(parts[1])
+        else:
+            return None
+
+def _main_ (HandlerClass = DMaaPHandler,
+         ServerClass = BaseHTTPServer.HTTPServer, protocol="HTTP/1.0"):
+    
+    if sys.argv[1:]:
+        port = int(sys.argv[1])
+    else:
+        port = 2222
+    
+    print "Load event schema file: " + CommonEventSchemaV5
+    with open(CommonEventSchemaV5) as file:
+        global EvtSchema
+        EvtSchema = json.load(file)
+        
+    server_address = ('', port)
+
+    HandlerClass.protocol_version = protocol
+    httpd = ServerClass(server_address, HandlerClass)
+
+    sa = httpd.socket.getsockname()
+    print "Serving HTTP on", sa[0], "port", sa[1], "..."
+    httpd.serve_forever()
+    
+if __name__ == '__main__':
+    _main_()
\ No newline at end of file
diff --git a/test/csit/tests/dcaegen2/prh_testcases/resources/Dockerfile b/test/csit/tests/dcaegen2/prh_testcases/resources/Dockerfile
new file mode 100644 (file)
index 0000000..e8d1cc1
--- /dev/null
@@ -0,0 +1,13 @@
+FROM python:2
+
+ENV https_proxy "$https_proxy"
+#ENV TZ=Europe/Warsaw
+
+ADD DMaaP.py /
+ADD CommonEventFormat_28.3.json / 
+
+RUN pip install jsonschema robotframework
+
+EXPOSE 2222
+
+CMD [ "python", "./DMaaP.py" ]
\ No newline at end of file
diff --git a/test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py b/test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py
new file mode 100644 (file)
index 0000000..893ed94
--- /dev/null
@@ -0,0 +1,95 @@
+'''
+Created on Apr 27, 2018
+
+@author: mwagner9
+'''
+
+import threading
+import time
+
+from robot.api import logger
+
+import PrhVariables
+import Simulator
+
+st = '{"event":{"correlationID":"NOKQTFCOC540002E", "pnfOamIpv4Address":"10.16.123.234", "pnfOamIpv6Address":"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}}'
+
+class PrhLibrary(object):
+    def __init__(self):
+        pass
+
+    def setup_dmaap_server(self):
+        return _setup(PrhVariables.DMaaPHttpServerThread, 'DMaaP', PrhVariables.DMaaPIsRobotRun, Simulator, 3904)
+
+    def setup_aai_server(self):
+        return _setup(PrhVariables.AAIHttpServerThread, 'AAI', PrhVariables.AAIIsRobotRun, Simulator, 3905)
+
+    def shutdown_dmaap_server(self):
+        return _shutdown(PrhVariables.DMaaPHTTPD, 'DMaaP')
+
+    def shutdown_aai_server(self):
+        return _shutdown(PrhVariables.AAIHTTPD, 'AAI')
+
+    def is_json_empty(self, response):
+        logger.info("Enter is_json_empty: response.text: " + response.text)
+        if response.text is None or len(response.text) < 2:
+            return 'True'
+        return 'False'
+
+    def dmaap_collectorTimeStamp_receive(self, search, response):
+        return _find_element(search, response)
+
+    def AAI_Ipv4_receive(self, search, response):
+        return _find_element(search, response)
+
+    def AAI_Ipv6_receive(self, search, response):
+        return _find_element(search, response)
+
+    def check_pnf_ready(self):
+        if st in Simulator.prh_ready:
+            return 'true'
+        return 'false'
+
+def _setup(serverthread, servername, isrobotrun, module, portNum):
+    if serverthread is not None:
+        logger.console('{} Mockup Sever started'.format(servername))
+        return "true"
+
+    isrobotrun = True
+
+    module_handler = module.AAIHandler if servername is 'AAI' else module.DMaaPHandler 
+
+    module.run_server(module_handler, portNum)
+    try:
+        serverthread = threading.Thread(name='{}_HTTPServer'.format(servername), target=module.Httpd.serve_forever)
+        serverthread.start()
+        logger.console('{}  Mockup Sever started'.format(servername))
+        time.sleep(2)
+        return "true"
+    except Exception as e:
+        print (str(e))
+        return "false"
+
+def _shutdown(server, name):
+    if server is not None:
+        server.shutdown()
+        logger.console("{} Server shut down".format(name))
+        time.sleep(3)
+        return "true"
+    else:
+        return "false"
+
+def _find_element(search, response):
+    while response is not None:
+        json_data = str(response)
+        if search in json_data:
+            return 'true'
+    return 'false'
+
+if __name__ == '__main__':
+    lib = PrhLibrary()
+    ret = lib.setup_dmaap_server()
+    print ret
+    ret = lib.setup_aai_server()
+    print ret
+    time.sleep(10)
diff --git a/test/csit/tests/dcaegen2/prh_testcases/resources/PrhVariables.py b/test/csit/tests/dcaegen2/prh_testcases/resources/PrhVariables.py
new file mode 100644 (file)
index 0000000..882a4b9
--- /dev/null
@@ -0,0 +1,18 @@
+'''
+Created on Apr 27, 2018
+
+@author: mwagner9
+'''
+
+import os
+
+def GetEnvironmentVariable(envVarstr):
+    return os.environ.get(envVarstr)
+
+DMaaPHttpServerThread = None
+DMaaPHTTPD = None
+DMaaPIsRobotRun = False
+
+AAIHttpServerThread = None
+AAIHTTPD = None
+AAIIsRobotRun = False
diff --git a/test/csit/tests/dcaegen2/prh_testcases/resources/Simulator.py b/test/csit/tests/dcaegen2/prh_testcases/resources/Simulator.py
new file mode 100644 (file)
index 0000000..e746d5a
--- /dev/null
@@ -0,0 +1,91 @@
+'''
+Created on May 10, 2018
+
+@author: mwagner9
+'''
+
+import BaseHTTPServer
+import re
+import sys
+
+from robot.api import logger
+
+import PrhVariables
+
+Httpd = None
+prh_ready = ''
+
+class BaseHandler(BaseHTTPServer.BaseHTTPRequestHandler, object):
+    def do_GET(self, param1, param2):
+        """Serve a GET request."""
+        #prepare GET response
+        logger.console(self.raw_requestlinel)
+        json_string = param1
+        if re.search(param2, self.path) is not None:
+            self.send_response(200)
+            self.send_header("Content-type", "application/json")
+            self.end_headers()
+            self.wfile.write(json_string)
+
+class AAIHandler(BaseHandler):
+    def do_PATCH(self):
+        #prepare PATCH response
+        logger.console('========')
+        logger.console(self.raw_requestline)
+        logger.console('========')
+        if re.search('/aai/v12/network/pnfs/pnf/NOKQTFCOC540002E', self.path)is not None:
+            st = '{"ipaddress-v6-oam": "2001:0db8:85a3:0000:0000:8a2e:0370:7334","ipaddress-v4-oam": "11.22.33.156"}'
+            logger.console('========')
+            logger.console(self.raw_requestline)
+            logger.console('========')
+            self.send_response(200)
+
+    def do_GET(self):
+        param1 = '{"pnf-name":"NOKQTFCOC540002E", "pnf-id":"NOKQTFCOC540002E","ipaddress-v4-oam":"10.16.123.234","ipaddress-v6-oam":"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}'
+        param2 = '/aai/v12/network/pnfs/pnf/NOKQTFCOC540002E'
+        super(self.__class__, self).do_GET(param1, param2)
+
+class DMaaPHandler(BaseHandler):
+    def do_GET(self): 
+        param1 = '{"event": {"commonEventHeader": {"sourceId":"QTFCOC540002E", "startEpochMicrosec":1519837825682, "eventId":"QTFCOC540002E-reg", "nfcNamingCode":"5DU", "internalHeaderFields":{"collectorTimeStamp":"Fri, 04 27 2018 09:01:10 GMT"}, "eventType":"pnfRegistration", "priority":"Normal", "version":3, "reportingEntityName":"5GRAN_DU", "sequence":0, "domain":"other", "lastEpochMicrosec":1519837825682, "eventName":"pnfRegistration_5GDU", "sourceName":"5GRAN_DU", "nfNamingCode":"5GRAN"}, "otherFields": {"pnfLastServiceDate":1517206400, "pnfOamIpv6Address":"2001:0db8:85a3:0000:0000:8a2e:0370:7334", "pnfVendorName":"Nokia", "pnfModelNumber":"AJ02", "pnfFamily":"BBU", "pnfType":"AirScale", "otherFieldsVersion":1, "pnfOamIpv4Address":"10.16.123.234", "pnfSoftwareVersion":"v4.5.0.1", "pnfSerialNumber":"QTFCOC540002E", "pnfManufactureDate":1516406400}}}'
+        param2 = '/events/unauthenticated.SEC_OTHER_OUTPUT/OpenDCAE-c12/c12'
+        super(self.__class__, self).do_GET(param1, param2)
+
+    def do_POST(self):
+        #Prepare POST response
+        logger.console('========')
+        logger.console(self.raw_requestline)
+        logger.console('========')
+        if re.search('/events/unauthenticated.PNF_READY', self.path) is not None:
+            global prh_ready
+            prh_ready = '{"event":{"correlationID":"NOKQTFCOC540002E", "pnfOamIpv4Address":"10.16.123.234", "pnfOamIpv6Address":"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}}'
+            self.send_response(200)
+
+def run_server(HandlerClass, port, ServerClass = BaseHTTPServer.HTTPServer, protocol="HTTP/1.0"):
+    server_address = ('', port)
+
+    HandlerClass.protocol_version = protocol
+    httpd = ServerClass(server_address, HandlerClass)
+    
+    global Httpd
+    Httpd = httpd  
+    if HandlerClass is DMaaPHandler:
+        PrhVariables.DMaaPHTTPD = httpd
+    else:
+        PrhVariables.AAIHTTPD = httpd
+
+    sa = httpd.socket.getsockname()
+    print "Serving HTTP on", sa[0], "port", sa[1], "..."
+
+def _main_ (HandlerClass, port, ServerClass = BaseHTTPServer.HTTPServer, protocol="HTTP/1.0"):
+    server_address = ('', port)
+
+    HandlerClass.protocol_version = protocol
+    httpd = ServerClass(server_address, HandlerClass)
+
+    sa = httpd.socket.getsockname()
+    print "Serving HTTP on", sa[0], "port", sa[1], "..."
+    httpd.serve_forever()
+    
+if __name__ == '__main__':
+    _main_(DMaaPHandler, 3904)
diff --git a/test/csit/tests/dcaegen2/prh_testcases/resources/docker-compose.yml b/test/csit/tests/dcaegen2/prh_testcases/resources/docker-compose.yml
new file mode 100644 (file)
index 0000000..7d1fcd5
--- /dev/null
@@ -0,0 +1,29 @@
+version: '2'
+services:
+  prh:
+    image: nexus3.onap.org:10003/onap/org.onap.dcaegen2.services.prh.prh-app-server
+    command: >
+          --dmaap.dmaapConsumerConfiguration.dmaapPortNumber=2222
+          --dmaap.dmaapProducerConfiguration.dmaapPortNumber=2222
+          --aai.aaiClientConfiguration.aaiHostPortNumber=2222
+          --aai.aaiClientConfiguration.aaiProtocol=http
+    entrypoint:
+      - java
+      - -Dspring.profiles.active=dev
+      - -Dlogging.level.org.onap.dcaegen2.services.prh=TRACE
+      - -jar
+      - /opt/prh-app-server.jar
+    ports:
+      - "8100:8100"
+      - "8433:8433"
+    container_name: prh
+  dmaap_simulator:
+    build:
+      context: .
+      args:
+        - https_proxy=${HTTPS_PROXY}
+    ports:
+      - "2222:2222"
+    container_name: dmaap_simulator
+    depends_on:
+      - prh
\ No newline at end of file
diff --git a/test/csit/tests/dcaegen2/prh_testcases/resources/events/pnf_register_event.json b/test/csit/tests/dcaegen2/prh_testcases/resources/events/pnf_register_event.json
new file mode 100644 (file)
index 0000000..2351fa4
--- /dev/null
@@ -0,0 +1 @@
+{"event": {"commonEventHeader": {"sourceId":"QTFCOC540002E", "startEpochMicrosec":1519837825682, "eventId":"QTFCOC540002E-reg", "nfcNamingCode":"5DU", "internalHeaderFields":{"collectorTimeStamp":"Fri, 04 27 2018 09:01:10 GMT"}, "eventType":"pnfRegistration", "priority":"Normal", "version":3, "reportingEntityName":"5GRAN_DU", "sequence":0, "domain":"other", "lastEpochMicrosec":1519837825682, "eventName":"pnfRegistration_5GDU", "sourceName":"5GRAN_DU", "nfNamingCode":"5GRAN"}, "otherFields": {"pnfLastServiceDate":1517206400, "pnfOamIpv6Address":"2001:0db8:85a3:0000:0000:8a2e:0370:7334", "pnfVendorName":"Nokia", "pnfModelNumber":"AJ02", "pnfFamily":"BBU", "pnfType":"AirScale", "otherFieldsVersion":1, "pnfOamIpv4Address":"10.16.123.234", "pnfSoftwareVersion":"v4.5.0.1", "pnfSerialNumber":"QTFCOC540002E", "pnfManufactureDate":1516406400}}}
\ No newline at end of file
diff --git a/test/csit/tests/dcaegen2/prh_testcases/resources/prh_keywords.robot b/test/csit/tests/dcaegen2/prh_testcases/resources/prh_keywords.robot
new file mode 100644 (file)
index 0000000..1595cd4
--- /dev/null
@@ -0,0 +1,61 @@
+*** Settings ***
+Documentation     The main interface for interacting with PRH. It handles low level stuff like managing the http request library
+Library           PrhLibrary.py
+Library           RequestsLibrary
+
+*** Variables ***
+
+*** Keywords ***
+PRH Suite Setup
+    [Documentation]    Start DMaaP and AAI Mockup Server
+    ${ret}=    Setup DMaaP Server
+    Should Be Equal As Strings    ${ret}    true
+    ${ret}=    Setup AAI Server
+    Should Be Equal As Strings    ${ret}    true
+
+PRH Suite Shutdown
+    [Documentation]    Shutdown DMaaP and AAI Mockup Server
+    ${ret}=    Shutdown DMaap Server
+    Should Be Equal As Strings    ${ret}    true
+    ${ret}=    Shutdown AAI Server
+    Should Be Equal As Strings    ${ret}    true
+
+Get event from DMaaP
+    [Arguments]    ${ip}    ${endpoint}
+    [Documentation]    Get an event from DMaaP
+    ${url}=    Catenate    SEPARATOR=    ${ip}    ${endpoint}
+    Log    Creating session ${url}
+    Create Session    prh-d1    ${url}
+    ${resp}=    Get Request    prh-d1    ${url}
+    Log    Received response from dcae ${resp.json()}
+    [Return]    ${resp}
+
+Send patch from AAI
+    [Arguments]    ${ip}    ${endpoint}
+    [Documentation]    Get patch from AAI
+    ${url}=    Catenate    SEPARATOR=    ${ip}    ${endpoint}
+    Log    Creating session ${url}
+    Create Session    prh-d1    ${url}
+    ${resp}=    Patch Request    prh-d1    ${url}
+    Log    ${resp}
+    [Return]    ${resp}
+
+Get json from AAI
+    [Arguments]    ${ip}    ${endpoint}
+    [Documentation]    Get json from AAI
+    ${url}=    Catenate    SEPARATOR=    ${ip}    ${endpoint}
+    Log    Creating session ${url}
+    Create Session    prh-d1    ${url}
+    ${resp}=    Get Request    prh-d1    ${url}
+    Log    Received response from dcae ${resp.json()}
+    [Return]    ${resp}
+
+Post json to DMaaP
+    [Arguments]    ${ip}    ${endpoint}    ${PNF_READY}
+    [Documentation]    Get json from AAI
+    ${url}=    Catenate    SEPARATOR=    ${ip}    ${endpoint}
+    Log    Creating session ${url}
+    Create Session    prh-d1    ${url}
+    ${resp}=    Post Request    prh-d1    ${url}    data=${PNF_READY}
+    Log    ${resp}
+    [Return]    ${resp}
index c2ef403..ea061e6 100644 (file)
@@ -98,43 +98,6 @@ parameters:
   ###########################
 
   dcae_deployment_profile: R2MVP
-  dnsaas_config_enabled: false
-  dnsaas_region: RegionOne
-  dnsaas_keystone_url: http://192.168.1.11:5000/v3
-  dnsaas_tenant_name: ${OS_PROJECT_NAME}
-  dnsaas_username: ${OS_USERNAME}
-  dnsaas_password: ${OS_PASSWORD}
-  dcae_keystone_url: http://192.168.1.11:5000/v2.0
-  dcae_centos_7_image: centos7
-  dcae_domain: dcaeg2.onap.org
-  dcae_public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKXDgoo3+WOqcUG8/5uUbk81+yczgwC4Y8ywTmuQqbNxlY1oQ0YxdMUqUnhitSXs5S/yRuAVOYHwGg2mCs20oAINrP+mxBI544AMIb9itPjCtgqtE2EWo6MmnFGbHB4Sx3XioE7F4VPsh7japsIwzOjbrQe+Mua1TGQ5d4nfEOQaaglXLLPFfuc7WbhbJbK6Q7rHqZfRcOwAMXgDoBqlyqKeiKwnumddo2RyNT8ljYmvB6buz7KnMinzo7qB0uktVT05FH9Rg0CTWH5norlG5qXgP2aukL0gk1ph8iAt7uYLf1ktp+LJI2gaF6L0/qli9EmVCSLr1uJ38Q8CBflhkh
-  dcae_private_key: '-----BEGIN RSA PRIVATE KEY-----\n
-MIIEpQIBAAKCAQEAylw4KKN/ljqnFBvP+blG5PNfsnM4MAuGPMsE5rkKmzcZWNaE\n
-NGMXTFKlJ4YrUl7OUv8kbgFTmB8BoNpgrNtKACDaz/psQSOeOADCG/YrT4wrYKrR\n
-NhFqOjJpxRmxweEsd14qBOxeFT7Ie42qbCMMzo260HvjLmtUxkOXeJ3xDkGmoJVy\n
-yzxX7nO1m4WyWyukO6x6mX0XDsADF4A6AapcqinoisJ7pnXaNkcjU/JY2Jrwem7s\n
-+ypzIp86O6gdLpLVU9ORR/UYNAk1h+Z6K5Rual4D9mrpC9IJNaYfIgLe7mC39ZLa\n
-fiySNoGhei9P6pYvRJlQki69bid/EPAgX5YZIQIDAQABAoIBAQClDekkhI9ZqseC\n
-qFjPuKaxsizZMg+faJb6WSHLSxzyk1OSWY6F6FklgLeC8HW/fuLNYZyGOYDEsG20\n
-lMqL02Wdiy7OutS3oOS5iyzIf9a90HfFJi706el6RIpvINETcaXCS0T8tQrcS1Rd\n
-KqTaBRC6HXJGAPbBcvw3pwQSdskatU6a/Kt2a3x6DsqqinQcgEB/SbrDaJCUX9sb\n
-F2HVUwdq7aZK1Lk0ozr1FID9mrhjwWuQ6XC+vjG0FqtyXeMpR5iaQ73hex3FXQ8z\n
-OjkFbMwuHWSh1DSx70r5yFrrBqwQKnMsBqx4QDRf3fIENUnWviaL+n+gwcXA07af\n
-4kaNUFUtAoGBAPuNNRAGhZnyZ9zguns9PM56nmeMUikV5dPN2DTbQb79cpfV+7pC\n
-6PeSH/dTKFLz62d6qAM2EsNXQvewf8fipBVBRPsRqKOv+uepd01dHNy62I5B+zRm\n
-be9Kbe+EN60qdzvyPM+2hV6CnvGv1dirimS9pu6RrxD2Rmz1ectnJE+rAoGBAM3w\n
-UbSEemyZ6EKjck2RfdipzY0MNBnIZ2cUqHh8mmPXjdTLzpXb9vmPbHb01Qwo8MP+\n
-gMnTbTBOzyNAaHdIrCO9FHW6C85j3ot5Yzcr+EcBVcua+7KHU0Sgn44JNH8DisJ7\n
-Y63UP/1Xb4d1/QvHfxYy3WOvvRdVZ7pPo8JNX95jAoGAIe5CIg8/JizUZa7KeKUh\n
-9pgDleQPkQsrHQ6/AyIwFBsLwf9THSS5V+uV9D57SfUs46Bf2U8J6N90YQSlt8iS\n
-aWuManFPVgT+yxDIzt6obf2mCEpOIBtQ6N4ZRh2HhQwdWTCrkzkDdGQaHG+jYL6C\n
-xGPwiG2ON7OAfGIAM7eN5lECgYEAhoRLWlaOgRGnHKAWsYQvZ67CjTdDcPPuVu6v\n
-fMQnNMA/7JeTwV+E205L0wfpgZ/cZKmBBlQMJlnUA3q2wfO+PTnse1mjDJU/cGtB\n
-22/lJLxChlQdxGeQhGtGzUhF+hEeOhrO6WSSx7CtMRZoy6Dr6lwfMFZCdVNcBd6v\n
-YOOZk3ECgYEAseUKGb6E80XTVVNziyuiVbQCsI0ZJuRfqMZ2IIDQJU9u6AnGAway\n
-itqHbkGsmDT+4HUz01+1JKnnw42RdSrHdU/LaOonD+RIGqe2x800QXzqASKLdCXr\n
-y7RoiFqJtkdFQykzJemA+xOXvHLgKi/MXFsU90PCD0VJKLj8vwpX78Y=\n
------END RSA PRIVATE KEY-----'
 
   ################################
   #                              #
index 900b087..a14eeec 100644 (file)
@@ -92,43 +92,7 @@ parameters:
   #                         #
   ###########################
 
-  dnsaas_config_enabled: false
-  dnsaas_region: RegionOne
-  dnsaas_keystone_url: http://10.145.122.117:5000/v3
-  dnsaas_tenant_name: ${OS_PROJECT_NAME}
-  dnsaas_username: ${OS_USERNAME}
-  dnsaas_password: ${OS_PASSWORD}
-  dcae_keystone_url: http://10.145.122.117:5000/v2.0
-  dcae_centos_7_image: centos7
-  dcae_domain: dcaeg2.onap.org
-  dcae_public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKXDgoo3+WOqcUG8/5uUbk81+yczgwC4Y8ywTmuQqbNxlY1oQ0YxdMUqUnhitSXs5S/yRuAVOYHwGg2mCs20oAINrP+mxBI544AMIb9itPjCtgqtE2EWo6MmnFGbHB4Sx3XioE7F4VPsh7japsIwzOjbrQe+Mua1TGQ5d4nfEOQaaglXLLPFfuc7WbhbJbK6Q7rHqZfRcOwAMXgDoBqlyqKeiKwnumddo2RyNT8ljYmvB6buz7KnMinzo7qB0uktVT05FH9Rg0CTWH5norlG5qXgP2aukL0gk1ph8iAt7uYLf1ktp+LJI2gaF6L0/qli9EmVCSLr1uJ38Q8CBflhkh
-  dcae_private_key: '-----BEGIN RSA PRIVATE KEY-----\n
-MIIEpQIBAAKCAQEAylw4KKN/ljqnFBvP+blG5PNfsnM4MAuGPMsE5rkKmzcZWNaE\n
-NGMXTFKlJ4YrUl7OUv8kbgFTmB8BoNpgrNtKACDaz/psQSOeOADCG/YrT4wrYKrR\n
-NhFqOjJpxRmxweEsd14qBOxeFT7Ie42qbCMMzo260HvjLmtUxkOXeJ3xDkGmoJVy\n
-yzxX7nO1m4WyWyukO6x6mX0XDsADF4A6AapcqinoisJ7pnXaNkcjU/JY2Jrwem7s\n
-+ypzIp86O6gdLpLVU9ORR/UYNAk1h+Z6K5Rual4D9mrpC9IJNaYfIgLe7mC39ZLa\n
-fiySNoGhei9P6pYvRJlQki69bid/EPAgX5YZIQIDAQABAoIBAQClDekkhI9ZqseC\n
-qFjPuKaxsizZMg+faJb6WSHLSxzyk1OSWY6F6FklgLeC8HW/fuLNYZyGOYDEsG20\n
-lMqL02Wdiy7OutS3oOS5iyzIf9a90HfFJi706el6RIpvINETcaXCS0T8tQrcS1Rd\n
-KqTaBRC6HXJGAPbBcvw3pwQSdskatU6a/Kt2a3x6DsqqinQcgEB/SbrDaJCUX9sb\n
-F2HVUwdq7aZK1Lk0ozr1FID9mrhjwWuQ6XC+vjG0FqtyXeMpR5iaQ73hex3FXQ8z\n
-OjkFbMwuHWSh1DSx70r5yFrrBqwQKnMsBqx4QDRf3fIENUnWviaL+n+gwcXA07af\n
-4kaNUFUtAoGBAPuNNRAGhZnyZ9zguns9PM56nmeMUikV5dPN2DTbQb79cpfV+7pC\n
-6PeSH/dTKFLz62d6qAM2EsNXQvewf8fipBVBRPsRqKOv+uepd01dHNy62I5B+zRm\n
-be9Kbe+EN60qdzvyPM+2hV6CnvGv1dirimS9pu6RrxD2Rmz1ectnJE+rAoGBAM3w\n
-UbSEemyZ6EKjck2RfdipzY0MNBnIZ2cUqHh8mmPXjdTLzpXb9vmPbHb01Qwo8MP+\n
-gMnTbTBOzyNAaHdIrCO9FHW6C85j3ot5Yzcr+EcBVcua+7KHU0Sgn44JNH8DisJ7\n
-Y63UP/1Xb4d1/QvHfxYy3WOvvRdVZ7pPo8JNX95jAoGAIe5CIg8/JizUZa7KeKUh\n
-9pgDleQPkQsrHQ6/AyIwFBsLwf9THSS5V+uV9D57SfUs46Bf2U8J6N90YQSlt8iS\n
-aWuManFPVgT+yxDIzt6obf2mCEpOIBtQ6N4ZRh2HhQwdWTCrkzkDdGQaHG+jYL6C\n
-xGPwiG2ON7OAfGIAM7eN5lECgYEAhoRLWlaOgRGnHKAWsYQvZ67CjTdDcPPuVu6v\n
-fMQnNMA/7JeTwV+E205L0wfpgZ/cZKmBBlQMJlnUA3q2wfO+PTnse1mjDJU/cGtB\n
-22/lJLxChlQdxGeQhGtGzUhF+hEeOhrO6WSSx7CtMRZoy6Dr6lwfMFZCdVNcBd6v\n
-YOOZk3ECgYEAseUKGb6E80XTVVNziyuiVbQCsI0ZJuRfqMZ2IIDQJU9u6AnGAway\n
-itqHbkGsmDT+4HUz01+1JKnnw42RdSrHdU/LaOonD+RIGqe2x800QXzqASKLdCXr\n
-y7RoiFqJtkdFQykzJemA+xOXvHLgKi/MXFsU90PCD0VJKLj8vwpX78Y=\n
------END RSA PRIVATE KEY-----'
+  dcae_deployment_profile: R2MVP
 
   ################################
   #                              #
index b92221f..6903118 100644 (file)
@@ -99,43 +99,6 @@ parameters:
   ###########################
 
   dcae_deployment_profile: R2MVP
-  dnsaas_config_enabled: false
-  dnsaas_region: RegionOne
-  dnsaas_keystone_url: https://bdc1tlab01.research.att.com:5000/v3
-  dnsaas_tenant_name: ${OS_PROJECT_NAME}
-  dnsaas_username: ${OS_USERNAME}
-  dnsaas_password: ${OS_PASSWORD}
-  dcae_keystone_url: "https://bdc1tlab01.research.att.com:5000/v3"
-  dcae_centos_7_image: "centos7"
-  dcae_domain: dcaeg2.onap.org
-  dcae_public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKXDgoo3+WOqcUG8/5uUbk81+yczgwC4Y8ywTmuQqbNxlY1oQ0YxdMUqUnhitSXs5S/yRuAVOYHwGg2mCs20oAINrP+mxBI544AMIb9itPjCtgqtE2EWo6MmnFGbHB4Sx3XioE7F4VPsh7japsIwzOjbrQe+Mua1TGQ5d4nfEOQaaglXLLPFfuc7WbhbJbK6Q7rHqZfRcOwAMXgDoBqlyqKeiKwnumddo2RyNT8ljYmvB6buz7KnMinzo7qB0uktVT05FH9Rg0CTWH5norlG5qXgP2aukL0gk1ph8iAt7uYLf1ktp+LJI2gaF6L0/qli9EmVCSLr1uJ38Q8CBflhkh
-  dcae_private_key: '-----BEGIN RSA PRIVATE KEY-----\n
-MIIEpQIBAAKCAQEAylw4KKN/ljqnFBvP+blG5PNfsnM4MAuGPMsE5rkKmzcZWNaE\n
-NGMXTFKlJ4YrUl7OUv8kbgFTmB8BoNpgrNtKACDaz/psQSOeOADCG/YrT4wrYKrR\n
-NhFqOjJpxRmxweEsd14qBOxeFT7Ie42qbCMMzo260HvjLmtUxkOXeJ3xDkGmoJVy\n
-yzxX7nO1m4WyWyukO6x6mX0XDsADF4A6AapcqinoisJ7pnXaNkcjU/JY2Jrwem7s\n
-+ypzIp86O6gdLpLVU9ORR/UYNAk1h+Z6K5Rual4D9mrpC9IJNaYfIgLe7mC39ZLa\n
-fiySNoGhei9P6pYvRJlQki69bid/EPAgX5YZIQIDAQABAoIBAQClDekkhI9ZqseC\n
-qFjPuKaxsizZMg+faJb6WSHLSxzyk1OSWY6F6FklgLeC8HW/fuLNYZyGOYDEsG20\n
-lMqL02Wdiy7OutS3oOS5iyzIf9a90HfFJi706el6RIpvINETcaXCS0T8tQrcS1Rd\n
-KqTaBRC6HXJGAPbBcvw3pwQSdskatU6a/Kt2a3x6DsqqinQcgEB/SbrDaJCUX9sb\n
-F2HVUwdq7aZK1Lk0ozr1FID9mrhjwWuQ6XC+vjG0FqtyXeMpR5iaQ73hex3FXQ8z\n
-OjkFbMwuHWSh1DSx70r5yFrrBqwQKnMsBqx4QDRf3fIENUnWviaL+n+gwcXA07af\n
-4kaNUFUtAoGBAPuNNRAGhZnyZ9zguns9PM56nmeMUikV5dPN2DTbQb79cpfV+7pC\n
-6PeSH/dTKFLz62d6qAM2EsNXQvewf8fipBVBRPsRqKOv+uepd01dHNy62I5B+zRm\n
-be9Kbe+EN60qdzvyPM+2hV6CnvGv1dirimS9pu6RrxD2Rmz1ectnJE+rAoGBAM3w\n
-UbSEemyZ6EKjck2RfdipzY0MNBnIZ2cUqHh8mmPXjdTLzpXb9vmPbHb01Qwo8MP+\n
-gMnTbTBOzyNAaHdIrCO9FHW6C85j3ot5Yzcr+EcBVcua+7KHU0Sgn44JNH8DisJ7\n
-Y63UP/1Xb4d1/QvHfxYy3WOvvRdVZ7pPo8JNX95jAoGAIe5CIg8/JizUZa7KeKUh\n
-9pgDleQPkQsrHQ6/AyIwFBsLwf9THSS5V+uV9D57SfUs46Bf2U8J6N90YQSlt8iS\n
-aWuManFPVgT+yxDIzt6obf2mCEpOIBtQ6N4ZRh2HhQwdWTCrkzkDdGQaHG+jYL6C\n
-xGPwiG2ON7OAfGIAM7eN5lECgYEAhoRLWlaOgRGnHKAWsYQvZ67CjTdDcPPuVu6v\n
-fMQnNMA/7JeTwV+E205L0wfpgZ/cZKmBBlQMJlnUA3q2wfO+PTnse1mjDJU/cGtB\n
-22/lJLxChlQdxGeQhGtGzUhF+hEeOhrO6WSSx7CtMRZoy6Dr6lwfMFZCdVNcBd6v\n
-YOOZk3ECgYEAseUKGb6E80XTVVNziyuiVbQCsI0ZJuRfqMZ2IIDQJU9u6AnGAway\n
-itqHbkGsmDT+4HUz01+1JKnnw42RdSrHdU/LaOonD+RIGqe2x800QXzqASKLdCXr\n
-y7RoiFqJtkdFQykzJemA+xOXvHLgKi/MXFsU90PCD0VJKLj8vwpX78Y=\n
------END RSA PRIVATE KEY-----'
 
   ################################
   #                              #
index f094f65..6cd3b7d 100644 (file)
@@ -98,43 +98,6 @@ parameters:
   ###########################
 
   dcae_deployment_profile: R2MVP
-  dnsaas_config_enabled: true
-  dnsaas_region: RegionOne
-  dnsaas_keystone_url: http://10.12.25.5:5000/v3
-  dnsaas_tenant_name: ${OS_PROJECT_NAME}
-  dnsaas_username: ${OS_USERNAME}
-  dnsaas_password: ${OS_PASSWORD}
-  dcae_keystone_url: "http://10.0.14.1/api/multicloud-titanium_cloud/v0/pod25_RegionOne/identity/v2.0"
-  dcae_centos_7_image: CentOS-7
-  dcae_domain: dcaeg2.onap.org
-  dcae_public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKXDgoo3+WOqcUG8/5uUbk81+yczgwC4Y8ywTmuQqbNxlY1oQ0YxdMUqUnhitSXs5S/yRuAVOYHwGg2mCs20oAINrP+mxBI544AMIb9itPjCtgqtE2EWo6MmnFGbHB4Sx3XioE7F4VPsh7japsIwzOjbrQe+Mua1TGQ5d4nfEOQaaglXLLPFfuc7WbhbJbK6Q7rHqZfRcOwAMXgDoBqlyqKeiKwnumddo2RyNT8ljYmvB6buz7KnMinzo7qB0uktVT05FH9Rg0CTWH5norlG5qXgP2aukL0gk1ph8iAt7uYLf1ktp+LJI2gaF6L0/qli9EmVCSLr1uJ38Q8CBflhkh
-  dcae_private_key: '-----BEGIN RSA PRIVATE KEY-----\n
-MIIEpQIBAAKCAQEAylw4KKN/ljqnFBvP+blG5PNfsnM4MAuGPMsE5rkKmzcZWNaE\n
-NGMXTFKlJ4YrUl7OUv8kbgFTmB8BoNpgrNtKACDaz/psQSOeOADCG/YrT4wrYKrR\n
-NhFqOjJpxRmxweEsd14qBOxeFT7Ie42qbCMMzo260HvjLmtUxkOXeJ3xDkGmoJVy\n
-yzxX7nO1m4WyWyukO6x6mX0XDsADF4A6AapcqinoisJ7pnXaNkcjU/JY2Jrwem7s\n
-+ypzIp86O6gdLpLVU9ORR/UYNAk1h+Z6K5Rual4D9mrpC9IJNaYfIgLe7mC39ZLa\n
-fiySNoGhei9P6pYvRJlQki69bid/EPAgX5YZIQIDAQABAoIBAQClDekkhI9ZqseC\n
-qFjPuKaxsizZMg+faJb6WSHLSxzyk1OSWY6F6FklgLeC8HW/fuLNYZyGOYDEsG20\n
-lMqL02Wdiy7OutS3oOS5iyzIf9a90HfFJi706el6RIpvINETcaXCS0T8tQrcS1Rd\n
-KqTaBRC6HXJGAPbBcvw3pwQSdskatU6a/Kt2a3x6DsqqinQcgEB/SbrDaJCUX9sb\n
-F2HVUwdq7aZK1Lk0ozr1FID9mrhjwWuQ6XC+vjG0FqtyXeMpR5iaQ73hex3FXQ8z\n
-OjkFbMwuHWSh1DSx70r5yFrrBqwQKnMsBqx4QDRf3fIENUnWviaL+n+gwcXA07af\n
-4kaNUFUtAoGBAPuNNRAGhZnyZ9zguns9PM56nmeMUikV5dPN2DTbQb79cpfV+7pC\n
-6PeSH/dTKFLz62d6qAM2EsNXQvewf8fipBVBRPsRqKOv+uepd01dHNy62I5B+zRm\n
-be9Kbe+EN60qdzvyPM+2hV6CnvGv1dirimS9pu6RrxD2Rmz1ectnJE+rAoGBAM3w\n
-UbSEemyZ6EKjck2RfdipzY0MNBnIZ2cUqHh8mmPXjdTLzpXb9vmPbHb01Qwo8MP+\n
-gMnTbTBOzyNAaHdIrCO9FHW6C85j3ot5Yzcr+EcBVcua+7KHU0Sgn44JNH8DisJ7\n
-Y63UP/1Xb4d1/QvHfxYy3WOvvRdVZ7pPo8JNX95jAoGAIe5CIg8/JizUZa7KeKUh\n
-9pgDleQPkQsrHQ6/AyIwFBsLwf9THSS5V+uV9D57SfUs46Bf2U8J6N90YQSlt8iS\n
-aWuManFPVgT+yxDIzt6obf2mCEpOIBtQ6N4ZRh2HhQwdWTCrkzkDdGQaHG+jYL6C\n
-xGPwiG2ON7OAfGIAM7eN5lECgYEAhoRLWlaOgRGnHKAWsYQvZ67CjTdDcPPuVu6v\n
-fMQnNMA/7JeTwV+E205L0wfpgZ/cZKmBBlQMJlnUA3q2wfO+PTnse1mjDJU/cGtB\n
-22/lJLxChlQdxGeQhGtGzUhF+hEeOhrO6WSSx7CtMRZoy6Dr6lwfMFZCdVNcBd6v\n
-YOOZk3ECgYEAseUKGb6E80XTVVNziyuiVbQCsI0ZJuRfqMZ2IIDQJU9u6AnGAway\n
-itqHbkGsmDT+4HUz01+1JKnnw42RdSrHdU/LaOonD+RIGqe2x800QXzqASKLdCXr\n
-y7RoiFqJtkdFQykzJemA+xOXvHLgKi/MXFsU90PCD0VJKLj8vwpX78Y=\n
------END RSA PRIVATE KEY-----'
 
   ################################
   #                              #
index 105cd03..040f370 100644 (file)
@@ -18,6 +18,7 @@
         <docker.image.tag>latest</docker.image.tag>
         <dependency.directory.name>libs</dependency.directory.name>
         <dependency.directory.location>${project.build.directory}/${dependency.directory.name}</dependency.directory.location>
+        <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
     </properties>
 
   <dependencies>
               <artifactId>docker-maven-plugin</artifactId>
               <version>1.0.0</version>
               <configuration>
-                  <imageName>${project.name}</imageName>
+                  <imageName>${onap.nexus.dockerregistry.daily}/onap/${project.artifactId}</imageName>
                   <imageTags>${docker.image.tag}</imageTags>
+                  <serverId>${onap.nexus.dockerregistry.daily}</serverId>
                   <baseImage>openjdk:8-jdk-alpine</baseImage>
                   <cmd>java -cp  ${dependency.directory.name}/*:${project.build.finalName}.jar ${simulator.main.class}</cmd>
                   <resources>
index 27384dd..5e8b2d5 100755 (executable)
@@ -4,7 +4,7 @@ set -euo pipefail
 
 CONTAINER_NAME=pnf-simulator
 CONFIG_FILE_PATH=/config/body.json
-SIMULATOR_DOCKER_HUB=hub-name
+SIMULATOR_DOCKER_HUB=nexus3.onap.org:10003/onap
 SIMULATOR_TAG=latest
 
 function main(){
index b49c1ea..5805a88 100644 (file)
  * limitations under the License.
  * ============LICENSE_END=========================================================
  */
-
 package org.onap.pnfsimulator.message;
 
 public final class MessageConstants {
 
+    public static final String EVENT = "event";
     public static final String DOMAIN = "domain";
     public static final String EVENT_ID = "eventId";
     public static final String EVENT_TYPE = "eventType";
index 163d4e6..94f5fc1 100644 (file)
@@ -35,13 +35,12 @@ import static org.onap.pnfsimulator.message.MessageConstants.PRIORITY;
 import static org.onap.pnfsimulator.message.MessageConstants.SEQUENCE;
 import static org.onap.pnfsimulator.message.MessageConstants.START_EPOCH_MICROSEC;
 import static org.onap.pnfsimulator.message.MessageConstants.VERSION;
+import static org.onap.pnfsimulator.message.MessageConstants.EVENT;
 
 import java.util.Map;
 import java.util.UUID;
 
 import com.google.common.base.Preconditions;
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
 import org.json.JSONObject;
 
 public class MessageProvider {
@@ -72,8 +71,11 @@ public class MessageProvider {
             }
         });
 
-        root.put(COMMON_EVENT_HEADER, commonEventHeader);
-        root.put(OTHER_FIELDS, otherFields);
+        JSONObject event = new JSONObject();
+        event.put(COMMON_EVENT_HEADER, commonEventHeader);
+        event.put(OTHER_FIELDS, otherFields);
+
+        root.put(EVENT, event);
         return root;
     }
 
@@ -91,6 +93,7 @@ public class MessageProvider {
         commonEventHeader.put(START_EPOCH_MICROSEC, timestamp);
         commonEventHeader.put(INTERNAL_HEADER_FIELDS, new JSONObject());
         commonEventHeader.put(VERSION, 3);
+        commonEventHeader.put("functionalRole", "test_rola");
 
         return commonEventHeader;
     }
index 3854057..bfd222d 100644 (file)
@@ -1,22 +1,29 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * org.onap.integration
+ * ================================================================================
+ * Copyright (C) 2018 NOKIA 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.pnfsimulator.message;
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertThrows;
 import static org.junit.jupiter.api.Assertions.assertTrue;
-import static org.onap.pnfsimulator.message.MessageConstants.COMMON_EVENT_HEADER;
-import static org.onap.pnfsimulator.message.MessageConstants.DOMAIN;
-import static org.onap.pnfsimulator.message.MessageConstants.EVENT_ID;
-import static org.onap.pnfsimulator.message.MessageConstants.EVENT_TYPE;
-import static org.onap.pnfsimulator.message.MessageConstants.INTERNAL_HEADER_FIELDS;
-import static org.onap.pnfsimulator.message.MessageConstants.LAST_EPOCH_MICROSEC;
-import static org.onap.pnfsimulator.message.MessageConstants.OTHER_FIELDS;
-import static org.onap.pnfsimulator.message.MessageConstants.OTHER_FIELDS_VERSION;
-import static org.onap.pnfsimulator.message.MessageConstants.PNF_LAST_SERVICE_DATE;
-import static org.onap.pnfsimulator.message.MessageConstants.PNF_MANUFACTURE_DATE;
-import static org.onap.pnfsimulator.message.MessageConstants.PRIORITY;
-import static org.onap.pnfsimulator.message.MessageConstants.SEQUENCE;
-import static org.onap.pnfsimulator.message.MessageConstants.START_EPOCH_MICROSEC;
-import static org.onap.pnfsimulator.message.MessageConstants.VERSION;
+import static org.onap.pnfsimulator.message.MessageConstants.*;
 
 import java.util.UUID;
 import org.json.JSONObject;
@@ -45,9 +52,10 @@ public class MessageProviderTest {
     @Test
     public void createMessage_should_create_constant_message_when_no_params_specified() {
         JSONObject message = messageProvider.createMessage(new JSONObject());
+        JSONObject event = message.getJSONObject(EVENT);
 
-        JSONObject commonEventHeader = message.getJSONObject(COMMON_EVENT_HEADER);
-        JSONObject otherFields = message.getJSONObject(OTHER_FIELDS);
+        JSONObject commonEventHeader = event.getJSONObject(COMMON_EVENT_HEADER);
+        JSONObject otherFields = event.getJSONObject(OTHER_FIELDS);
 
         JSONObject expectedCommonEventHeader = generateConstantCommonEventHeader();
         JSONObject expectedOtherFields = generateConstantOtherFields();
@@ -69,8 +77,9 @@ public class MessageProviderTest {
         JSONObject params = new JSONObject(testParamsJson);
         JSONObject message = messageProvider.createMessage(params);
 
-        JSONObject commonEventHeader = message.getJSONObject(COMMON_EVENT_HEADER);
-        JSONObject otherFields = message.getJSONObject(OTHER_FIELDS);
+        JSONObject event = message.getJSONObject(EVENT);
+        JSONObject commonEventHeader = event.getJSONObject(COMMON_EVENT_HEADER);
+        JSONObject otherFields = event.getJSONObject(OTHER_FIELDS);
 
         assertEquals("pnfVal3", otherFields.getString("pnfKey3"));
         assertEquals("val1", commonEventHeader.getString("key1"));
index ababb1c..6b98358 100644 (file)
@@ -22,7 +22,7 @@ onap/ccsdk-odl-image,0.2-STAGING-latest
 onap/ccsdk-odlsli-image,0.2-STAGING-latest
 onap/champ,1.2-STAGING-latest
 onap/clamp,2.0-STAGING-latest
-onap/cli,2.0-STAGING-latest
+onap/cli,2.0.2
 onap/data-router,1.2-STAGING-latest
 onap/dmaap/buscontroller,latest
 onap/dmaap/dmaap-mr,1.1.4