You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a system component,
I want a Function App to consume robot-output events from Event Hub and update Cosmos DB,
so that the system has a current readable representation of the simulated bot network.
Acceptance Criteria
Given the simulator publishes a robot-output event
When the Function App receives the event
Then it identifies the event type, bot ID, timestamp, schema version, and payload.
Given the event is valid
When the Function App processes it
Then it updates the corresponding bot document in the Cosmos DB Bots container.
Given the event is missing required metadata
When the Function App attempts to process it
Then the event is rejected, logged, or moved to an error-handling path.
Given the event has already been processed
When the Function App receives the same event again
Then the Function App does not create duplicate or incorrect updates.
Given the Function App successfully updates Cosmos DB
When processing completes
Then the bot read model reflects the latest accepted event data.
As a system component,
I want a Function App to consume robot-output events from Event Hub and update Cosmos DB,
so that the system has a current readable representation of the simulated bot network.
Acceptance Criteria
Given the simulator publishes a robot-output event
When the Function App receives the event
Then it identifies the event type, bot ID, timestamp, schema version, and payload.
Given the event is valid
When the Function App processes it
Then it updates the corresponding bot document in the Cosmos DB Bots container.
Given the event is missing required metadata
When the Function App attempts to process it
Then the event is rejected, logged, or moved to an error-handling path.
Given the event has already been processed
When the Function App receives the same event again
Then the Function App does not create duplicate or incorrect updates.
Given the Function App successfully updates Cosmos DB
When processing completes
Then the bot read model reflects the latest accepted event data.