Deduplicate server_group samples
This patch refactors the sample files of server_group notifications to use a common ServerGroupPayload sample data. Change-Id: I4e7531c180484a7b430d267153d185f1006543f0
This commit is contained in:
parent
78dfc7f1f5
commit
c3dc5c5c43
@ -0,0 +1,16 @@
|
||||
{
|
||||
"nova_object.version": "1.0",
|
||||
"nova_object.namespace": "nova",
|
||||
"nova_object.name": "ServerGroupPayload",
|
||||
"nova_object.data": {
|
||||
"uuid": "788608ec-ebdc-45c5-bc7f-e5f24ab92c80",
|
||||
"name": "test-server-group",
|
||||
"project_id": "6f70656e737461636b20342065766572",
|
||||
"user_id": "fake",
|
||||
"policies": [
|
||||
"anti-affinity"
|
||||
],
|
||||
"members": [],
|
||||
"hosts": null
|
||||
}
|
||||
}
|
@ -1,19 +1,6 @@
|
||||
{
|
||||
"priority": "INFO",
|
||||
"payload": {
|
||||
"nova_object.version": "1.0",
|
||||
"nova_object.namespace": "nova",
|
||||
"nova_object.name": "ServerGroupPayload",
|
||||
"nova_object.data": {
|
||||
"uuid": "788608ec-ebdc-45c5-bc7f-e5f24ab92c80",
|
||||
"name": "test-server-group",
|
||||
"project_id": "6f70656e737461636b20342065766572",
|
||||
"user_id": "fake",
|
||||
"policies": ["anti-affinity"],
|
||||
"members": [],
|
||||
"hosts": null
|
||||
}
|
||||
},
|
||||
"payload": {"$ref": "common_payloads/ServerGroupPayload.json#"},
|
||||
"event_type": "server_group.create",
|
||||
"publisher_id": "nova-api:fake-mini"
|
||||
}
|
||||
|
@ -1,19 +1,6 @@
|
||||
{
|
||||
"priority": "INFO",
|
||||
"payload": {
|
||||
"nova_object.version": "1.0",
|
||||
"nova_object.namespace": "nova",
|
||||
"nova_object.name": "ServerGroupPayload",
|
||||
"nova_object.data": {
|
||||
"uuid": "788608ec-ebdc-45c5-bc7f-e5f24ab92c80",
|
||||
"name": "test-server-group",
|
||||
"project_id": "6f70656e737461636b20342065766572",
|
||||
"user_id": "fake",
|
||||
"policies": ["anti-affinity"],
|
||||
"members": [],
|
||||
"hosts": null
|
||||
}
|
||||
},
|
||||
"payload": {"$ref": "common_payloads/ServerGroupPayload.json#"},
|
||||
"event_type": "server_group.delete",
|
||||
"publisher_id": "nova-api:fake-mini"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user