Skip to content

Commit 324b940

Browse files
author
Edgar López
committed
test: added default values to avoid error in tf about not setting
1 parent 8038a96 commit 324b940

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

examples/atlas-encryptionAtRest-roles/second_step/variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
variable "public_key" {
22
description = "The public API key for MongoDB Atlas"
3+
default = ""
34
}
45
variable "private_key" {
56
description = "The private API key for MongoDB Atlas"
7+
default = ""
68
}
79
variable "project_id" {
810
description = "Atlas project ID"
11+
default = ""
912
}
1013
variable "customer_master_key" {
1114
description = "The customer master secret key for AWS Account"
15+
default = ""
1216
}
1317
variable "atlas_region" {
1418
default = "US_EAST_1"
@@ -21,7 +25,9 @@ variable "cpa_role_id" {
2125
}
2226
variable "access_key" {
2327
description = "The access key for AWS Account"
28+
default = ""
2429
}
2530
variable "secret_key" {
2631
description = "The secret key for AWS Account"
32+
default = ""
2733
}

examples/atlas-encryptionAtRest-roles/variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
variable "public_key" {
22
description = "The public API key for MongoDB Atlas"
3+
default = ""
34
}
45
variable "private_key" {
56
description = "The private API key for MongoDB Atlas"
7+
default = ""
68
}
79
variable "project_id" {
810
description = "Atlas project ID"
11+
default = ""
912
}
1013
variable "access_key" {
1114
description = "The access key for AWS Account"
15+
default = ""
1216
}
1317
variable "secret_key" {
1418
description = "The secret key for AWS Account"
19+
default = ""
1520
}
1621
variable "customer_master_key" {
1722
description = "The customer master secret key for AWS Account"
23+
default = ""
1824
}
1925
variable "atlas_region" {
2026
default = "US_EAST_1"

integration-testing/resource_mongodbatlas_encryption_at_rest_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ package integration_testing
22

33
import (
44
"fmt"
5-
//"github.com/gruntwork-io/terratest/modules/terraform"
65
"os"
76
"strings"
87
"testing"
8+
9+
"github.com/gruntwork-io/terratest/modules/terraform"
910
)
1011

1112
func SkipTestExtCred(t *testing.T) {

0 commit comments

Comments
 (0)