RobWin / assertj-swagger

A Swagger assertj test library which compares a contract-first Swagger YAML/JSON file with a code-first Swagger JSON
Apache License 2.0
171 stars 44 forks source link

Add new isEqualTo with auth for secured endpoints. #35

Closed jsfrench closed 6 years ago

jsfrench commented 6 years ago

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.

coveralls commented 6 years ago

Coverage Status

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

marcelstoer commented 6 years ago

Why only for isEqualTo but not for the others?

jsfrench commented 6 years ago

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