|
|
@ -38,6 +38,7 @@ func Test_ClientRegisterBadRequest(t *testing.T) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Test_ClientRegisterNotFound tests how the client responds to a 404 from the Discovery Service.
|
|
|
|
func Test_ClientRegisterNotFound(t *testing.T) {
|
|
|
|
func Test_ClientRegisterNotFound(t *testing.T) {
|
|
|
|
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
|
|
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
|
|
if r.Method != "POST" {
|
|
|
|
if r.Method != "POST" {
|
|
|
|