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 new isEqualTo with auth for secured endpoints. #35

Merged
merged 2 commits into from
Mar 6, 2018

Conversation

jsfrench
Copy link
Contributor

Added a new isEqualTo method which supports authorization for accessing Swagger definitions stored at non-public URLs, e.g. private APIs on SwaggerHub.
It may be better not to require io.swagger.models.auth.AuthorizationValue as input to the assertj-swagger API, see what you think anyway.

@jsfrench jsfrench changed the title Add new isEqualTo with Auth Add new isEqualTo with auth for secured endpoints. Feb 20, 2018
@coveralls
Copy link

coveralls commented Feb 20, 2018

Coverage Status

Coverage increased (+1.4%) to 89.063% when pulling b77a762 on jsfrench:feature/addAuth into 6f2ea68 on RobWin:master.

* @throws AssertionError if the actual value is not equal to the given one or if the actual value is {@code null}..
*/
public SwaggerAssert isEqualTo(String expectedLocation, List<AuthorizationValue> auths) {

Copy link
Contributor

Choose a reason for hiding this comment

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

Why the extra blank line?

@marcelstoer
Copy link
Contributor

Why only for isEqualTo but not for the others?

@jsfrench
Copy link
Contributor Author

Thanks for comments @marcelstoer, update covers satisfiesContract also, which I think is all?

@RobWin RobWin merged commit f5ab2e6 into RobWin:master Mar 6, 2018
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.

4 participants