Refactoring

This commit is contained in:
kardinal
2025-11-20 09:20:08 +01:00
parent 26d072c8ec
commit 33b7ee702b
3 changed files with 9 additions and 63 deletions

View File

@@ -102,8 +102,8 @@ func TestAccBitbucketToken_AllScenarios(t *testing.T) {
PreConfig: func() {
server.SetExpiredToken("proj/repo")
},
RefreshState: true,
ExpectNonEmptyPlan: true,
RefreshState: true,
ExpectNonEmptyPlan: true,
},
},
})
@@ -130,22 +130,6 @@ resource "bitbucket_token" "test" {
`, url)
}
func testAccBitbucketTokenConfigPrefix(url, prefix string) string {
return fmt.Sprintf(`
provider "bitbucket" {
server_url = "%s"
auth_header = "dummy"
tls_skip_verify = true
}
resource "bitbucket_token" "test" {
project_name = "proj"
repository_name = "repo"
token_name = "%s"
}
`, url, prefix)
}
//
// ---------- Environment ----------
//