Skip to content

Commit

Permalink
Update gke blueprints tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juliocc committed Feb 10, 2023
1 parent 6ea7980 commit 255405e
Show file tree
Hide file tree
Showing 20 changed files with 59 additions and 439 deletions.
15 changes: 15 additions & 0 deletions blueprints/gke/binauthz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,18 @@ Once done testing, you can clean up resources by running `terraform destroy`.
| [image_repo_url](outputs.tf#L22) | Image source repository url. | |

<!-- END TFDOC -->

## Test

```hcl
module "test" {
source = "./fabric/blueprints/gke/binauthz"
prefix = "test"
project_create = {
billing_account_id = "12345-12345-12345"
parent = "folders/123456789"
}
project_id = "my-project"
}
# tftest modules=14 resources=47
```
31 changes: 31 additions & 0 deletions blueprints/gke/multi-cluster-mesh-gke-fleet-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,34 @@ Once done testing, you can clean up resources by running `terraform destroy`.
| [region](variables.tf#L99) | Region. | <code>string</code> | | <code>&#34;europe-west1&#34;</code> |

<!-- END TFDOC -->

## Test

```hcl
module "test" {
source = "./fabric/blueprints/gke/multi-cluster-mesh-gke-fleet-api"
billing_account_id = "123-456-789"
parent = "folders/123456789"
host_project_id = "my-host-project"
fleet_project_id = "my-fleet-project"
mgmt_project_id = "my-mgmt-project"
region = "europe-west1"
clusters_config = {
cluster-a = {
subnet_cidr_block = "10.0.1.0/24"
master_cidr_block = "10.16.0.0/28"
services_cidr_block = "192.168.1.0/24"
pods_cidr_block = "172.16.0.0/20"
}
cluster-b = {
subnet_cidr_block = "10.0.2.0/24"
master_cidr_block = "10.16.0.16/28"
services_cidr_block = "192.168.2.0/24"
pods_cidr_block = "172.16.16.0/20"
}
}
mgmt_subnet_cidr_block = "10.0.0.0/24"
istio_version = "1.14.1-asm.3"
}
# tftest modules=13 resources=57
```
2 changes: 1 addition & 1 deletion blueprints/networking/decentralized-firewall/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ module "test" {
root_node = "organizations/0123456789"
}
# tftest modules=9 resources=50
# tftest modules=7 resources=50
```
12 changes: 12 additions & 0 deletions blueprints/networking/shared-vpc-gke/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,15 @@ There's a minor glitch that can surface running `terraform destroy`, where the s
| [vpc](outputs.tf#L40) | Shared VPC. | |

<!-- END TFDOC -->

## Test

```hcl
module "test" {
source = "./fabric/blueprints/gke/shared-vpc-gke"
billing_account_id = "ABCDE-12345-ABCDE"
prefix = "test"
root_node = "organizations/0123456789"
}
# tftest modules=11 resources=43
```
13 changes: 0 additions & 13 deletions tests/blueprints/gke/__init__.py

This file was deleted.

13 changes: 0 additions & 13 deletions tests/blueprints/gke/binauthz/__init__.py

This file was deleted.

22 changes: 0 additions & 22 deletions tests/blueprints/gke/binauthz/fixture/main.tf

This file was deleted.

34 changes: 0 additions & 34 deletions tests/blueprints/gke/binauthz/fixture/variables.tf

This file was deleted.

19 changes: 0 additions & 19 deletions tests/blueprints/gke/binauthz/test_plan.py

This file was deleted.

13 changes: 0 additions & 13 deletions tests/blueprints/gke/multi_cluster_mesh_gke_fleet_api/__init__.py

This file was deleted.

This file was deleted.

This file was deleted.

19 changes: 0 additions & 19 deletions tests/blueprints/gke/multi_cluster_mesh_gke_fleet_api/test_plan.py

This file was deleted.

13 changes: 0 additions & 13 deletions tests/blueprints/gke/multitenant_fleet/__init__.py

This file was deleted.

Loading

0 comments on commit 255405e

Please sign in to comment.