Skip to content

Commit 74e732f

Browse files
committed
Tweak PR just a little…
1 parent 507b9ec commit 74e732f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

deploy_tokens.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ type DeployToken struct {
3636
Name string `json:"name"`
3737
Username string `json:"username"`
3838
ExpiresAt *time.Time `json:"expires_at"`
39-
Expired bool `json:"expired"`
4039
Revoked bool `json:"revoked"`
40+
Expired bool `json:"expired"`
4141
Token string `json:"token,omitempty"`
4242
Scopes []string `json:"scopes"`
4343
}

deploy_tokens_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ func TestListAllDeployTokens(t *testing.T) {
3636
"name": "MyToken",
3737
"username": "gitlab+deploy-token-1",
3838
"expires_at": "2020-02-14T00:00:00.000Z",
39+
"revoked": true,
40+
"expired": true,
3941
"scopes": [
4042
"read_repository",
4143
"read_registry"
42-
],
43-
"expired": true,
44-
"revoked": true
44+
]
4545
}
4646
]
4747
`)
@@ -60,12 +60,12 @@ func TestListAllDeployTokens(t *testing.T) {
6060
Name: "MyToken",
6161
Username: "gitlab+deploy-token-1",
6262
ExpiresAt: &wantExpiresAt,
63+
Revoked: true,
64+
Expired: true,
6365
Scopes: []string{
6466
"read_repository",
6567
"read_registry",
6668
},
67-
Expired: true,
68-
Revoked: true,
6969
},
7070
}
7171

0 commit comments

Comments
 (0)