Refactor download urls and client config

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer
2020-05-27 19:38:40 +02:00
parent 5453cf2e86
commit 6f6e3799dc
59 changed files with 444 additions and 319 deletions

View File

@@ -52,7 +52,7 @@ func TestDownloadZip(t *testing.T) {
t.Run("zip not existing", func(t *testing.T) {
app, router, conf := NewApiTest()
DownloadZip(router, conf)
r := PerformRequest(app, "GET", "/api/v1/zip/xxx")
r := PerformRequest(app, "GET", "/api/v1/zip/xxx?t="+conf.DownloadToken())
assert.Equal(t, http.StatusNotFound, r.Code)
})
}