aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/policy/suite1/oofpolicy_HPA_R1.template
diff options
context:
space:
mode:
authorMichael Mokry <mm117s@att.com>2018-04-02 00:25:06 -0500
committerMichael Mokry <mm117s@att.com>2018-04-12 07:26:00 -0500
commitc8c6422f9980299886e3b03d08a532ad5a39caf2 (patch)
tree4c7837689aa65185645af9b8c09c5e8a6c762e2e /test/csit/tests/policy/suite1/oofpolicy_HPA_R1.template
parentbdd171db75cc52ad30b48d91b708cc8d08bbc1cc (diff)
Optimization Policy CSIT tests
This CSIT tests requires an entry in the database. I modified the sql script in the PE packages. That commit should be merged in order for this to pass I had the wrong variable name for ${policy_name} in the template. I fixed this but I am not able to test locally so I cant be 100% sure this will resolve the issue I added fixes for the 2 failures. I think the createPolicy failed due to an invalid model but I see the model being inserted in the pap log. The only thing I can think of is that it does not like the camel case for hpaPolicy and the all caps for CSIT version so I just made these all lower case in the request template Change-Id: I59fe578c57ab927fe356071a5b4a28bd987fafd7 Issue-ID: POLICY-639 Signed-off-by: Michael Mokry <mm117s@att.com>
Diffstat (limited to 'test/csit/tests/policy/suite1/oofpolicy_HPA_R1.template')
-rw-r--r--test/csit/tests/policy/suite1/oofpolicy_HPA_R1.template6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/csit/tests/policy/suite1/oofpolicy_HPA_R1.template b/test/csit/tests/policy/suite1/oofpolicy_HPA_R1.template
new file mode 100644
index 000000000..3a170b207
--- /dev/null
+++ b/test/csit/tests/policy/suite1/oofpolicy_HPA_R1.template
@@ -0,0 +1,6 @@
+{
+ "configBody": "{\"service\":\"hpaPolicy\",\"policyName\":\"testWorkingTOSCA\",\"description\":\"testing\",\"templateVersion\":\"OpenSource.version.1\",\"version\":\"CSIT\",\"priority\":\"5\",\"riskType\":\"SampleRiskType\",\"riskLevel\":\"3\",\"guard\":\"False\",\"content\":{\"identity\":\"testIdentity\",\"policyScope\":[\"test1\",\"test2\",\"test3\"],\"policyType\":\"hpaPolicy\",\"resources\":\"testResources1\",\"flavorFeatures\":[{\"flavorLabel\":\"testFlavor\",\"flavorProperties\":[{\"score\":\"testScore\",\"featureAttributes\":[{\"unit\":\"testUnit\",\"attribute\":\"teatFeatureAttribute\",\"value\":\"testValue\",\"operator\":\"any\"}],\"mandatory\":\"testMandatory\",\"hpaFeature\":\"testHAPFeature\",\"architecture\":\"testArch\"}]}]}}",
+ "policyConfigType": "Optimization",
+ "policyName": "${policy_name}",
+ "onapName": "OOF"
+}