File tree 1 file changed +5
-4
lines changed
components/public-api-server/pkg/apiv1
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,14 @@ package apiv1
7
7
import (
8
8
"context"
9
9
"fmt"
10
- "google.golang.org/protobuf/types/known/fieldmaskpb"
11
10
"net/http"
12
11
"net/http/httptest"
13
12
"strings"
14
13
"testing"
15
14
"time"
16
15
16
+ "google.golang.org/protobuf/types/known/fieldmaskpb"
17
+
17
18
connect "github.com/bufbuild/connect-go"
18
19
"github.com/gitpod-io/gitpod/common-go/experiments"
19
20
"github.com/gitpod-io/gitpod/common-go/experiments/experimentstest"
@@ -516,10 +517,10 @@ func TestTokensService_UpdatePersonalAccessToken(t *testing.T) {
516
517
serverMock .EXPECT ().GetTeams (gomock .Any ()).Return (teams , nil )
517
518
518
519
token := & v1.PersonalAccessToken {
519
- Id : uuid .New ().String (),
520
- Description : "foo" ,
520
+ Id : uuid .New ().String (),
521
+ Name : "foo-bar " ,
521
522
}
522
- mask , err := fieldmaskpb .New (token , "description " )
523
+ mask , err := fieldmaskpb .New (token , "name " )
523
524
require .NoError (t , err )
524
525
525
526
_ , err = client .UpdatePersonalAccessToken (context .Background (), connect .NewRequest (& v1.UpdatePersonalAccessTokenRequest {
You can’t perform that action at this time.
0 commit comments