summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorJorge Hernandez <jorge.hernandez-herrero@att.com>2019-03-21 13:03:49 +0000
committerGerrit Code Review <gerrit@onap.org>2019-03-21 13:03:49 +0000
commitb359baf1253aa01bca7759f70f259206d99fff3a (patch)
tree56fb59c6082ab4f53dd649a9fed0dba60823fdef /main
parent430526c6a74773d1b681b4b4cb5ecf03af6e0c10 (diff)
parent6e55b1d7c3e53fb49c5e94406ff5db4cb9990c87 (diff)
Merge "Use Policy Translator abstract class"
Diffstat (limited to 'main')
-rw-r--r--main/src/test/resources/decisions/decision.guard.shoulddeny.input.json14
-rw-r--r--main/src/test/resources/decisions/decision.guard.shoulddeny.output.json3
-rw-r--r--main/src/test/resources/decisions/decision.guard.shouldpermit.input.json14
-rw-r--r--main/src/test/resources/decisions/decision.guard.shouldpermit.output.json3
4 files changed, 34 insertions, 0 deletions
diff --git a/main/src/test/resources/decisions/decision.guard.shoulddeny.input.json b/main/src/test/resources/decisions/decision.guard.shoulddeny.input.json
new file mode 100644
index 00000000..ba9b5543
--- /dev/null
+++ b/main/src/test/resources/decisions/decision.guard.shoulddeny.input.json
@@ -0,0 +1,14 @@
+{
+ "ONAPName": "Policy",
+ "ONAPComponent": "DCAE",
+ "ONAPInstance": "optional-tbd",
+ "action": "guard",
+ "resource": {
+ "guard": {
+ "actor": "SO",
+ "recipe": "scaleOut",
+ "clname": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
+ "vfcount" : "5"
+ }
+ }
+} \ No newline at end of file
diff --git a/main/src/test/resources/decisions/decision.guard.shoulddeny.output.json b/main/src/test/resources/decisions/decision.guard.shoulddeny.output.json
new file mode 100644
index 00000000..3752fe47
--- /dev/null
+++ b/main/src/test/resources/decisions/decision.guard.shoulddeny.output.json
@@ -0,0 +1,3 @@
+{
+ "status": "deny"
+} \ No newline at end of file
diff --git a/main/src/test/resources/decisions/decision.guard.shouldpermit.input.json b/main/src/test/resources/decisions/decision.guard.shouldpermit.input.json
new file mode 100644
index 00000000..324d495a
--- /dev/null
+++ b/main/src/test/resources/decisions/decision.guard.shouldpermit.input.json
@@ -0,0 +1,14 @@
+{
+ "ONAPName": "Policy",
+ "ONAPComponent": "DCAE",
+ "ONAPInstance": "optional-tbd",
+ "action": "guard",
+ "resource": {
+ "guard": {
+ "actor": "SO",
+ "recipe": "scaleOut",
+ "clname": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
+ "vfcount" : "1"
+ }
+ }
+} \ No newline at end of file
diff --git a/main/src/test/resources/decisions/decision.guard.shouldpermit.output.json b/main/src/test/resources/decisions/decision.guard.shouldpermit.output.json
new file mode 100644
index 00000000..a1939262
--- /dev/null
+++ b/main/src/test/resources/decisions/decision.guard.shouldpermit.output.json
@@ -0,0 +1,3 @@
+{
+ "status": "permit"
+} \ No newline at end of file