We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbda11f commit 9d70ccdCopy full SHA for 9d70ccd
dashboard/app/api_test.go
@@ -302,3 +302,18 @@ func TestUpdateReportingPriority(t *testing.T) {
302
// "0-3", "4-5" have the same priority (repro revoked as no repro).
303
assert.Equal(t, len(slices.Compact(prios)), len(prios)-4)
304
}
305
+
306
+func TestCreateUploadURL(t *testing.T) {
307
+ c := NewCtx(t)
308
+ defer c.Close()
309
310
+ c.transformContext = func(c context.Context) context.Context {
311
+ newConfig := *getConfig(c)
312
+ newConfig.UploadBucket = "blobstorage"
313
+ return contextWithConfig(c, &newConfig)
314
+ }
315
316
+ url, err := c.client.CreateUploadURL()
317
+ assert.NoError(t, err)
318
+ assert.Regexp(t, "blobstorage/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}.upload", url)
319
+}
0 commit comments