-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Http Integration Tests: Create tests to support HTTP(5) #738
Comments
@pratikpandey21 can I take this up? |
I don't have the permissions to assign you, but please go ahead and start @karandixit10 |
@pratikpandey21 for FLUSHDB command will the body be empty: {Command: "FLUSHDB", Body: map[string]interface{}{}}, |
Yes, for commands that don't need arguments, it will be empty. |
@pratikpandey21 And it's passing test for this when expecting float64(2) as response. Not sure why this is happening? |
Isn't that how redis will behave? First SADD: If the value is not yet in the set, Redis will add the value to the set and return 1, indicating that one element was successfully added.
If you have confusion regarding behavior of any command, please validate behavior in redis. Float is because of JSON parsing, you could reference existing tests for the same |
Thanks for clarifying this, I'll refer to the redis behavior also. |
And why adding member and member 1, returns 2 is because the HTTP parser doesn't know how to handle "member". Please check how the parsing is working for HTTP requests in rediscmdadapter file. You will need to add member as a priority key and that should make it work |
This issue involves creating the below test cases for HTTP as well:
Source: integration_tests/commands/async/
Steps:
If you need to do anything custom to support HTTP, let @pratikpandey21 @lucifercr07 know.
The text was updated successfully, but these errors were encountered: