Skip to content

Commit

Permalink
Rename the exported security-group-inputs file to `security-group-v…
Browse files Browse the repository at this point in the history
…ariables` (#31)

* Rename the exported `security-group-inputs` file to `security-group-variables`

* Rename the exported `security-group-inputs` file to `security-group-variables`
  • Loading branch information
aknysh authored Dec 30, 2021
1 parent ccaf794 commit e5bef85
Show file tree
Hide file tree
Showing 4 changed files with 875 additions and 174 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# security-group-inputs Version: 2
# security-group-variables Version: 2
#
# Copy this file from https://github.com/cloudposse/terraform-aws-security-group/blob/master/exports/security-group-inputs.tf
# Copy this file from https://github.com/cloudposse/terraform-aws-security-group/blob/master/exports/security-group-variables.tf
# and EDIT IT TO SUIT YOUR PROJECT. Update the version number above if you update this file from a later version.
# Unlike null-label context.tf, this file cannot be automatically updated
# because of the tight integration with the module using it.
Expand Down Expand Up @@ -156,7 +156,6 @@ variable "security_group_delete_timeout" {
EOT
}


variable "allow_all_egress" {
type = bool
default = true
Expand Down
6 changes: 3 additions & 3 deletions test/src/examples_complete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ func TestExamplesComplete(t *testing.T) {
assert.Equal(t, "eg-ue2-test-sg-"+randID+"-new", newSgName)

// Verify that outputs are valid when an existing security group is provided
targetSgID := terraform.Output(t, terraformOptions, "target_sg_id")
testSgID := terraform.Output(t, terraformOptions, "test_created_sg_id")
targetSgID := terraform.Output(t, terraformOptions, "target_sg_id")
testSgID := terraform.Output(t, terraformOptions, "test_created_sg_id")

assert.Equal(t, testSgID, targetSgID, "Module should return provided SG ID as \"id\" output")
assert.Equal(t, testSgID, targetSgID, "Module should return provided SG ID as \"id\" output")

// Verify that outputs are empty when module is disabled
disabledSgID := terraform.Output(t, terraformOptions, "disabled_sg_id")
Expand Down
10 changes: 3 additions & 7 deletions test/src/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ module github.com/cloudposse/terraform-example-module
go 1.16

require (
github.com/gruntwork-io/terratest v0.32.8
github.com/stretchr/testify v1.6.1
golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a // indirect
golang.org/x/net v0.0.0-20200822124328-c89045814202 // indirect
golang.org/x/sys v0.0.0-20200828194041-157a740278f4 // indirect
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
k8s.io/apimachinery v0.19.3
github.com/gruntwork-io/terratest v0.38.8
github.com/stretchr/testify v1.7.0
k8s.io/apimachinery v0.23.1
)
Loading

0 comments on commit e5bef85

Please sign in to comment.