Skip to content

Commit

Permalink
stage 0 1 and 2 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ludoo committed Oct 23, 2024
1 parent f32b22b commit 4b149e3
Show file tree
Hide file tree
Showing 16 changed files with 98 additions and 35 deletions.
1 change: 1 addition & 0 deletions tests/fast/stages/s2_networking_a_simple/ncc.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ billing_account = {
id = "000000-111111-222222"
}
custom_roles = {
project_iam_viewer = "organizations/123456789012/roles/bar"
service_project_network_admin = "organizations/123456789012/roles/foo"
}
dns = {
Expand Down
10 changes: 5 additions & 5 deletions tests/fast/stages/s2_networking_a_simple/ncc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ counts:
google_network_connectivity_hub: 1
google_network_connectivity_spoke: 2
google_project: 3
google_project_iam_binding: 4
google_project_iam_member: 18
google_project_service: 24
google_project_service_identity: 18
google_project_iam_binding: 2
google_project_iam_member: 20
google_project_service: 26
google_project_service_identity: 20
google_storage_bucket_object: 2
google_tags_tag_binding: 3
google_vpc_access_connector: 2
modules: 24
resources: 175
resources: 179
26 changes: 26 additions & 0 deletions tests/fast/stages/s2_networking_a_simple/simple.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ billing_account = {
id = "000000-111111-222222"
}
custom_roles = {
project_iam_viewer = "organizations/123456789012/roles/bar"
service_project_network_admin = "organizations/123456789012/roles/foo"
}
dns = {
Expand Down Expand Up @@ -40,6 +41,31 @@ organization = {
customer_id = "C00000000"
}
prefix = "fast2"
stage_config = {
networking = {
iam_delegated_principals = {
dev = [
"serviceAccount:fast2-dev-resman-gcve-0@fast2-prod-iac-core-0.iam.gserviceaccount.com",
"serviceAccount:fast2-dev-resman-pf-0@fast2-prod-iac-core-0.iam.gserviceaccount.com"
]
prod = [
"serviceAccount:fast2-prod-resman-gcve-0@fast2-prod-iac-core-0.iam.gserviceaccount.com",
"serviceAccount:fast2-prod-resman-pf-0@fast2-prod-iac-core-0.iam.gserviceaccount.com"
]
}
iam_viewer_principals = {
dev = [
"serviceAccount:fast2-dev-resman-gcve-0r@fast2-prod-iac-core-0.iam.gserviceaccount.com",
"serviceAccount:fast2-dev-resman-pf-0r@fast2-prod-iac-core-0.iam.gserviceaccount.com"
]
prod = [
"serviceAccount:fast2-prod-resman-gcve-0r@fast2-prod-iac-core-0.iam.gserviceaccount.com",
"serviceAccount:fast2-prod-resman-pf-0r@fast2-prod-iac-core-0.iam.gserviceaccount.com"
]
}
short_name = "net"
}
}
tag_values = {
"environment/development" = "tagValues/12345"
"environment/production" = "tagValues/12346"
Expand Down
8 changes: 4 additions & 4 deletions tests/fast/stages/s2_networking_a_simple/simple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ counts:
google_monitoring_monitored_project: 2
google_project: 3
google_project_iam_binding: 4
google_project_iam_member: 17
google_project_service: 23
google_project_service_identity: 17
google_project_iam_member: 20
google_project_service: 26
google_project_service_identity: 20
google_storage_bucket_object: 2
google_tags_tag_binding: 3
google_vpc_access_connector: 2
modules: 29
random_id: 1
resources: 187
resources: 196
1 change: 1 addition & 0 deletions tests/fast/stages/s2_networking_a_simple/vpn.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ billing_account = {
id = "000000-111111-222222"
}
custom_roles = {
project_iam_viewer = "organizations/123456789012/roles/bar"
service_project_network_admin = "organizations/123456789012/roles/foo"
}
dns = {
Expand Down
10 changes: 5 additions & 5 deletions tests/fast/stages/s2_networking_a_simple/vpn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ counts:
google_monitoring_dashboard: 3
google_monitoring_monitored_project: 2
google_project: 3
google_project_iam_binding: 4
google_project_iam_member: 17
google_project_service: 23
google_project_service_identity: 17
google_project_iam_binding: 2
google_project_iam_member: 20
google_project_service: 26
google_project_service_identity: 20
google_storage_bucket_object: 2
google_tags_tag_binding: 3
google_vpc_access_connector: 2
modules: 31
random_id: 5
resources: 224
resources: 231
1 change: 1 addition & 0 deletions tests/fast/stages/s2_networking_b_nva/ncc-ra.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ billing_account = {
id = "000000-111111-222222"
}
custom_roles = {
project_iam_viewer = "organizations/123456789012/roles/bar"
service_project_network_admin = "organizations/123456789012/roles/foo"
}
dns = {
Expand Down
10 changes: 5 additions & 5 deletions tests/fast/stages/s2_networking_b_nva/ncc-ra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ counts:
google_network_connectivity_hub: 2
google_network_connectivity_spoke: 4
google_project: 3
google_project_iam_binding: 4
google_project_iam_member: 18
google_project_service: 24
google_project_service_identity: 18
google_project_iam_binding: 2
google_project_iam_member: 19
google_project_service: 25
google_project_service_identity: 19
google_storage_bucket_object: 2
google_tags_tag_binding: 3
google_vpc_access_connector: 2
modules: 39
random_id: 2
resources: 255
resources: 256
1 change: 1 addition & 0 deletions tests/fast/stages/s2_networking_b_nva/regional.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ billing_account = {
id = "000000-111111-222222"
}
custom_roles = {
project_iam_viewer = "organizations/123456789012/roles/bar"
service_project_network_admin = "organizations/123456789012/roles/foo"
}
dns = {
Expand Down
11 changes: 6 additions & 5 deletions tests/fast/stages/s2_networking_b_nva/regional.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@ counts:
google_monitoring_dashboard: 3
google_monitoring_monitored_project: 2
google_project: 3
google_project_iam_binding: 4
google_project_iam_member: 17
google_project_service: 23
google_project_service_identity: 17
google_project_iam_binding: 2
google_project_iam_member: 19
google_project_service: 25
google_project_service_identity: 19
google_storage_bucket_object: 2
google_tags_tag_binding: 3
google_vpc_access_connector: 2
modules: 47
random_id: 2
resources: 260
resources: 264
1 change: 1 addition & 0 deletions tests/fast/stages/s2_networking_b_nva/simple.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ billing_account = {
id = "000000-111111-222222"
}
custom_roles = {
project_iam_viewer = "organizations/123456789012/roles/bar"
service_project_network_admin = "organizations/123456789012/roles/foo"
}
dns = {
Expand Down
10 changes: 5 additions & 5 deletions tests/fast/stages/s2_networking_b_nva/simple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ counts:
google_monitoring_dashboard: 3
google_monitoring_monitored_project: 2
google_project: 3
google_project_iam_binding: 4
google_project_iam_member: 17
google_project_service: 23
google_project_service_identity: 17
google_project_iam_binding: 2
google_project_iam_member: 19
google_project_service: 25
google_project_service_identity: 19
google_storage_bucket_object: 2
google_tags_tag_binding: 3
google_vpc_access_connector: 2
modules: 43
random_id: 2
resources: 238
resources: 242
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ billing_account = {
id = "000000-111111-222222"
}
custom_roles = {
project_iam_viewer = "organizations/123456789012/roles/bar"
service_project_network_admin = "organizations/123456789012/roles/foo"
}
dns = {
Expand Down
10 changes: 5 additions & 5 deletions tests/fast/stages/s2_networking_c_separate_envs/simple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ counts:
google_monitoring_alert_policy: 4
google_monitoring_dashboard: 6
google_project: 2
google_project_iam_binding: 4
google_project_iam_member: 14
google_project_service: 18
google_project_service_identity: 14
google_project_iam_binding: 2
google_project_iam_member: 16
google_project_service: 20
google_project_service_identity: 16
google_storage_bucket_object: 2
google_tags_tag_binding: 2
google_vpc_access_connector: 2
modules: 22
random_id: 2
resources: 205
resources: 209
29 changes: 29 additions & 0 deletions tests/fast/stages/s2_security/simple.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ automation = {
billing_account = {
id = "000000-111111-222222"
}
custom_roles = {
project_iam_viewer = "organizations/123456789012/roles/bar"
service_project_network_admin = "organizations/123456789012/roles/foo"
}
environment_names = {
dev = "development"
prod = "production"
Expand Down Expand Up @@ -38,6 +42,31 @@ service_accounts = {
project-factory-dev = "foobar@iam.gserviceaccount.com"
project-factory-prod = "foobar@iam.gserviceaccount.com"
}
stage_config = {
security = {
iam_delegated_principals = {
dev = [
"serviceAccount:fast2-dev-resman-gcve-0@fast2-prod-iac-core-0.iam.gserviceaccount.com",
"serviceAccount:fast2-dev-resman-pf-0@fast2-prod-iac-core-0.iam.gserviceaccount.com"
]
prod = [
"serviceAccount:fast2-prod-resman-gcve-0@fast2-prod-iac-core-0.iam.gserviceaccount.com",
"serviceAccount:fast2-prod-resman-pf-0@fast2-prod-iac-core-0.iam.gserviceaccount.com"
]
}
iam_viewer_principals = {
dev = [
"serviceAccount:fast2-dev-resman-gcve-0r@fast2-prod-iac-core-0.iam.gserviceaccount.com",
"serviceAccount:fast2-dev-resman-pf-0r@fast2-prod-iac-core-0.iam.gserviceaccount.com"
]
prod = [
"serviceAccount:fast2-prod-resman-gcve-0r@fast2-prod-iac-core-0.iam.gserviceaccount.com",
"serviceAccount:fast2-prod-resman-pf-0r@fast2-prod-iac-core-0.iam.gserviceaccount.com"
]
}
short_name = "net"
}
}
tag_values = {
"environment/development" = "tagValues/12345"
"environment/production" = "tagValues/12346"
Expand Down
3 changes: 2 additions & 1 deletion tests/fast/stages/s2_security/simple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,11 @@ counts:
google_kms_crypto_key_iam_binding: 8
google_kms_key_ring: 8
google_project: 2
google_project_iam_binding: 4
google_project_iam_member: 6
google_project_service: 14
google_project_service_identity: 12
google_storage_bucket_object: 1
google_tags_tag_binding: 2
modules: 11
resources: 62
resources: 66

0 comments on commit 4b149e3

Please sign in to comment.