evoila / osb-checker-kotlin

This application is a generalized test program for service brokers. It runs rest calls against the defined service broker and checks if it behaves as expected to the service broker API specification. Tests are created dynamically based upon the service broker catalog or custom input by the operator.
https://www.evoila.de
Apache License 2.0
5 stars 6 forks source link

Send auth information on first request #32

Closed mattmcneeney closed 4 years ago

mattmcneeney commented 4 years ago

As per the RestAssured docs, we can use preemptive basic authentication:

This will send the basic authentication credential even before the server gives an unauthorized response in certain situations, thus reducing the overhead of making an additional connection. This is typically what you want to use in most situations unless you're testing the servers ability to challenge.

This will fix the issue raised in #30

What do you think?

fixes #30

joStrauss commented 4 years ago

Looks fine! Thank you for your contribution.