Skip to content

Commit

Permalink
Tweak PR just a little…
Browse files Browse the repository at this point in the history
  • Loading branch information
svanharmelen committed Mar 4, 2023
1 parent 507b9ec commit 74e732f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deploy_tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ type DeployToken struct {
Name string `json:"name"`
Username string `json:"username"`
ExpiresAt *time.Time `json:"expires_at"`
Expired bool `json:"expired"`
Revoked bool `json:"revoked"`
Expired bool `json:"expired"`
Token string `json:"token,omitempty"`
Scopes []string `json:"scopes"`
}
Expand Down
10 changes: 5 additions & 5 deletions deploy_tokens_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ func TestListAllDeployTokens(t *testing.T) {
"name": "MyToken",
"username": "gitlab+deploy-token-1",
"expires_at": "2020-02-14T00:00:00.000Z",
"revoked": true,
"expired": true,
"scopes": [
"read_repository",
"read_registry"
],
"expired": true,
"revoked": true
]
}
]
`)
Expand All @@ -60,12 +60,12 @@ func TestListAllDeployTokens(t *testing.T) {
Name: "MyToken",
Username: "gitlab+deploy-token-1",
ExpiresAt: &wantExpiresAt,
Revoked: true,
Expired: true,
Scopes: []string{
"read_repository",
"read_registry",
},
Expired: true,
Revoked: true,
},
}

Expand Down

0 comments on commit 74e732f

Please sign in to comment.