Skip to content

Maintain Bot Read Model from Robot Output Events #64

@DakotaCondos

Description

@DakotaCondos

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels
No fields configured for User Story.

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions