-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from F5Networks/devel_moduletest
added module testing code
- Loading branch information
Showing
5 changed files
with
624 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/gruntwork-io/terratest/modules/terraform" | ||
) | ||
|
||
func TestTerraformAzure1NicExample(t *testing.T) { | ||
|
||
t.Parallel() | ||
|
||
terraformOptions := &terraform.Options{ | ||
|
||
TerraformDir: "../example/bigip_aws_1nic_deploy", | ||
|
||
Vars: map[string]interface{}{ | ||
"location": "eastus", | ||
}, | ||
} | ||
|
||
defer terraform.Destroy(t, terraformOptions) | ||
|
||
terraform.InitAndApply(t, terraformOptions) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/gruntwork-io/terratest/modules/terraform" | ||
) | ||
|
||
func TestTerraformAzureExample(t *testing.T) { | ||
|
||
t.Parallel() | ||
|
||
terraformOptions := &terraform.Options{ | ||
|
||
TerraformDir: "../example/bigip_aws_2nic_deploy", | ||
|
||
Vars: map[string]interface{}{ | ||
"location": "eastus", | ||
}, | ||
} | ||
|
||
defer terraform.Destroy(t, terraformOptions) | ||
|
||
terraform.InitAndApply(t, terraformOptions) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/gruntwork-io/terratest/modules/terraform" | ||
) | ||
|
||
func TestTerraformAzure3NicExample(t *testing.T) { | ||
|
||
t.Parallel() | ||
|
||
terraformOptions := &terraform.Options{ | ||
|
||
TerraformDir: "../example/bigip_aws_3nic_deploy", | ||
|
||
Vars: map[string]interface{}{ | ||
"location": "eastus", | ||
}, | ||
} | ||
|
||
defer terraform.Destroy(t, terraformOptions) | ||
|
||
terraform.InitAndApply(t, terraformOptions) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module github.com/RavinderReddyF5/azure-deploy | ||
|
||
go 1.13 | ||
|
||
require ( | ||
github.com/Azure/azure-sdk-for-go v38.1.0+incompatible | ||
github.com/gruntwork-io/terratest v0.28.5 | ||
github.com/stretchr/testify v1.6.1 | ||
) |
Oops, something went wrong.