forked from dependabot/dependabot-core
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add file updater test cases showing the v prefix being dropped
- Loading branch information
1 parent
99a4d42
commit b8ee465
Showing
8 changed files
with
333 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
22 changes: 22 additions & 0 deletions
22
terraform/spec/fixtures/projects/lockfile_with_modules_with_v_prefix/.terraform.lock.hcl
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
terraform/spec/fixtures/projects/lockfile_with_modules_with_v_prefix/caf_module.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,4 @@ | ||
module "caf" { | ||
source = "aztfmod/caf/azurerm" | ||
version = "v5.1.0" | ||
} |
9 changes: 9 additions & 0 deletions
9
terraform/spec/fixtures/projects/lockfile_with_modules_with_v_prefix/versions.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,9 @@ | ||
terraform { | ||
required_providers { | ||
github = { | ||
source = "integrations/github" | ||
version = "~> 4.4, <= 4.12.0" | ||
} | ||
} | ||
required_version = ">= v0.14" | ||
} |
4 changes: 4 additions & 0 deletions
4
terraform/spec/fixtures/projects/nested_modules_with_v_prefix/main.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,4 @@ | ||
module "github_terraform" { | ||
source = "terraform-aws-modules/iam/aws//modules/iam-assumable-role" | ||
version = "v4.0.0" | ||
} |
4 changes: 4 additions & 0 deletions
4
terraform/spec/fixtures/projects/private_module_with_v_prefix/main.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,4 @@ | ||
module "s3-webapp" { | ||
source = "app.terraform.io/example-org-5d3190/s3-webapp/aws" | ||
version = "v1.0.0" | ||
} |
29 changes: 29 additions & 0 deletions
29
terraform/spec/fixtures/projects/registry_012_with_v_prefix/main.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,29 @@ | ||
module "consul" { | ||
source = "hashicorp/consul/aws" | ||
version = "v0.1.0" | ||
} | ||
|
||
module "vpc" { | ||
source = "app.terraform.io/example_corp/vpc/aws" | ||
version = "v0.9.3" | ||
} | ||
|
||
module "rds" { | ||
source = "terraform-aws-modules/rds/aws" | ||
version = "~> v1.0.0" | ||
} | ||
|
||
module "members-github" { | ||
source = "devops-workflow/members/github" | ||
} | ||
|
||
module "merged" { | ||
source = "mongodb/ecs-task-definition/aws//modules/merge" | ||
|
||
container_definitions = [ | ||
var.web_container_definition, | ||
module.xray.container_definitions, | ||
module.reverse_proxy.container_definitions, | ||
module.datadog.container_definitions, | ||
] | ||
} |
29 changes: 29 additions & 0 deletions
29
terraform/spec/fixtures/projects/registry_with_v_prefix/main.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,29 @@ | ||
module "consul" { | ||
source = "hashicorp/consul/aws" | ||
version = "v0.1.0" | ||
} | ||
|
||
module "vpc" { | ||
source = "app.terraform.io/example_corp/vpc/aws" | ||
version = "v0.9.3" | ||
} | ||
|
||
module "rds" { | ||
source = "terraform-aws-modules/rds/aws" | ||
version = "~> v1.0.0" | ||
} | ||
|
||
module "members-github" { | ||
source = "devops-workflow/members/github" | ||
} | ||
|
||
module "merged" { | ||
source = "mongodb/ecs-task-definition/aws//modules/merge" | ||
|
||
container_definitions = [ | ||
"${var.web_container_definition}", | ||
"${module.xray.container_definitions}", | ||
"${module.reverse_proxy.container_definitions}", | ||
"${module.datadog.container_definitions}", | ||
] | ||
} |