Skip to content

Commit efa4982

Browse files
committed
feat(deploy_token): enable username in test
since https://gitlab.com/gitlab-org/gitlab/-/issues/211963 was solved we can now check the username in our tests
1 parent 46f0202 commit efa4982

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

gitlab/resource_gitlab_deploy_token_test.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,9 @@ func testAccCheckGitlabDeployTokenAttributes(deployToken *gitlab.DeployToken, wa
8989
return fmt.Errorf("got name %q; want %q", deployToken.Name, want.Name)
9090
}
9191

92-
// TODO Uncomment once this bug is fixed https://gitlab.com/gitlab-org/gitlab/-/issues/211963
93-
// if deployToken.Username != want.Username {
94-
// return fmt.Errorf("got username %q; want %q", deployToken.Username, want.Username)
95-
// }
92+
if deployToken.Username != want.Username {
93+
return fmt.Errorf("got username %q; want %q", deployToken.Username, want.Username)
94+
}
9695

9796
return nil
9897
}
@@ -155,8 +154,7 @@ resource "gitlab_project" "foo" {
155154
resource "gitlab_deploy_token" "foo" {
156155
project = "${gitlab_project.foo.id}"
157156
name = "deployToken-%d"
158-
# TODO Uncomment once this bug is fixed https://gitlab.com/gitlab-org/gitlab/-/issues/211963
159-
# username = "my-username"
157+
username = "my-username"
160158
161159
expires_at = "2021-03-14T07:20:50Z"
162160

0 commit comments

Comments
 (0)