aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/resources')
-rw-r--r--src/test/resources/payloads/bulk2.json84
1 files changed, 84 insertions, 0 deletions
diff --git a/src/test/resources/payloads/bulk2.json b/src/test/resources/payloads/bulk2.json
new file mode 100644
index 0000000..9021700
--- /dev/null
+++ b/src/test/resources/payloads/bulk2.json
@@ -0,0 +1,84 @@
+{
+ "objects":[
+ {
+ "operation":"add",
+ "v1":{
+ "type":"vserver",
+ "properties":{
+ "vserver-id":"VSER1",
+ "vserver-name":"test-vserver",
+ "vserver-name2":"alt-test-vserver",
+ "vserver-selflink":"http://1.2.3.4/moreInfo",
+ "in-maint":false,
+ "is-closed-loop-disabled":false
+ }
+ }
+ },
+ {
+ "operation":"modify",
+ "v2":{
+ "id":"50bdab41-ad1c-4d00-952c-a0aa5d827811",
+ "type":"pserver",
+ "properties":{
+ "ptnii-equip-name":"e-name",
+ "equip-type":"server",
+ "hostname":"steve-host2",
+ "equip-vendor":"HP",
+ "equip-model":"DL380p-nd",
+ "fqdn":"myhost.onap.net",
+ "purpose":"my-purpose",
+ "ipv4-oam-address":"1.2.3.4"
+ }
+ }
+ },
+ {
+ "operation":"patch",
+ "v3":{
+ "id":"50bdab41-ad1c-4d00-952c-a0aa5d827811",
+ "type":"pserver",
+ "properties":{
+ "purpose":"new-purpose"
+ }
+ }
+ },
+ {
+ "operation":"delete",
+ "v4":{
+ "id":"50bdab41-ad1c-4d00-952c-a0aa5d827811",
+ "type":"pserver"
+ }
+ }
+ ],
+ "relationships":[
+ {
+ "operation":"add",
+ "e1":{
+ "type":"tosca.relationships.HostedOn",
+ "source":"$v1",
+ "target":"services/inventory/v13/pserver/1d326bc7-b985-492b-9604-0d5d1f06f908",
+ "properties":{
+ "contains-other-v":"NONE"
+ }
+ }
+ },
+ {
+ "operation":"modify",
+ "e2":{
+ "id":"50bdab41-ad1c-4d00-952c-a0aa5d827811",
+ "type":"tosca.relationships.HostedOn",
+ "source":"services/inventory/v13/vserver/50bdab41-ad1c-4d00-952c-a0aa5d827811",
+ "target":"services/inventory/v13/pserver/1d326bc7-b985-492b-9604-0d5d1f06f908",
+ "properties":{
+ "contains-other-v":"NONE"
+ }
+ }
+ },
+ {
+ "operation":"delete",
+ "e3":{
+ "id":"50bdab41-ad1c-4d00-952c-a0aa5d827811",
+ "type":"tosca.relationships.HostedOn"
+ }
+ }
+ ]
+}