Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align tests and Infracost tags #25

Merged
merged 1 commit into from
Feb 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# CodeRabbit Configuration File
# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json
# https://coderabbit.ai/docs/get-started/customize-coderabbit

# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

early_access: true
reviews:
request_changes_workflow: true
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repos:
verbose: false

- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.86.0
rev: v1.88.0
hooks:
- id: terraform_fmt

Expand Down
1 change: 0 additions & 1 deletion test/fixtures/default_cloud_sql/backend.tf

This file was deleted.

12 changes: 12 additions & 0 deletions test/fixtures/default_cloud_sql/backend.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Backend Configuration
# https://www.terraform.io/language/settings/backends/configuration

terraform {

# Google Cloud Storage
# https://www.terraform.io/language/settings/backends/gcs

backend "gcs" {
bucket = "plt-lz-testing-2c8b-sb"
}
}
5 changes: 3 additions & 2 deletions test/fixtures/default_cloud_sql/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ module "test" {
instance_name = var.instance_name

labels = {
env = "sb"
team = "testing"
env = "sb"
repository = "terraform-google-cloud-sql"
team = "testing"
}

network = "kitchen-vpc"
Expand Down
1 change: 0 additions & 1 deletion test/fixtures/default_cloud_sql/outputs.tf

This file was deleted.

30 changes: 30 additions & 0 deletions test/fixtures/default_cloud_sql/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
output "client_cert" {
value = {
for cert in var.client_certs : cert => module.test.client_cert[cert]
}
sensitive = true
}

output "instance_server_ca_cert" {
value = module.test.instance_server_ca_cert
sensitive = true
}

output "private_key" {
value = {
for key in var.client_certs : key => module.test.private_key[key]
}
sensitive = true
}

output "private_ip_address" {
value = module.test.private_ip_address
}

output "project_id" {
value = module.test.project_id
}

output "sql_instance" {
value = module.test.sql_instance
}
1 change: 0 additions & 1 deletion test/fixtures/default_cloud_sql/variables.tf

This file was deleted.

22 changes: 22 additions & 0 deletions test/fixtures/default_cloud_sql/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
variable "client_certs" {
type = set(string)
default = [
"client-cert1",
"client-cert2"
]
}

variable "host_project_id" {
type = string
default = "test-vpc-host-tf12-sb"
}

variable "project_id" {
type = string
default = "test-gke-fleet-member-tfc5-sb"
}

variable "instance_name" {
type = string
default = "test"
}
12 changes: 0 additions & 12 deletions test/fixtures/shared/backend.tf

This file was deleted.

30 changes: 0 additions & 30 deletions test/fixtures/shared/outputs.tf

This file was deleted.

22 changes: 0 additions & 22 deletions test/fixtures/shared/variables.tf

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Chef Inspec
# https://docs.chef.io/inspec/profiles/#inspecyml

name: default_cloud_sql
name: InSpec GCP (Google Cloud Platform) Resource Pack

# Profile Dependencies
# https://docs.chef.io/inspec/profiles/#profile-dependencies
Expand All @@ -10,4 +10,4 @@ name: default_cloud_sql

depends:
- name: inspec_gcp
url: https://github.com/inspec/inspec-gcp/archive/v1.11.3.tar.gz
url: https://github.com/inspec/inspec-gcp/archive/v1.11.93.tar.gz
Loading