Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iot domain name configuration #24765

Merged
merged 34 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
13690c7
adding iot_domain_name_configuration support
May 12, 2022
930ff6f
golang lint
May 13, 2022
14d18ab
Merge branch 'main' into HEAD
ewbankkit May 27, 2022
828320d
Add CHANGELOG entry.
ewbankkit May 27, 2022
dbc59c1
r/aws_iot_domain_name_configuration: Alphabetize attributes.
ewbankkit May 27, 2022
c99bc1e
r/aws_iot_domain_name_configuration: Add CustomizeDiff.
ewbankkit May 27, 2022
3e7e4a3
r/aws_iot_domain_name_configuration: Use '_Values()' (#14601).
ewbankkit May 27, 2022
6ee9759
r/aws_iot_domain_name_configuration: Use Plugin SDK v2 WithoutTimeout…
ewbankkit May 27, 2022
f70650f
'aws_iot_domain_name_configuration' -> 'aws_iot_domain_configuration'.
ewbankkit May 27, 2022
69133c7
Merge branch 'main' into iot_domain_name_configuration
jalavoy Jul 18, 2023
205e91f
adjusting website docs
Jul 18, 2023
b9a6220
renaming test
Jul 18, 2023
58a8d2a
adding copyright
Jul 18, 2023
1997e57
Merge branch 'main' into HEAD
ewbankkit Oct 24, 2023
e7a9b23
r/aws_iot_domain_configuration: Modernize.
ewbankkit Oct 24, 2023
448ad16
Fix markdown-lint 'MD047/single-trailing-newline Files should end wit…
ewbankkit Oct 24, 2023
4246f61
r/aws_iot_domain_configuration: Add 'tls_config' attribute.
ewbankkit Oct 25, 2023
40e4d7a
r/aws_iot_domain_configuration: Add 'domain_type' attribute.
ewbankkit Oct 25, 2023
009a95a
r/aws_iot_domain_configuration: 'domain_name' is Optional.
ewbankkit Oct 25, 2023
137f45c
r/aws_iot_domain_configuration: Add sweeper.
ewbankkit Oct 25, 2023
da652b3
Add 'acctest.SkipIfEnvVarNotSet'.
ewbankkit Oct 25, 2023
ceafffc
r/aws_iot_domain_configuration: 'tls_config' is Optional+Computed.
ewbankkit Oct 25, 2023
a86aaf5
'TestAccIoTDomainConfiguration_basic' -> 'TestAccIoTDomainConfigurati…
ewbankkit Oct 25, 2023
c4f522b
r/aws_iot_authorizer: Add sweeper.
ewbankkit Oct 25, 2023
5ddd71d
sweepers: aws_acm_certificate has dependency on aws_iot_domain_config…
ewbankkit Oct 25, 2023
247071e
r/aws_iot_domain_configuration: Avoid 'AWS Managed Domain Configurati…
ewbankkit Oct 25, 2023
746a784
Add 'TestAccIoTDomainConfiguration_basic'.
ewbankkit Oct 25, 2023
53de5b8
Acceptance test output:
ewbankkit Oct 25, 2023
1503d78
r/aws_iot_domain_configuration: Support import.
ewbankkit Oct 25, 2023
6728dc0
r/aws_iot_domain_configuration: Additional acceptance tests.
ewbankkit Oct 25, 2023
123e28d
Fix markdown-lint 'MD012/no-multiple-blanks Multiple consecutive blan…
ewbankkit Oct 25, 2023
3a41c17
Fix semgrep 'ci.aws-in-func-name'.
ewbankkit Oct 25, 2023
c8eb41f
Fix semgrep 'ci.caps5-in-func-name'.
ewbankkit Oct 25, 2023
2bc52ff
Fix acceptance tests.
ewbankkit Oct 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/24765.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-resource
aws_iot_domain_configuration
```
10 changes: 10 additions & 0 deletions internal/acctest/acctest.go
Original file line number Diff line number Diff line change
Expand Up @@ -2442,6 +2442,16 @@ func CheckResourceAttrIsJSONString(n, key string) resource.TestCheckFunc {
})
}

// SkipIfEnvVarNotSet skips the current test if the specified environment variable is not set.
// The variable's value is returned.
func SkipIfEnvVarNotSet(t *testing.T, key string) string {
v := os.Getenv(key)
if v == "" {
t.Skipf("Environment variable %s is not set, skipping test", key)
}
return v
}

// RunSerialTests1Level runs test cases in parallel, optionally sleeping between each.
func RunSerialTests1Level(t *testing.T, testCases map[string]func(t *testing.T), d time.Duration) {
t.Helper()
Expand Down
1 change: 1 addition & 0 deletions internal/service/acm/sweep.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func RegisterSweepers() {
"aws_elb",
"aws_iam_server_certificate",
"aws_iam_signing_certificate",
"aws_iot_domain_configuration",
"aws_lb",
"aws_lb_listener",
},
Expand Down
8 changes: 4 additions & 4 deletions internal/service/iot/authorizer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func testAccCheckAuthorizerDestroy(ctx context.Context) resource.TestCheckFunc {
}
}

func testAccAuthorizerBaseConfig(rName string) string {
func testAccAuthorizerConfig_base(rName string) string {
return fmt.Sprintf(`
resource "aws_iam_role" "test" {
name = %[1]q
Expand Down Expand Up @@ -240,7 +240,7 @@ resource "aws_lambda_function" "test" {
}

func testAccAuthorizerConfig_basic(rName string) string {
return acctest.ConfigCompose(testAccAuthorizerBaseConfig(rName), fmt.Sprintf(`
return acctest.ConfigCompose(testAccAuthorizerConfig_base(rName), fmt.Sprintf(`
resource "aws_iot_authorizer" "test" {
name = %[1]q
authorizer_function_arn = aws_lambda_function.test.arn
Expand All @@ -254,7 +254,7 @@ resource "aws_iot_authorizer" "test" {
}

func testAccAuthorizerConfig_updated(rName string) string {
return acctest.ConfigCompose(testAccAuthorizerBaseConfig(rName), fmt.Sprintf(`
return acctest.ConfigCompose(testAccAuthorizerConfig_base(rName), fmt.Sprintf(`
resource "aws_iot_authorizer" "test" {
name = %[1]q
authorizer_function_arn = aws_lambda_function.test.arn
Expand All @@ -272,7 +272,7 @@ resource "aws_iot_authorizer" "test" {
}

func testAccAuthorizerConfig_signingDisabled(rName string) string {
return acctest.ConfigCompose(testAccAuthorizerBaseConfig(rName), fmt.Sprintf(`
return acctest.ConfigCompose(testAccAuthorizerConfig_base(rName), fmt.Sprintf(`
resource "aws_iot_authorizer" "test" {
name = %[1]q
authorizer_function_arn = aws_lambda_function.test.arn
Expand Down
Loading
Loading