File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ type DeployToken struct {
36
36
Name string `json:"name"`
37
37
Username string `json:"username"`
38
38
ExpiresAt * time.Time `json:"expires_at"`
39
- Expired bool `json:"expired"`
40
39
Revoked bool `json:"revoked"`
40
+ Expired bool `json:"expired"`
41
41
Token string `json:"token,omitempty"`
42
42
Scopes []string `json:"scopes"`
43
43
}
Original file line number Diff line number Diff line change @@ -36,12 +36,12 @@ func TestListAllDeployTokens(t *testing.T) {
36
36
"name": "MyToken",
37
37
"username": "gitlab+deploy-token-1",
38
38
"expires_at": "2020-02-14T00:00:00.000Z",
39
+ "revoked": true,
40
+ "expired": true,
39
41
"scopes": [
40
42
"read_repository",
41
43
"read_registry"
42
- ],
43
- "expired": true,
44
- "revoked": true
44
+ ]
45
45
}
46
46
]
47
47
` )
@@ -60,12 +60,12 @@ func TestListAllDeployTokens(t *testing.T) {
60
60
Name : "MyToken" ,
61
61
Username : "gitlab+deploy-token-1" ,
62
62
ExpiresAt : & wantExpiresAt ,
63
+ Revoked : true ,
64
+ Expired : true ,
63
65
Scopes : []string {
64
66
"read_repository" ,
65
67
"read_registry" ,
66
68
},
67
- Expired : true ,
68
- Revoked : true ,
69
69
},
70
70
}
71
71
You can’t perform that action at this time.
0 commit comments