Skip to content

Commit c0365bb

Browse files
committed
dashboard/app: test dashapi CreateUploadURL
1 parent 6f93cb2 commit c0365bb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dashboard/app/api_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"context"
88
"slices"
99
"sort"
10-
"strings"
1110
"testing"
1211
"time"
1312

@@ -316,5 +315,5 @@ func TestCreateUploadURL(t *testing.T) {
316315

317316
url, err := c.client.CreateUploadURL()
318317
assert.Nil(t, err)
319-
assert.True(t, strings.HasPrefix(url, "blobstorage"))
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)
320319
}

0 commit comments

Comments
 (0)