-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDDS-1254. Fix failure in TestOzoneManagerHttpServer & TestStorageCon… #598
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
Conversation
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.
Should the last assert in line 113-114 be changed to for http?
Assert.assertTrue(implies(policy.isHttpEnabled(),
!canAccess("http", server.getHttpAddress())));
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.
Suggested assert seems incorrect coz if http is enabled than client should succeed in binding to http port.
We do assert if http is enabled, server should bind to http port and client should be able to connect to it. in L105
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.
Thanks for the clarification. Then in line 113-114, we are trying to validate that if https is not enabled, you can't use http scheme to access an https address?
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.
Same as below
xiaoyuyao
left a comment
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.
LGTM overall. Just have one minor question inline.
|
💔 -1 overall
This message was automatically generated. |
…tainerManagerHttpServer. Contributed by Ajay Kumar.
|
💔 -1 overall
This message was automatically generated. |
|
+1 for the patch. |
…tainerManagerHttpServer. Contributed by Ajay Kumar.