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