-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding test to demonstrate that the TestStep number is being used dyn…
…amically to determine the directory containing the Terraform configuration (#150)
- Loading branch information
1 parent
51576a0
commit a95efe7
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...resource/testdata/TestTest_ConfigDirectory_TestStepDirectory_StepNotHardcoded/1/random.tf
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,19 @@ | ||
# Copyright (c) HashiCorp, Inc. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
terraform { | ||
required_providers { | ||
random = { | ||
source = "registry.terraform.io/hashicorp/random" | ||
version = "3.5.1" | ||
} | ||
} | ||
} | ||
|
||
provider "random" {} | ||
|
||
resource "random_password" "test" { | ||
length = 8 | ||
|
||
numeric = false | ||
} |
19 changes: 19 additions & 0 deletions
19
...resource/testdata/TestTest_ConfigDirectory_TestStepDirectory_StepNotHardcoded/2/random.tf
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,19 @@ | ||
# Copyright (c) HashiCorp, Inc. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
terraform { | ||
required_providers { | ||
random = { | ||
source = "registry.terraform.io/hashicorp/random" | ||
version = "3.5.1" | ||
} | ||
} | ||
} | ||
|
||
provider "random" {} | ||
|
||
resource "random_password" "test" { | ||
length = 9 | ||
|
||
numeric = false | ||
} |
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