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

add constructor to allow proxy configuration #2284

Merged
merged 2 commits into from
Aug 30, 2023

Conversation

ysknkd
Copy link
Contributor

@ysknkd ysknkd commented Aug 28, 2023

Description

Adds a constructor to the ZTSClient for configuring a proxy.

try {
client = new ZTSClient("http://localhost:4080/",
"invalid-proxy", "iaas.athenz", "ci", siaProvider);
fail();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please add test cases where

  • domainName
  • serviceName
  • siaProvider

are null and IllegalArgumentException is thrown.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the feedback. I have added the tests.

Signed-off-by: Yosuke Nakada <yonakada@yahoo-corp.jp>
Signed-off-by: Yosuke Nakada <yonakada@yahoo-corp.jp>
Copy link
Collaborator

@havetisyan havetisyan left a comment

Choose a reason for hiding this comment

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

Thanks

@havetisyan havetisyan merged commit aa74590 into AthenZ:master Aug 30, 2023
2 checks passed
@ysknkd ysknkd deleted the feat/add-proxy-conf branch August 31, 2023 00:26
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.

2 participants