Skip to content

Commit

Permalink
Update networking bluprints tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juliocc committed Feb 10, 2023
1 parent b3cbc1f commit 8b41bf3
Show file tree
Hide file tree
Showing 23 changed files with 82 additions and 364 deletions.
16 changes: 16 additions & 0 deletions blueprints/networking/filtering-proxy-psc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,19 @@ To simplify the usage of the proxy, a Cloud DNS private zone is created in each
| [region](variables.tf#L75) | Default region for resources. | <code>string</code> | | <code>&#34;europe-west1&#34;</code> |

<!-- END TFDOC -->

## Test


```hcl
module "test" {
source = "./fabric/blueprints/networking/filtering-proxy-psc"
prefix = "fabric"
project_create = {
billing_account = "123456-ABCDEF-123456"
parent = "folders/1234567890"
}
project_id = "test-project"
}
# tftest modules=13 resources=37
```
24 changes: 24 additions & 0 deletions blueprints/networking/filtering-proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,27 @@ You can optionally deploy the Squid server as [Managed Instance Group](https://c
| [squid-address](outputs.tf#L17) | IP address of the Squid proxy. | |

<!-- END TFDOC -->

## Test

```hcl
module "test1" {
source = "./fabric/blueprints/networking/filtering-proxy"
billing_account = "123456-123456-123456"
mig = true
prefix = "fabric"
root_node = "folders/123456789"
}
# tftest modules=14 resources=36
```

```hcl
module "test2" {
source = "./fabric/blueprints/networking/filtering-proxy"
billing_account = "123456-123456-123456"
mig = false
prefix = "fabric"
root_node = "folders/123456789"
}
# tftest modules=12 resources=30
```
16 changes: 16 additions & 0 deletions blueprints/networking/glb-and-armor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,19 @@ The above command will delete the associated resources so there will be no billa
| [vm_siege_external_ip](outputs.tf#L23) | Siege VM external IP address. | |

<!-- END TFDOC -->

## Test

```hcl
module "test" {
source = "./fabric/blueprints/networking/glb-and-armor"
prefix = "test"
project_create = {
billing_account_id = "123456789"
parent = "organizations/123456789"
}
project_id = "project-1"
enforce_security_policy = true
}
# tftest modules=12 resources=26
```
12 changes: 12 additions & 0 deletions blueprints/networking/ilb-next-hop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,15 @@ A sample testing session using `tmux`:
| [ssh_vm_right](outputs.tf#L64) | Command-line login to right VMs. | |

<!-- END TFDOC -->

## Test

```hcl
module "test" {
source = "./fabric/blueprints/networking/ilb-next-hop"
prefix = "test"
project_create = true
project_id = "project-1"
}
# tftest modules=18 resources=42
```
14 changes: 14 additions & 0 deletions blueprints/networking/private-cloud-function-from-onprem/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,17 @@ curl https://YOUR_REGION-YOUR_PROJECT_ID.cloudfunctions.net/YOUR_FUNCTION_NAME
| [function_url](outputs.tf#L17) | URL of the Cloud Function. | |

<!-- END TFDOC -->

## Test

```hcl
module "test" {
source = "./fabric/blueprints/networking/private-cloud-function-from-onprem/"
project_create = {
billing_account_id = "123456-ABCDEF-123456"
parent = "folders/1234567890"
}
project_id = "test-project"
}
# tftest modules=11 resources=40
```
13 changes: 0 additions & 13 deletions tests/blueprints/networking/filtering_proxy/__init__.py

This file was deleted.

23 changes: 0 additions & 23 deletions tests/blueprints/networking/filtering_proxy/fixture/main.tf

This file was deleted.

18 changes: 0 additions & 18 deletions tests/blueprints/networking/filtering_proxy/fixture/variables.tf

This file was deleted.

23 changes: 0 additions & 23 deletions tests/blueprints/networking/filtering_proxy/test_plan.py

This file was deleted.

13 changes: 0 additions & 13 deletions tests/blueprints/networking/filtering_proxy_psc/__init__.py

This file was deleted.

25 changes: 0 additions & 25 deletions tests/blueprints/networking/filtering_proxy_psc/fixture/main.tf

This file was deleted.

19 changes: 0 additions & 19 deletions tests/blueprints/networking/filtering_proxy_psc/test_plan.py

This file was deleted.

13 changes: 0 additions & 13 deletions tests/blueprints/networking/glb_and_armor/__init__.py

This file was deleted.

21 changes: 0 additions & 21 deletions tests/blueprints/networking/glb_and_armor/fixture/main.tf

This file was deleted.

39 changes: 0 additions & 39 deletions tests/blueprints/networking/glb_and_armor/fixture/variables.tf

This file was deleted.

19 changes: 0 additions & 19 deletions tests/blueprints/networking/glb_and_armor/test_plan.py

This file was deleted.

13 changes: 0 additions & 13 deletions tests/blueprints/networking/ilb_next_hop/__init__.py

This file was deleted.

22 changes: 0 additions & 22 deletions tests/blueprints/networking/ilb_next_hop/fixture/main.tf

This file was deleted.

Loading

0 comments on commit 8b41bf3

Please sign in to comment.