-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/implement update room status handler (#405)
* Implement UpdateRoomStatus handler logic and update unitary tests. * Create e2e test cases for room status event feature
- Loading branch information
1 parent
34ce520
commit 89b19c1
Showing
6 changed files
with
338 additions
and
31 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
e2e/framework/maestro/servermocks/events-forwarder-grpc-send-room-status-event-failure.json
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,25 @@ | ||
{ | ||
"service": "GRPCForwarder", | ||
"method": "SendRoomStatus", | ||
"input": { | ||
"contains": { | ||
"room": { | ||
"metadata":{ | ||
"eventMetadata1": "value1", | ||
"eventMetadata2": "true", | ||
"forwarderMetadata1": "value1", | ||
"forwarderMetadata2": "245", | ||
"roomType": "green", | ||
"mockIdentifier": "24db7925-fdc9-45ef-8b87-f1fff6a9eaaa" | ||
} | ||
}, | ||
"statusType": 3 | ||
} | ||
}, | ||
"output": { | ||
"data": { | ||
"code": 500, | ||
"message": "Internal server error from matchmaker" | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
e2e/framework/maestro/servermocks/events-forwarder-grpc-send-room-status-event-success.json
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,25 @@ | ||
{ | ||
"service": "GRPCForwarder", | ||
"method": "SendRoomStatus", | ||
"input": { | ||
"contains": { | ||
"room": { | ||
"metadata":{ | ||
"eventMetadata1": "value1", | ||
"eventMetadata2": "true", | ||
"forwarderMetadata1": "value1", | ||
"forwarderMetadata2": "245", | ||
"roomType": "green", | ||
"mockIdentifier": "9da046b8-3ef9-4f28-966d-d5c0cd1fe627" | ||
} | ||
}, | ||
"statusType": 3 | ||
} | ||
}, | ||
"output": { | ||
"data": { | ||
"code": 200, | ||
"message": "Event received with success" | ||
} | ||
} | ||
} |
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
Oops, something went wrong.