Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Integration tests for Playground CLI requests #731

@lucifercr07

Description

@lucifercr07

Description

DiceDB Playground is an interactive platform that allows users to experiment with DiceDB commands in a live environment, similar to the Go Playground. Users will be able to submit and execute commands directly through a web interface. The initial implementation will focus on enabling users to search for and trigger commands.
For more details about DiceDB playground you can check here.

As part of this task we need to enhance unit tests and integration tests for /cli API.
This task would be extension of #727

Details

Validation:

  • Validate the incoming request to ensure required parameters (key, value, COMMAND_NAME) are provided.
  • Ensure appropriate HTTP response codes are returned based on success or failure scenarios.

Testing:

  • Unit tests for the new /cli handler to cover success and failure scenarios.
  • Integration tests that send various DiceDB commands via the CLI endpoint and check for correct responses.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions