-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
conformance-tester: Add subscribe-event-destroy test
- Loading branch information
1 parent
ae4e1d0
commit 1d241e1
Showing
2 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"name": "subscribe-event-destroy", | ||
"description": "Subscribe to an event and destroy the service", | ||
"long-description": "A client subscribes to an event and destroys the service. The broker must send a service-destroyed-event message.", | ||
"message-types": [ | ||
"destroy-service", | ||
"service-destroyed-event", | ||
"subscribe-event" | ||
], | ||
"steps": [ | ||
{ | ||
"type": "connect" | ||
}, | ||
{ | ||
"type": "create-object", | ||
"uuid": "00000000-0000-0000-0000-000000000001", | ||
"cookie": "set:object" | ||
}, | ||
{ | ||
"type": "create-service", | ||
"object-cookie": "get:object", | ||
"service-uuid": "00000000-0000-0000-0000-000000000002", | ||
"service-cookie": "set:service", | ||
"version": 0 | ||
}, | ||
{ | ||
"type": "send", | ||
"message": "subscribe-event", | ||
"serial": 0, | ||
"service-cookie": "get:service", | ||
"event": 1 | ||
}, | ||
{ | ||
"type": "receive-unordered", | ||
"messages": [ | ||
{ | ||
"message": "subscribe-event", | ||
"service-cookie": "get:service", | ||
"event": 1 | ||
}, | ||
{ | ||
"message": "subscribe-event-reply", | ||
"serial": 0, | ||
"result": "ok" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "send", | ||
"message": "destroy-service", | ||
"serial": 0, | ||
"cookie": "get:service" | ||
}, | ||
{ | ||
"type": "receive-unordered", | ||
"messages": [ | ||
{ | ||
"message": "destroy-service-reply", | ||
"serial": 0, | ||
"result": "ok" | ||
}, | ||
{ | ||
"message": "service-destroyed-event", | ||
"object-uuid": "00000000-0000-0000-0000-000000000001", | ||
"object-cookie": "get:object", | ||
"service-uuid": "00000000-0000-0000-0000-000000000002", | ||
"service-cookie": "get:service" | ||
} | ||
] | ||
} | ||
] | ||
} |