-
Notifications
You must be signed in to change notification settings - Fork 28
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
Fixed middleware and dao test of auth plugin #28
Conversation
I tried this test, and it failed for me.
This is what I did... I started an ESv7 server inside docker
Then I built arc
Then I ran arc
And then, running the tests gave me the above error. If it works for you, let me know what I need to do to fix this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a comment unrelated to these changes.
@jeet-parekh let me check, well initially the whole file was giving an error and none of the tests were working due to one function which not which wasn't implemented I just implemented that method, now at-least 10 out of 16 tests are passing. I am working on making other tests work
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any changes after the last review. Did you change anything?
TestBasicAuthWithJWToken
and TestBasicAuthWithJWTokenWithoutUser
still fail for me. Those are the only two which failed for me earlier as well. All the other tests worked.
@jeet-parekh other than the jwtToken test all other authentication tests (dao and middleware)are fixed and are now correctly working and passing as well. I am confused with how to solve jwtTokenAuthentication and I am unable to fix, I am still trying to fix it. |
@abhinavraj23, I didn't know that the other tests were failing. Good thing that you fixed it! I'm confused about the JWT tests as well. Do you understand the error?
If no, but if you understand what the test is supposed to be doing... try to write a new test function entirely on your own (doesn't need to follow the "structure" of the previous tests). It would be easier that way. |
@jeet-parekh I have solved the issue and the jwt test are working fine!!, now all the 16 tests of authentication are working and are passing.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! The tests pass now. LGTM
What does this do / why do we need it?
The middleware test was giving an error as the getRolePermission method was not implemented. I
have implemented the method and now the tests are working.
What should your reviewer look out for in this PR?
Check if the implemented method is correct and if I have made a valid change or not
Which issue(s) does this PR fix?
Partially fixes one part of #17