diff options
Diffstat (limited to 'ms/neng/src/test/resources')
-rw-r--r-- | ms/neng/src/test/resources/bad_policy_missing_recipe.json | 23 | ||||
-rw-r--r-- | ms/neng/src/test/resources/long_policy.json | 24 | ||||
-rw-r--r-- | ms/neng/src/test/resources/sample_policy.json | 217 | ||||
-rw-r--r-- | ms/neng/src/test/resources/vnf_and_vm_policy.json | 63 | ||||
-rw-r--r-- | ms/neng/src/test/resources/vnf_policy_no_seq.json | 24 | ||||
-rw-r--r-- | ms/neng/src/test/resources/vnf_policy_seq.json | 36 |
6 files changed, 387 insertions, 0 deletions
diff --git a/ms/neng/src/test/resources/bad_policy_missing_recipe.json b/ms/neng/src/test/resources/bad_policy_missing_recipe.json new file mode 100644 index 00000000..a4de9bb2 --- /dev/null +++ b/ms/neng/src/test/resources/bad_policy_missing_recipe.json @@ -0,0 +1,23 @@ +{ + "input":{ + "naming-model":{ + "policy-instance-name":"SDNC_Policy.Config_MS_VNFCNamingPolicy_no_seq", + "naming-models":[ + { + "nf-role":"vPE", + "naming-type":"VNF", + "name-operation":"", + "naming-properties":[ + { + "property-name":"COMPLEX" + }, + { + "property-name":"NF-NAMING-CODE", + "property-value":"xyz" + } + ] + } + ] + } + } +}
\ No newline at end of file diff --git a/ms/neng/src/test/resources/long_policy.json b/ms/neng/src/test/resources/long_policy.json new file mode 100644 index 00000000..168ca413 --- /dev/null +++ b/ms/neng/src/test/resources/long_policy.json @@ -0,0 +1,24 @@ +{ + "input":{ + "naming-model":{ + "policy-instance-name":"SDNC_Policy.Config_MS_VNFCNamingPolicy_no_seq", + "naming-models":[ + { + "nf-role":"vPE", + "naming-type":"VNF", + "naming-recipe":"COMPLEX|NF-NAMING-CODE|Field2|Field3|Field4", + "name-operation":"", + "naming-properties":[ + { + "property-name":"COMPLEX" + }, + { + "property-name":"NF-NAMING-CODE", + "property-value":"xyz" + } + ] + } + ] + } + } +}
\ No newline at end of file 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 diff --git a/ms/neng/src/test/resources/vnf_and_vm_policy.json b/ms/neng/src/test/resources/vnf_and_vm_policy.json new file mode 100644 index 00000000..720a2c3f --- /dev/null +++ b/ms/neng/src/test/resources/vnf_and_vm_policy.json @@ -0,0 +1,63 @@ +{ + "input":{ + "naming-model":{ + "policy-instance-name":"SDNC_Policy.Config_MS_VNF_VM_NamingPolicy", + "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,5)" + }, + { + "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", + "property-value":"ve1" + } + ] + }, + { + "nf-role":"vPE", + "naming-type":"VM", + "naming-recipe":"VNF_NAME|NFC_NAMING_CODE|SEQUENCE", + "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-value":"mts", + "property-operation":"substr(0,3)" + } + ] + } + ] + } + } +} diff --git a/ms/neng/src/test/resources/vnf_policy_no_seq.json b/ms/neng/src/test/resources/vnf_policy_no_seq.json new file mode 100644 index 00000000..806471b8 --- /dev/null +++ b/ms/neng/src/test/resources/vnf_policy_no_seq.json @@ -0,0 +1,24 @@ +{ + "input":{ + "naming-model":{ + "policy-instance-name":"SDNC_Policy.Config_MS_VNFCNamingPolicy_no_seq", + "naming-models":[ + { + "nf-role":"vPE", + "naming-type":"VNF", + "naming-recipe":"COMPLEX|NF-NAMING-CODE", + "name-operation":"", + "naming-properties":[ + { + "property-name":"COMPLEX" + }, + { + "property-name":"NF-NAMING-CODE", + "property-value":"xyz" + } + ] + } + ] + } + } +}
\ No newline at end of file diff --git a/ms/neng/src/test/resources/vnf_policy_seq.json b/ms/neng/src/test/resources/vnf_policy_seq.json new file mode 100644 index 00000000..4d7d26ec --- /dev/null +++ b/ms/neng/src/test/resources/vnf_policy_seq.json @@ -0,0 +1,36 @@ +{ + "input":{ + "naming-model":{ + "policy-instance-name":"SDNC_Policy.Config_MS_VNFNamingPolicy_seq", + "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,5)" + }, + { + "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", + "property-value":"ve1" + } + ] + } + ] + } + } +}
\ No newline at end of file |