aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/components
diff options
context:
space:
mode:
authorxuegao <xg353y@intl.att.com>2020-04-21 18:05:44 +0200
committerxuegao <xg353y@intl.att.com>2020-04-22 10:12:34 +0200
commitc4f54bf8f8520cb270ad3d7f8c91e12a951f138a (patch)
treebb16683a68e5b1cdcd2bcfb59cc7518ef8cfbbf8 /ui-react/src/components
parent334ad564f969cb9d3ba1e47f5722ea43c71ee63f (diff)
Guard policy clean up
Remove guard policy related code, so that it will not be shown or created in the legacy policy UI. Issue-ID: CLAMP-825 Change-Id: I6c654fef9fd9df810fd48600c91ffef96db371cd Signed-off-by: xuegao <xg353y@intl.att.com>
Diffstat (limited to 'ui-react/src/components')
-rw-r--r--ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.test.js1
-rw-r--r--ui-react/src/components/dialogs/OperationalPolicy/template.json15
-rw-r--r--ui-react/src/components/dialogs/Policy/PolicyModal.test.js1
-rw-r--r--ui-react/src/components/loop_viewer/logs/LoopLogs.test.js6
-rw-r--r--ui-react/src/components/loop_viewer/logs/__snapshots__/LoopLogs.test.js.snap2
-rw-r--r--ui-react/src/components/loop_viewer/svg/LoopSvg.test.js1
6 files changed, 4 insertions, 22 deletions
diff --git a/ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.test.js b/ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.test.js
index c10c6ff0a..4c11ce535 100644
--- a/ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.test.js
+++ b/ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.test.js
@@ -41,7 +41,6 @@ describe('Verify OperationalPolicyModal', () => {
"operationalPolicies": [{
"name": "OPERATIONAL_h2NMX_v1_0_ResourceInstanceName1_tca",
"configurationsJson": {
- "guard_policies": {},
"operational_policy": {
"controlLoop": {},
"policies": []
diff --git a/ui-react/src/components/dialogs/OperationalPolicy/template.json b/ui-react/src/components/dialogs/OperationalPolicy/template.json
index 6b4477f88..7c9dc0cdd 100644
--- a/ui-react/src/components/dialogs/OperationalPolicy/template.json
+++ b/ui-react/src/components/dialogs/OperationalPolicy/template.json
@@ -3,21 +3,6 @@
{
"name": "OPERATIONAL_LOOP_NAME",
"configurationsJson": {
- "guard_policies": {
- "guard.minmax.new": {
- "recipe": "",
- "clname": "LOOP_NAME",
- "actor": "",
- "targets": "",
- "min": "",
- "max": "",
- "limit": "",
- "timeUnits": "",
- "timeWindow": "",
- "guardActiveStart": "00:00:00Z",
- "guardActiveEnd": "00:00:01Z"
- }
- },
"operational_policy": {
"controlLoop": {
"trigger_policy": "new",
diff --git a/ui-react/src/components/dialogs/Policy/PolicyModal.test.js b/ui-react/src/components/dialogs/Policy/PolicyModal.test.js
index bf0b91096..d4021c97c 100644
--- a/ui-react/src/components/dialogs/Policy/PolicyModal.test.js
+++ b/ui-react/src/components/dialogs/Policy/PolicyModal.test.js
@@ -42,7 +42,6 @@ describe('Verify PolicyModal', () => {
"operationalPolicies": [{
"name": "OPERATIONAL_h2NMX_v1_0_ResourceInstanceName1_tca",
"configurationsJson": {
- "guard_policies": {},
"operational_policy": {
"controlLoop": {},
"policies": []
diff --git a/ui-react/src/components/loop_viewer/logs/LoopLogs.test.js b/ui-react/src/components/loop_viewer/logs/LoopLogs.test.js
index 5c478f6a5..3b7fd413a 100644
--- a/ui-react/src/components/loop_viewer/logs/LoopLogs.test.js
+++ b/ui-react/src/components/loop_viewer/logs/LoopLogs.test.js
@@ -34,7 +34,7 @@ describe('Verify LoopLogs', () => {
"id": 1,
"logType": "INFO",
"logComponent": "CLAMP",
- "message": "Operational and Guard policies UPDATED",
+ "message": "Operational policies UPDATED",
"logInstant": "2019-07-08T09:44:37Z"
}
]
@@ -51,14 +51,14 @@ describe('Verify LoopLogs', () => {
"id": 1,
"logType": "INFO",
"logComponent": "CLAMP",
- "message": "Operational and Guard policies UPDATED",
+ "message": "Operational policies UPDATED",
"logInstant": "2019-07-08T09:44:37Z"
},
{
"id": 2,
"logType": "INFO",
"logComponent": "CLAMP",
- "message": "Operational and Guard policies UPDATED",
+ "message": "Operational policies UPDATED",
"logInstant": "2019-07-08T09:44:50Z"
}
]
diff --git a/ui-react/src/components/loop_viewer/logs/__snapshots__/LoopLogs.test.js.snap b/ui-react/src/components/loop_viewer/logs/__snapshots__/LoopLogs.test.js.snap
index 174a3202b..25736d2e9 100644
--- a/ui-react/src/components/loop_viewer/logs/__snapshots__/LoopLogs.test.js.snap
+++ b/ui-react/src/components/loop_viewer/logs/__snapshots__/LoopLogs.test.js.snap
@@ -51,7 +51,7 @@ exports[`Verify LoopLogs Test the render method 1`] = `
"logComponent": "CLAMP",
"logInstant": "2019-07-08T09:44:37Z",
"logType": "INFO",
- "message": "Operational and Guard policies UPDATED",
+ "message": "Operational policies UPDATED",
}
}
/>
diff --git a/ui-react/src/components/loop_viewer/svg/LoopSvg.test.js b/ui-react/src/components/loop_viewer/svg/LoopSvg.test.js
index 17f4b3563..e54b500f5 100644
--- a/ui-react/src/components/loop_viewer/svg/LoopSvg.test.js
+++ b/ui-react/src/components/loop_viewer/svg/LoopSvg.test.js
@@ -39,7 +39,6 @@ describe('Verify LoopSvg', () => {
"operationalPolicies": [{
"name": "OPERATIONAL_h2NMX_v1_0_ResourceInstanceName1_tca",
"configurationsJson": {
- "guard_policies": {},
"operational_policy": {
"controlLoop": {},
"policies": []