pmorie / osb-broker-lib

A go library for developing an Open Service Broker
Apache License 2.0
28 stars 23 forks source link

During Testing I would like to be able to check the correct status codes are being set #29

Closed shawn-hurley closed 1 year ago

shawn-hurley commented 6 years ago

Currently the testing of the AlreadyCreated field is not fully testing the logic that it should. I believe that either the client exposes the HTTP status codes for 2xx responses or we move from using the client in the test and instead write an http.Get to retrieve the status codes.

pmorie commented 6 years ago

I would like to maintain the use of the client in the tests, but we can add tests using http.Get where we need finer-grained control.