summaryrefslogtreecommitdiffstats
path: root/src/test/resources/example
diff options
context:
space:
mode:
authorSébastien Determe <sebastien.determe@intl.att.com>2020-06-03 09:08:41 +0000
committerGerrit Code Review <gerrit@onap.org>2020-06-03 09:08:41 +0000
commit0f7e41d4572c0a7f972bbc8c8e64604e89d7f3af (patch)
tree3cf148b588fe796205b023056b53de14d26ebc39 /src/test/resources/example
parentb5424bcbe2f12bc0c209cca7227e7a46483c310b (diff)
parent5cc40b7c8debc6eecda03c351eef93f6e75b9bb6 (diff)
Merge "Removal of useless test files"
Diffstat (limited to 'src/test/resources/example')
-rw-r--r--src/test/resources/example/json-editor-schema/tca-policy-json-editor-schema.json115
-rw-r--r--src/test/resources/example/operational-policy/json-policy-chain.json63
-rw-r--r--src/test/resources/example/operational-policy/yaml-policy-chain-1.yaml45
-rw-r--r--src/test/resources/example/operational-policy/yaml-policy-chain-2.yaml45
4 files changed, 0 insertions, 268 deletions
diff --git a/src/test/resources/example/json-editor-schema/tca-policy-json-editor-schema.json b/src/test/resources/example/json-editor-schema/tca-policy-json-editor-schema.json
deleted file mode 100644
index 91603972d..000000000
--- a/src/test/resources/example/json-editor-schema/tca-policy-json-editor-schema.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "schema": {
- "uniqueItems": "true",
- "format": "tabs",
- "type": "array",
- "title": "Thresholds",
- "items": {
- "type": "object",
- "title": "Thresholds",
- "required": [
- "dummySignatures"
- ],
- "properties": {
- "severity": {
- "propertyOrder": 1004,
- "title": "event severity or priority",
- "type": "string",
- "enum": [
- "CRITICAL",
- "MAJOR",
- "MINOR",
- "WARNING",
- "NORMAL"
- ]
- },
- "fieldPath": {
- "propertyOrder": 1003,
- "title": "Field Path",
- "type": "string"
- },
- "thresholdValue": {
- "propertyOrder": 1005,
- "default": 0,
- "maximum": 65535,
- "title": "ThresholdValue",
- "type": "integer",
- "minimum": 0
- },
- "dummySignatures": {
- "propertyOrder": 1007,
- "uniqueItems": "true",
- "format": "tabs-top",
- "title": "dummy Signatures",
- "type": "array",
- "items": {
- "type": "object",
- "required": [
- "signature",
- "traversal"
- ],
- "properties": {
- "signature": {
- "propertyOrder": 1008,
- "required": [
- "filter_clause"
- ],
- "properties": {
- "filter_clause": {
- "propertyOrder": 20002,
- "title": "Filter Clause",
- "type": "string",
- "enum": [
- "OR",
- "AND",
- "NOT"
- ]
- }
- }
- },
- "traversal": {
- "propertyOrder": 1009,
- "required": [
- "traversal"
- ],
- "properties": {
- "traversal": {
- "propertyOrder": 20003,
- "title": "Dummy Traverse",
- "type": "string",
- "enum": [
- "ONE",
- "TWO",
- "THREE"
- ]
- }
- }
- }
- }
- }
- },
- "closedLoopControlName": {
- "propertyOrder": 1001,
- "title": "A UNIQUE string identifying the Closed Loop ID this event is for.",
- "type": "string"
- },
- "version": {
- "propertyOrder": 1006,
- "minLength": 1,
- "title": "Version for the closed loop message",
- "type": "string"
- },
- "direction": {
- "propertyOrder": 1002,
- "type": "string",
- "enum": [
- "LESS",
- "LESS_OR_EQUAL",
- "GREATER",
- "GREATER_OR_EQUAL"
- ]
- }
- }
- }
- }
-} \ No newline at end of file
diff --git a/src/test/resources/example/operational-policy/json-policy-chain.json b/src/test/resources/example/operational-policy/json-policy-chain.json
deleted file mode 100644
index 037b4d656..000000000
--- a/src/test/resources/example/operational-policy/json-policy-chain.json
+++ /dev/null
@@ -1,63 +0,0 @@
-[
- {
- "name": "pname",
- "value": "healthCheck Policy"
- },
- {
- "name": "pid",
- "value": "1"
- },
- {
- "name": "timeout",
- "value": "180"
- },
- {
- "policyConfigurations": [
- [
- {
- "name": "recipe",
- "value": [
- "healthCheck"
- ]
- },
- {
- "name": "maxRetries",
- "value": [
- "3"
- ]
- },
- {
- "name": "retryTimeLimit",
- "value": [
- "180"
- ]
- },
- {
- "name": "_id",
- "value": [
- "789875c1-e788-432f-9a76-eac8ed889734"
- ]
- },
- {
- "name": "parentPolicy",
- "value": [
- ""
- ]
- },
- {
- "name": "actor",
- "value": [
- "APPC"
- ]
- },
- {
- "name": "targetResourceId",
- "value": [
- "cdb69724-57d5-4a22-b96c-4c345150fd0e"
- ]
- }
-
- ]
- ]
- }
-] \ No newline at end of file
diff --git a/src/test/resources/example/operational-policy/yaml-policy-chain-1.yaml b/src/test/resources/example/operational-policy/yaml-policy-chain-1.yaml
deleted file mode 100644
index 19ee585b9..000000000
--- a/src/test/resources/example/operational-policy/yaml-policy-chain-1.yaml
+++ /dev/null
@@ -1,45 +0,0 @@
-controlLoop:
- abatement: false
- controlLoopName: controlNameTest
- resources: null
- services: null
- timeout: 500
- trigger_policy: <generatedId>
- version: 2.0.0
-policies:
-- actor: APPC
- description: restart Policy - the trigger (no parent) policy - created by CLDS
- failure: <generatedId>
- failure_exception: <generatedId>
- failure_guard: FINAL_FAILURE_GUARD
- failure_retries: <generatedId>
- failure_timeout: <generatedId>
- id: <generatedId>
- name: restart Policy
- operationsAccumulateParams: null
- payload: null
- recipe: restart
- retry: 3
- success: <generatedId>
- target:
- resourceID: null
- type: VM
- timeout: 180
-- actor: APPC
- description: rebuild Policy - triggered conditionally by restart Policy - created by CLDS
- failure: <generatedId>
- failure_exception: <generatedId>
- failure_guard: FINAL_FAILURE_GUARD
- failure_retries: <generatedId>
- failure_timeout: <generatedId>
- id: <generatedId>
- name: rebuild Policy
- operationsAccumulateParams: null
- payload: null
- recipe: rebuild
- retry: 3
- success: <generatedId>
- target:
- resourceID: resource-id
- type: VM
- timeout: 180
diff --git a/src/test/resources/example/operational-policy/yaml-policy-chain-2.yaml b/src/test/resources/example/operational-policy/yaml-policy-chain-2.yaml
deleted file mode 100644
index 19ee585b9..000000000
--- a/src/test/resources/example/operational-policy/yaml-policy-chain-2.yaml
+++ /dev/null
@@ -1,45 +0,0 @@
-controlLoop:
- abatement: false
- controlLoopName: controlNameTest
- resources: null
- services: null
- timeout: 500
- trigger_policy: <generatedId>
- version: 2.0.0
-policies:
-- actor: APPC
- description: restart Policy - the trigger (no parent) policy - created by CLDS
- failure: <generatedId>
- failure_exception: <generatedId>
- failure_guard: FINAL_FAILURE_GUARD
- failure_retries: <generatedId>
- failure_timeout: <generatedId>
- id: <generatedId>
- name: restart Policy
- operationsAccumulateParams: null
- payload: null
- recipe: restart
- retry: 3
- success: <generatedId>
- target:
- resourceID: null
- type: VM
- timeout: 180
-- actor: APPC
- description: rebuild Policy - triggered conditionally by restart Policy - created by CLDS
- failure: <generatedId>
- failure_exception: <generatedId>
- failure_guard: FINAL_FAILURE_GUARD
- failure_retries: <generatedId>
- failure_timeout: <generatedId>
- id: <generatedId>
- name: rebuild Policy
- operationsAccumulateParams: null
- payload: null
- recipe: rebuild
- retry: 3
- success: <generatedId>
- target:
- resourceID: resource-id
- type: VM
- timeout: 180