Skip to content

Commit

Permalink
Reformat the test files with gofmt, add go version 1.17 to circleci c…
Browse files Browse the repository at this point in the history
…onfiguration and execute pre-commit hooks
  • Loading branch information
ZPascal committed Dec 23, 2021
1 parent 6015ded commit 58e8018
Show file tree
Hide file tree
Showing 35 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env: &env
PACKER_VERSION: 1.7.4
TERRAGRUNT_VERSION: v0.32.3
OPA_VERSION: v0.33.1
GO_VERSION: 1.16.3
GO_VERSION: 1.17
GO111MODULE: auto
K8S_VERSION: v1.15.0 # Same as EKS
MINIKUBE_VERSION: v1.9.2
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_aci_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_acr_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_actiongroup_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_aks_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_availabilityset_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_cosmosdb_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_disk_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure || (azureslim && compute)
// +build azure azureslim,compute

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_frontdoor_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_functionapp_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_keyvault_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_loadbalancer_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_loganalytics_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_monitor_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_mysqldb_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_network_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure || (azureslim && network)
// +build azure azureslim,network

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_nsg_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_postgresql_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_resourcegroup_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_servicebus_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_sqldb_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_storage_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure
// +build azure

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/azure/terraform_azure_vm_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build azure || (azureslim && compute)
// +build azure azureslim,compute

// NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
Expand Down
1 change: 1 addition & 0 deletions test/gcp/packer_gcp_basic_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build gcp
// +build gcp

// NOTE: We use build tags to differentiate GCP testing for better isolation and parallelism when executing our tests.
Expand Down
1 change: 1 addition & 0 deletions test/gcp/terraform_gcp_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build gcp
// +build gcp

// NOTE: We use build tags to differentiate GCP testing for better isolation and parallelism when executing our tests.
Expand Down
1 change: 1 addition & 0 deletions test/gcp/terraform_gcp_hello_world_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build gcp
// +build gcp

// NOTE: We use build tags to differentiate GCP testing for better isolation and parallelism when executing our tests.
Expand Down
1 change: 1 addition & 0 deletions test/gcp/terraform_gcp_ig_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build gcp
// +build gcp

// NOTE: We use build tags to differentiate GCP testing for better isolation and parallelism when executing our tests.
Expand Down
1 change: 1 addition & 0 deletions test/helm_basic_example_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build kubeall || helm
// +build kubeall helm

// NOTE: we have build tags to differentiate kubernetes tests from non-kubernetes tests, and further differentiate helm
Expand Down
1 change: 1 addition & 0 deletions test/helm_basic_example_template_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build kubeall || helm
// +build kubeall helm

// **NOTE**: we have build tags to differentiate kubernetes tests from non-kubernetes tests, and further differentiate helm
Expand Down
1 change: 1 addition & 0 deletions test/kubernetes_basic_example_service_check_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build kubeall || kubernetes
// +build kubeall kubernetes

// NOTE: we have build tags to differentiate kubernetes tests from non-kubernetes tests. This is done because minikube
Expand Down
1 change: 1 addition & 0 deletions test/kubernetes_basic_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build kubeall || kubernetes
// +build kubeall kubernetes

// NOTE: we have build tags to differentiate kubernetes tests from non-kubernetes tests. This is done because minikube
Expand Down
2 changes: 2 additions & 0 deletions test/kubernetes_hello_world_example_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//go:build kubeall || kubernetes
// +build kubeall kubernetes

// NOTE: See the notes in the other Kubernetes example tests for why this build tag is included.

package test
Expand Down
1 change: 1 addition & 0 deletions test/kubernetes_rbac_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build kubeall || kubernetes
// +build kubeall kubernetes

// NOTE: we have build tags to differentiate kubernetes tests from non-kubernetes tests. This is done because minikube
Expand Down

0 comments on commit 58e8018

Please sign in to comment.