Closed benfu99 closed 4 years ago
Ein Problem habe ich noch gefunden:
curl -v "localhost:8080/v2/users/self/favorites"
// cURL ohne Authentification
* Trying 127.0.0.1:8080...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET /v2/users/self/favorites HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.65.3
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 400
< Cache-Control: private
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Content-Length: 0
< Date: Tue, 21 Apr 2020 12:06:16 GMT
< Connection: close
<
* Closing connection 0
gibt einen 400 und nicht 401
Ja, der Test ist ziemlich heavy Metal. Nein, ich verstehe den Test nicht vollständig. Ja, der Test funktioniert. (und ist mMn auch Sinnvoll) Nein, ich weiß nicht, warum ich jedes fucking Repository mocken muss.