Merge "Fix entityId bug"
authorChristophe Closset <christophe.closset@intl.att.com>
Thu, 23 Apr 2020 08:49:36 +0000 (08:49 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 23 Apr 2020 08:49:36 +0000 (08:49 +0000)
1  2 
src/main/java/org/onap/clamp/policy/operational/OperationalPolicyRepresentationBuilder.java
src/test/resources/tosca/operational-policy-cds-payload-with-list.json
src/test/resources/tosca/operational-policy-json-schema.json

            }
          }
        }
 -    },
 -    "guard_policies": {
 -      "type": "array",
 -      "format": "tabs-top",
 -      "title": "Associated Guard policies",
 -      "items": {
 -        "headerTemplate": "{{self.policy-id}} - {{self.content.recipe}}",
 -        "anyOf": [
 -          {
 -            "title": "Guard MinMax",
 -            "type": "object",
 -            "properties": {
 -              "policy-id": {
 -                "type": "string",
 -                "default": "guard.minmax.new",
 -                "pattern": "^(guard.minmax\\..*)$"
 -              },
 -              "content": {
 -                "properties": {
 -                  "actor": {
 -                    "type": "string",
 -                    "enum": [
 -                      "APPC",
 -                      "SO",
 -                      "VFC",
 -                      "SDNC",
 -                      "SDNR"
 -                    ]
 -                  },
 -                  "recipe": {
 -                    "type": "string",
 -                    "enum": [
 -                      "Restart",
 -                      "Rebuild",
 -                      "Migrate",
 -                      "Health-Check",
 -                      "ModifyConfig",
 -                      "VF Module Create",
 -                      "VF Module Delete",
 -                      "Reroute"
 -                    ]
 -                  },
 -                  "targets": {
 -                    "type": "string",
 -                    "default": ".*"
 -                  },
 -                  "clname": {
 -                    "type": "string",
 -                    "template": "{{loopName}}",
 -                    "watch": {
 -                      "loopName": "operational_policy.controlLoop.controlLoopName"
 -                    }
 -                  },
 -                  "guardActiveStart": {
 -                    "type": "string",
 -                    "default": "00:00:00Z"
 -                  },
 -                  "guardActiveEnd": {
 -                    "type": "string",
 -                    "default": "10:00:00Z"
 -                  },
 -                  "min": {
 -                    "type": "string",
 -                    "default": "0"
 -                  },
 -                  "max": {
 -                    "type": "string",
 -                    "default": "1"
 -                  }
 -                }
 -              }
 -            }
 -          },
 -          {
 -            "title": "Guard Frequency",
 -            "type": "object",
 -            "properties": {
 -              "policy-id": {
 -                "type": "string",
 -                "default": "guard.frequency.new",
 -                "pattern": "^(guard.frequency\\..*)$"
 -              },
 -              "content": {
 -                "properties": {
 -                  "actor": {
 -                    "type": "string",
 -                    "enum": [
 -                      "APPC",
 -                      "SO",
 -                      "VFC",
 -                      "SDNC",
 -                      "SDNR"
 -                    ]
 -                  },
 -                  "recipe": {
 -                    "type": "string",
 -                    "enum": [
 -                      "Restart",
 -                      "Rebuild",
 -                      "Migrate",
 -                      "Health-Check",
 -                      "ModifyConfig",
 -                      "VF Module Create",
 -                      "VF Module Delete",
 -                      "Reroute"
 -                    ]
 -                  },
 -                  "targets": {
 -                    "type": "string",
 -                    "default": ".*"
 -                  },
 -                  "clname": {
 -                    "type": "string",
 -                    "template": "{{loopName}}",
 -                    "watch": {
 -                      "loopName": "operational_policy.controlLoop.controlLoopName"
 -                    }
 -                  },
 -                  "guardActiveStart": {
 -                    "type": "string",
 -                    "default": "00:00:00Z"
 -                  },
 -                  "guardActiveEnd": {
 -                    "type": "string",
 -                    "default": "10:00:00Z"
 -                  },
 -                  "limit": {
 -                    "type": "string"
 -                  },
 -                  "timeWindow": {
 -                    "type": "string"
 -                  },
 -                  "timeUnits": {
 -                    "type": "string",
 -                    "enum": [
 -                      "minute",
 -                      "hour",
 -                      "day",
 -                      "week",
 -                      "month",
 -                      "year"
 -                    ]
 -                  }
 -                }
 -              }
 -            }
 -          }
 -        ]
 -      }
      }
    }
- }
+ }