aboutsummaryrefslogtreecommitdiffstats
path: root/ms/neng/src/test/resources/sample_policy.json
diff options
context:
space:
mode:
authorBT2983 <BT2983@att.com>2018-07-23 15:17:35 -0600
committerBT2983 <BT2983@att.com>2018-07-23 15:17:35 -0600
commit3437d0aa56f7c0630cbd1b9074579f7e0f8a44ae (patch)
tree09f0f0223f240185bd5704c64877756501f94cbf /ms/neng/src/test/resources/sample_policy.json
parent5a398289dee4b666528aa77f4e38f9c68d35b254 (diff)
Adding naming micro-service code - tests.
Unit tests. Change-Id: I14176a8b47764d5e308258fd9b24bf3e301d04d5 Issue-ID: CCSDK-342 Signed-off-by: BT2983 <BT2983@att.com>
Diffstat (limited to 'ms/neng/src/test/resources/sample_policy.json')
-rw-r--r--ms/neng/src/test/resources/sample_policy.json217
1 files changed, 217 insertions, 0 deletions
diff --git a/ms/neng/src/test/resources/sample_policy.json b/ms/neng/src/test/resources/sample_policy.json
new file mode 100644
index 00000000..2bb63122
--- /dev/null
+++ b/ms/neng/src/test/resources/sample_policy.json
@@ -0,0 +1,217 @@
+{
+ "input":{
+ "naming-model":{
+ "policy-instance-name":"1806NameGenerationPolicyForSRIOV",
+ "naming-models":[
+ {
+ "nf-role":"vPE",
+ "naming-type":"VNF",
+ "naming-recipe":"COMPLEX|SEQUENCE|NF_NAMING_CODE",
+ "name-operation":"",
+ "naming-properties":[
+ {
+ "property-name":"COMPLEX",
+ "property-operation":"substr(0,4)"
+ },
+ {
+ "property-name":"SEQUENCE",
+ "increment-sequence":{
+ "scope":"ENTIRETY",
+ "start-value":"001",
+ "max":"zzz",
+ "increment":"1",
+ "sequence-type":"alpha-numeric",
+ "length":"3"
+ }
+ },
+ {
+ "property-name":"NF_NAMING_CODE"
+ }
+ ]
+ },
+ {
+ "nf-role":"vPE",
+ "naming-type":"VM",
+ "naming-recipe":"VNF_NAME|SEQUENCE|NFC_NAMING_CODE",
+ "name-operation":"",
+ "naming-properties":[
+ {
+ "property-name":"VNF_NAME"
+ },
+ {
+ "property-name":"SEQUENCE",
+ "increment-sequence":{
+ "scope":"ENTIRETY",
+ "start-value":"001",
+ "max":"999",
+ "increment":"1",
+ "sequence-type":"numeric",
+ "length":"3"
+ }
+ },
+ {
+ "property-name":"NFC_NAMING_CODE",
+ "property-operation":"substr(1,3)"
+ }
+ ]
+ },
+ {
+ "nf-role":"vPE",
+ "naming-type":"VNFC",
+ "naming-recipe":"VNF_NAME|SEQUENCE|NFC_NAMING_CODE",
+ "name-operation":"",
+ "naming-properties":[
+ {
+ "property-name":"VNF_NAME"
+ },
+ {
+ "property-name":"SEQUENCE",
+ "increment-sequence":{
+ "scope":"ENTIRETY",
+ "start-value":"001",
+ "max":"999",
+ "increment":"1",
+ "sequence-type":"numeric",
+ "length":"3"
+ }
+ },
+ {
+ "property-name":"NFC_NAMING_CODE",
+ "property-operation":"substr(1,3)"
+ }
+ ]
+ },
+ {
+ "nf-role":"vPE",
+ "naming-type":"VF-MODULE",
+ "naming-recipe":"VNF_NAME|DELIMITER|VF_MODUEL_LABLE|DELIMITER|VF_MODULE_TYPE|DELIMITER|SEQUENCE",
+ "name-operation":"",
+ "naming-properties":[
+ {
+ "property-name":"VNF_NAME"
+ },
+ {
+ "property-name":"DELIMITER",
+ "property-value":"_"
+ },
+ {
+ "property-name":"VF_MODUEL_LABLE"
+ },
+ {
+ "property-name":"VF_MODUEL_TYPE"
+ },
+ {
+ "property-name":"SEQUENCE",
+ "increment-sequence":{
+ "scope":"PRECEEDING",
+ "start-value":"01",
+ "max":"99",
+ "increment":"1",
+ "sequence-type":"numeric",
+ "length":"2"
+ }
+ }
+ ]
+ },
+ {
+ "nf-role":"vPE",
+ "naming-type":"VOLUME_GROUP",
+ "naming-recipe":"VF-MODULE_NAME|DELIMITER|CONSTANT",
+ "name-operation":"",
+ "naming-properties":[
+ {
+ "property-name":"VF-MODULE_NAME"
+ },
+ {
+ "property-name":"DELIMITER",
+ "property-value":"_"
+ },
+ {
+ "property-name":"CONSTANT",
+ "property-value":"volumegroup"
+ }
+ ]
+ },
+ {
+ "nf-role":"vPE",
+ "naming-type":"VOLUME",
+ "naming-recipe":"VOLUME_GROUP_NAME|DELIMITER|CONSTANT|DELIMITER|SEQUENCE",
+ "name-operation":"",
+ "naming-properties":[
+ {
+ "property-name":"VOLUME_GROUP_NAME"
+ },
+ {
+ "property-name":"DELIMITER",
+ "property-value":"_"
+ },
+ {
+ "property-name":"CONSTANT",
+ "property-value":"volume"
+ },
+ {
+ "property-name":"SEQUENCE",
+ "increment-sequence":{
+ "scope":"PRECEEDING",
+ "start-value":"01",
+ "max":"99",
+ "increment":"1",
+ "sequence-type":"numeric",
+ "length":"2"
+ }
+ }
+ ]
+ },
+ {
+ "nf-role":"vPE",
+ "naming-type":"AFFINITY",
+ "naming-recipe":"VNF_NAME|DELIMITER|CONSTANT",
+ "name-operation":"",
+ "naming-properties":[
+ {
+ "property-name":"VNF_NAME"
+ },
+ {
+ "property-name":"DELIMITER",
+ "property-value":"_"
+ },
+ {
+ "property-name":"CONSTANT",
+ "property-value":"affinity"
+ }
+ ]
+ },
+ {
+ "nf-role":"vPE",
+ "naming-type":"INTERNAL_NETWORK",
+ "naming-recipe":"VNF_NAME|DELIMITER|CONSTANT|SEQUENCE",
+ "name-operation":"",
+ "naming-properties":[
+ {
+ "property-name":"VNF_NAME"
+ },
+ {
+ "property-name":"DELIMITER",
+ "property-value":"_"
+ },
+ {
+ "property-name":"CONSTANT",
+ "property-value":"INT"
+ },
+ {
+ "property-name":"SEQUENCE",
+ "increment-sequence":{
+ "scope":"PRECEEDING",
+ "start-value":"01",
+ "max":"99",
+ "increment":"1",
+ "sequence-type":"numeric",
+ "length":"2"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+} \ No newline at end of file