This repository was archived by the owner on Jun 23, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Integration tests for Playground CLI requests #731
Copy link
Copy link
Open
DiceDB/playground-mono
#62Labels
Description
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.