From 5cc40b7c8debc6eecda03c351eef93f6e75b9bb6 Mon Sep 17 00:00:00 2001 From: sebdet Date: Tue, 2 Jun 2020 18:21:08 +0200 Subject: [PATCH] Removal of useless test files Removal of useless test files inherited from old tests removed. Issue-ID: CLAMP-854 Signed-off-by: sebdet Change-Id: I2f906c724b8e98ba40afbea8482a93e6b263ef29 --- .../tca-policy-json-editor-schema.json | 115 --------------------- .../operational-policy/json-policy-chain.json | 63 ----------- .../operational-policy/yaml-policy-chain-1.yaml | 45 -------- .../operational-policy/yaml-policy-chain-2.yaml | 45 -------- 4 files changed, 268 deletions(-) delete mode 100644 src/test/resources/example/json-editor-schema/tca-policy-json-editor-schema.json delete mode 100644 src/test/resources/example/operational-policy/json-policy-chain.json delete mode 100644 src/test/resources/example/operational-policy/yaml-policy-chain-1.yaml delete mode 100644 src/test/resources/example/operational-policy/yaml-policy-chain-2.yaml 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 91603972..00000000 --- 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 037b4d65..00000000 --- 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 19ee585b..00000000 --- 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: - version: 2.0.0 -policies: -- actor: APPC - description: restart Policy - the trigger (no parent) policy - created by CLDS - failure: - failure_exception: - failure_guard: FINAL_FAILURE_GUARD - failure_retries: - failure_timeout: - id: - name: restart Policy - operationsAccumulateParams: null - payload: null - recipe: restart - retry: 3 - success: - target: - resourceID: null - type: VM - timeout: 180 -- actor: APPC - description: rebuild Policy - triggered conditionally by restart Policy - created by CLDS - failure: - failure_exception: - failure_guard: FINAL_FAILURE_GUARD - failure_retries: - failure_timeout: - id: - name: rebuild Policy - operationsAccumulateParams: null - payload: null - recipe: rebuild - retry: 3 - success: - 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 19ee585b..00000000 --- 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: - version: 2.0.0 -policies: -- actor: APPC - description: restart Policy - the trigger (no parent) policy - created by CLDS - failure: - failure_exception: - failure_guard: FINAL_FAILURE_GUARD - failure_retries: - failure_timeout: - id: - name: restart Policy - operationsAccumulateParams: null - payload: null - recipe: restart - retry: 3 - success: - target: - resourceID: null - type: VM - timeout: 180 -- actor: APPC - description: rebuild Policy - triggered conditionally by restart Policy - created by CLDS - failure: - failure_exception: - failure_guard: FINAL_FAILURE_GUARD - failure_retries: - failure_timeout: - id: - name: rebuild Policy - operationsAccumulateParams: null - payload: null - recipe: rebuild - retry: 3 - success: - target: - resourceID: resource-id - type: VM - timeout: 180 -- 2.16.6