summaryrefslogtreecommitdiffstats
path: root/src/test/resources/example
diff options
context:
space:
mode:
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