Skip to content

Commit fa06c52

Browse files
committed
refactor: remove StrongDM provider configuration and update related test function
1 parent 43c0665 commit fa06c52

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

main.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ provider "aws" {
22
region = var.aws_region
33
}
44

5-
provider "sdm" {
6-
api_access_key = var.SDM_API_ACCESS_KEY
7-
api_secret_key = var.SDM_API_SECRET_KEY
8-
}
9-
105
locals {
116
default_tags = merge(
127
var.tags,

tests/integration/integration_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func TestTerraformIntegration(t *testing.T) {
5454
terraform.InitAndApply(t, opts)
5555

5656
t.Run("TagsAndProviders", func(t *testing.T) {
57-
testEnforceTagsAndProviders(t, opts)
57+
testEnforceTags(t, opts)
5858
})
5959

6060
t.Run("GatewayConnection", func(t *testing.T) {
@@ -117,7 +117,7 @@ func testGatewayConnection(t *testing.T, opts *terraform.Options) {
117117

118118
}
119119

120-
func testEnforceTagsAndProviders(t *testing.T, opts *terraform.Options) {
120+
func testEnforceTags(t *testing.T, opts *terraform.Options) {
121121
// Validate output
122122
output := terraform.Output(t, opts, "default_tags")
123123
assert.True(
@@ -131,7 +131,6 @@ func testEnforceTagsAndProviders(t *testing.T, opts *terraform.Options) {
131131
),
132132
"Default tags should be present")
133133

134-
assert.Contains(t, terraform.Output(t, opts, "sdm_account_ids"), "a-")
135134
}
136135

137136
func hasTags(output string, tags []string) bool {

0 commit comments

Comments
 (0)