The worker server API handler `UploadJobArtifact()` was previously silently discarding artifacts uploaded by the worker, if the server was configured to not accept artifacts. Change the behavior to return HTTP error "Bad Request" (`400`) to the worker, in case it tries to upload artifact to the server, but the server is configured to not accept any artifacts. Add a new unit test testing the new behavior and adjust existing unit tests, which were relying on the artifact being previously silently discarded. |
||
|---|---|---|
| .. | ||
| api | ||
| clienterrors | ||
| client.go | ||
| client_test.go | ||
| json.go | ||
| proxy_test.go | ||
| server.go | ||
| server_test.go | ||