diff options
Diffstat (limited to 'src/test/resources/clds/templates')
9 files changed, 188 insertions, 0 deletions
diff --git a/src/test/resources/clds/templates/dcae-deployment-template.json b/src/test/resources/clds/templates/dcae-deployment-template.json new file mode 100644 index 000000000..d4891747e --- /dev/null +++ b/src/test/resources/clds/templates/dcae-deployment-template.json @@ -0,0 +1,9 @@ +{ + "serviceTypeId": "???", + "inputs": { + "aaiEnrichmentHost": "10.0.1.1", + "enableAAIEnrichment": "true", + "subscriberHostName": "10.0.11.1", + "publisherHostName": "10.0.11.1" + } +} diff --git a/src/test/resources/clds/templates/dcae-template.json b/src/test/resources/clds/templates/dcae-template.json new file mode 100644 index 000000000..b76baf2d4 --- /dev/null +++ b/src/test/resources/clds/templates/dcae-template.json @@ -0,0 +1,26 @@ +{ + "properties": { + "service_name": "", + "service_ids": [ + ], + "vnf_ids": [ + ], + "location_ids": [ + ] + }, + "template": { + "tca": { + "dcae": { + "inputTopic": "", + "outputTopic": "", + "closedLoopControlName": "", + "closedLoopEventClient": "configuration.dcae.microservice.tca.xml", + "policyName": "", + "policyScope": "DCAE", + "policyVersion": "v0.0.1", + "serviceConfigurations": { + } + } + } + } +} diff --git a/src/test/resources/clds/templates/globalProperties.json b/src/test/resources/clds/templates/globalProperties.json new file mode 100644 index 000000000..067063ea2 --- /dev/null +++ b/src/test/resources/clds/templates/globalProperties.json @@ -0,0 +1,104 @@ +{ + "tca": { + "tname": "New_Set", + "tcaInt": "1", + "tcaVio": "1", + "eventName": { + "vLoadBalancer": "vLoadBalancer", + "vFirewallBroadcastPackets": "vFirewallBroadcastPackets", + "Measurement_vGMUX":"Measurement_vGMUX" + }, + "fieldPathM": { + "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value": "packetLossRate", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta":"receivedTotalPacketsDelta" + }, + "operator": { + ">": "GREATER", + ">=": "GREATER_OR_EQUAL", + "=": "EQUAL", + "<=": "LESS_OR_EQUAL", + "<": "LESS" + }, + "opsPolicy": { + "POLICY_test_X": "POLICY_test_X", + "POLICY_test_Y": "POLICY_test_Y" + }, + "controlLoopSchemaType": { + "": "", + "VM": "VM", + "VNF": "VNF" + }, + "closedLoopEventStatus": { + "": "", + "ONSET": "ONSET", + "ABATED": "ABATED" + } + }, + "global": { + "actionSet": { + "vnfRecipe": "VNF" + }, + "location": { + "DC1": "Data Center 1", + "DC2": "Data Center 2", + "DC3": "Data Center 3" + } + }, + "policy": { + "pname": "0", + "timeout": 345, + "vnfRecipe": { + "": "", + "Restart": "Restart", + "Rebuild": "Rebuild", + "Migrate": "Migrate", + "HealthCheck": "Health Check", + "ModifyConfig": "Modify Config", + "VF Module Create":"VF Module Create", + "VF Module Delete":"VF Module Delete", + "Reroute":"Reroute" + }, + "maxRetries": "3", + "retryTimeLimit": 180, + "resource": { + "vCTS": "vCTS", + "v3CDB": "v3CDB", + "vUDR": "vUDR", + "vCOM": "vCOM", + "vRAR": "vRAR", + "vLCS": "vLCS", + "vUDR-BE": "vUDR-BE", + "vDBE": "vDBE" + }, + "parentPolicyConditions": { + "Failure_Retries": "Failure: Max Retries Exceeded", + "Failure_Timeout": "Failure: Time Limit Exceeded", + "Failure_Guard": "Failure: Guard", + "Failure_Exception": "Failure: Exception", + "Failure": "Failure: Other", + "Success": "Success" + } + }, + "shared": { + "byService": { + "": { + "vf": { + "": "" + }, + "location": { + "": "" + }, + "alarmCondition": { + "": "" + } + } + }, + "byVf": { + "": { + "vfc": { + "": "" + } + } + } + } +} diff --git a/src/test/resources/clds/templates/sdc-decode-service_ids.json b/src/test/resources/clds/templates/sdc-decode-service_ids.json new file mode 100644 index 000000000..9e26dfeeb --- /dev/null +++ b/src/test/resources/clds/templates/sdc-decode-service_ids.json @@ -0,0 +1 @@ +{}
\ No newline at end of file diff --git a/src/test/resources/clds/templates/sdc-template.json b/src/test/resources/clds/templates/sdc-template.json new file mode 100644 index 000000000..9e26dfeeb --- /dev/null +++ b/src/test/resources/clds/templates/sdc-template.json @@ -0,0 +1 @@ +{}
\ No newline at end of file diff --git a/src/test/resources/clds/templates/tca-policy-template.json b/src/test/resources/clds/templates/tca-policy-template.json new file mode 100644 index 000000000..559aacb29 --- /dev/null +++ b/src/test/resources/clds/templates/tca-policy-template.json @@ -0,0 +1,19 @@ +{ + "service": "tca_policy", + "version": "1.1.0", + "location": "SampleServiceLocation", + "configName": "SampleConfigName", + "uuid": "test", + "policyScope": "CLAMP", + "templateVersion": "OpenSource.version.1", + "policyName": "MicroService", + "description": "MicroService Policy", + "priority": "1", + "riskType": "SampleRiskType", + "riskLevel": "1", + "guard": "False", + "content": { + "tca_policy": { + } + } +} diff --git a/src/test/resources/clds/templates/tca-template.json b/src/test/resources/clds/templates/tca-template.json new file mode 100644 index 000000000..892fc0d62 --- /dev/null +++ b/src/test/resources/clds/templates/tca-template.json @@ -0,0 +1,14 @@ +{ + "domain": "measurementsForVfScaling", + "metricsPerEventName": [ + { + "eventName": "???", + "controlLoopSchemaType": "VNF", + "policyScope": "DCAE", + "policyName": "???", + "policyVersion": "v0.0.1", + "thresholds": [ + ] + } + ] +} diff --git a/src/test/resources/clds/templates/tca-thresholds-template.json b/src/test/resources/clds/templates/tca-thresholds-template.json new file mode 100644 index 000000000..b67e96321 --- /dev/null +++ b/src/test/resources/clds/templates/tca-thresholds-template.json @@ -0,0 +1,9 @@ +{ + "closedLoopControlName": "???", + "version": "1.0.2", + "fieldPath": "?????", + "thresholdValue": 0, + "direction": "???", + "severity": "MAJOR", + "closedLoopEventStatus": "???" +} diff --git a/src/test/resources/clds/templates/ui-location-default.json b/src/test/resources/clds/templates/ui-location-default.json new file mode 100644 index 000000000..c0043d988 --- /dev/null +++ b/src/test/resources/clds/templates/ui-location-default.json @@ -0,0 +1,5 @@ +{ + "DC1": "Data Center 1", + "DC2": "Data Center 2", + "DC3": "Data Center 3" +} |