Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
digicosmos86 committed Jul 18, 2024
1 parent 9bf33b3 commit 8dc026a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ No providers.

| Name | Source | Version |
|------|--------|---------|
| <a name="module_project"></a> [project](#module\_project) | terraform-google-modules/project-factory/google | = 15.0.1 |
| <a name="module_project"></a> [project](#module\_project) | terraform-google-modules/project-factory/google | ~> 15.0 |
| <a name="module_projects_iam_bindings"></a> [projects\_iam\_bindings](#module\_projects\_iam\_bindings) | terraform-google-modules/iam/google//modules/projects_iam | 7.7.1 |

## Resources
Expand Down
7 changes: 4 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module "project" {
source = "terraform-google-modules/project-factory/google"
version = "= 15.0.1"
version = "~> 15.0"

name = var.project_name
random_project_id = true
Expand All @@ -21,8 +21,9 @@ module "project" {
# -----------------------------

module "projects_iam_bindings" {
source = "terraform-google-modules/iam/google//modules/projects_iam"
version = "7.7.1"
source = "terraform-google-modules/iam/google//modules/projects_iam"
version = "7.7.1"

mode = "authoritative"
projects = [module.project.project_id]
bindings = {
Expand Down
1 change: 1 addition & 0 deletions tests/simple-project/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ module "simple-project" {
billing_account = var.billing_account
activate_apis = var.activate_apis
folder_id = var.folder_id
org_id = var.org_id
}
6 changes: 0 additions & 6 deletions tests/simple_project.tftest.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ run "simple_project_test" {
source = "./tests/simple-project"
}

variables {
org_id = "123456789"
folder_id = "123456789"
billing_account = ""
}

assert {
condition = simple-project.id != null
error_message = "Project does not exist!"
Expand Down
2 changes: 1 addition & 1 deletion version.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
google = {
source = "hashicorp/google"
source = "hashicorp/google"
version = "5.38.0"
}
}
Expand Down

0 comments on commit 8dc026a

Please sign in to comment.