Skip to content
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

#734 : Http Commands Error Messages Test #900

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

svkaizoku
Copy link

@svkaizoku svkaizoku commented Oct 1, 2024

Fixes: #734

I will be splitting the implementation of this issue in multiple PR's. This PR contains tests similar to check_type_test.go
Note: There are changes to extra files due to linting

@svkaizoku svkaizoku changed the title Integration tests for error messages Http Commands Error Messages Test Oct 1, 2024
@svkaizoku svkaizoku marked this pull request as ready for review October 1, 2024 21:59
@svkaizoku
Copy link
Author

@lucifercr07 @pratikpandey21 , feel free to review this whenever free. Thanks 😄

@svkaizoku svkaizoku changed the title Http Commands Error Messages Test #734 : Http Commands Error Messages Test Oct 1, 2024
@apoorvyadav1111
Copy link
Contributor

Hi @svkaizoku, thanks for the changes. I have reviewed the HTTP test file. However, I suggest reverting the changes due to code indentation. Those changes deviate from the primary objective of the PR and its issue. We can take that up as a separate issue or PR if needed. This is just a suggestion.
Thanks.

@svkaizoku
Copy link
Author

svkaizoku commented Oct 2, 2024

Hi @svkaizoku, thanks for the changes. I have reviewed the HTTP test file. However, I suggest reverting the changes due to code indentation. Those changes deviate from the primary objective of the PR and its issue. We can take that up as a separate issue or PR if needed. This is just a suggestion. Thanks.

Hey @apoorvyadav1111 , thanks for the suggestion. It makes perfectly sense to not combine this in this PR. I was just following the contributing guidelines https://github.com/DiceDB/dice/blob/master/CONTRIBUTING.md#code-formatting. Maybe we should just format the files that we change. Maybe we should add that explicitly to the documentation.

I have reverted the changes btw. Feel free to take a look at it again. Thanks :)

time.Sleep(tc.delays[i])
}
result, _ := exec.FireCommand(cmd)
if len(tc.assertType) == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking up my suggestion. Yes, the code format for the file was not as per the requirements, but there are lot of other PRs with the same change, I am sure one of those will have it fixed before this is merged. I have question with thisif condition, given that none of the test cases have an empty array.
Thanks

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clarification. Let me remove that if here also. Thanks for pointing out.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will still be keeping the switch case for the asserts for furture use cases.

Copy link
Contributor

@apoorvyadav1111 apoorvyadav1111 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Left one clarifying question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Http Integration Tests: Create tests to support HTTP
2 participants