diff --git a/.circleci/config.yml b/.circleci/config.yml index 92aa18bbd..2412f2a50 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/test/azure/terraform_azure_aci_example_test.go b/test/azure/terraform_azure_aci_example_test.go index e4921e003..465105749 100644 --- a/test/azure/terraform_azure_aci_example_test.go +++ b/test/azure/terraform_azure_aci_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_acr_example_test.go b/test/azure/terraform_azure_acr_example_test.go index b0682a98b..cd6fc1825 100644 --- a/test/azure/terraform_azure_acr_example_test.go +++ b/test/azure/terraform_azure_acr_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_actiongroup_example_test.go b/test/azure/terraform_azure_actiongroup_example_test.go index 1b37b6e9c..299d88043 100644 --- a/test/azure/terraform_azure_actiongroup_example_test.go +++ b/test/azure/terraform_azure_actiongroup_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_aks_example_test.go b/test/azure/terraform_azure_aks_example_test.go index 6c526f02f..e8eed94cb 100644 --- a/test/azure/terraform_azure_aks_example_test.go +++ b/test/azure/terraform_azure_aks_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_availabilityset_example_test.go b/test/azure/terraform_azure_availabilityset_example_test.go index e34261b1c..244e63c39 100644 --- a/test/azure/terraform_azure_availabilityset_example_test.go +++ b/test/azure/terraform_azure_availabilityset_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_cosmosdb_example_test.go b/test/azure/terraform_azure_cosmosdb_example_test.go index 6d285c08e..9458b761c 100644 --- a/test/azure/terraform_azure_cosmosdb_example_test.go +++ b/test/azure/terraform_azure_cosmosdb_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_disk_example_test.go b/test/azure/terraform_azure_disk_example_test.go index c932555b1..bd6939728 100644 --- a/test/azure/terraform_azure_disk_example_test.go +++ b/test/azure/terraform_azure_disk_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_example_test.go b/test/azure/terraform_azure_example_test.go index 4609cdc84..56e849dbf 100644 --- a/test/azure/terraform_azure_example_test.go +++ b/test/azure/terraform_azure_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_frontdoor_example_test.go b/test/azure/terraform_azure_frontdoor_example_test.go index 1d4a3e789..0f45d1a2c 100644 --- a/test/azure/terraform_azure_frontdoor_example_test.go +++ b/test/azure/terraform_azure_frontdoor_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_functionapp_example_test.go b/test/azure/terraform_azure_functionapp_example_test.go index 3ef8fb48b..5a61af2bc 100644 --- a/test/azure/terraform_azure_functionapp_example_test.go +++ b/test/azure/terraform_azure_functionapp_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_keyvault_example_test.go b/test/azure/terraform_azure_keyvault_example_test.go index 3f4129c97..a43a23d8c 100644 --- a/test/azure/terraform_azure_keyvault_example_test.go +++ b/test/azure/terraform_azure_keyvault_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_loadbalancer_example_test.go b/test/azure/terraform_azure_loadbalancer_example_test.go index 9c7d08507..8fad24205 100644 --- a/test/azure/terraform_azure_loadbalancer_example_test.go +++ b/test/azure/terraform_azure_loadbalancer_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_loganalytics_example_test.go b/test/azure/terraform_azure_loganalytics_example_test.go index 934dbf7f5..50b866aa0 100644 --- a/test/azure/terraform_azure_loganalytics_example_test.go +++ b/test/azure/terraform_azure_loganalytics_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_monitor_example_test.go b/test/azure/terraform_azure_monitor_example_test.go index dc072ba7d..10e11212d 100644 --- a/test/azure/terraform_azure_monitor_example_test.go +++ b/test/azure/terraform_azure_monitor_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_mysqldb_example_test.go b/test/azure/terraform_azure_mysqldb_example_test.go index 6c25ebe4b..96fce2b2a 100644 --- a/test/azure/terraform_azure_mysqldb_example_test.go +++ b/test/azure/terraform_azure_mysqldb_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_network_example_test.go b/test/azure/terraform_azure_network_example_test.go index 9f7ed3276..44d271594 100644 --- a/test/azure/terraform_azure_network_example_test.go +++ b/test/azure/terraform_azure_network_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_nsg_example_test.go b/test/azure/terraform_azure_nsg_example_test.go index cb641ba86..b931cc52b 100644 --- a/test/azure/terraform_azure_nsg_example_test.go +++ b/test/azure/terraform_azure_nsg_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_postgresql_example_test.go b/test/azure/terraform_azure_postgresql_example_test.go index 48775354c..d7c61b453 100644 --- a/test/azure/terraform_azure_postgresql_example_test.go +++ b/test/azure/terraform_azure_postgresql_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_recoveryservices_example_test.go b/test/azure/terraform_azure_recoveryservices_example_test.go index d95052222..ae414bc81 100644 --- a/test/azure/terraform_azure_recoveryservices_example_test.go +++ b/test/azure/terraform_azure_recoveryservices_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_resourcegroup_example_test.go b/test/azure/terraform_azure_resourcegroup_example_test.go index d53c35758..af8757c38 100644 --- a/test/azure/terraform_azure_resourcegroup_example_test.go +++ b/test/azure/terraform_azure_resourcegroup_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_servicebus_example_test.go b/test/azure/terraform_azure_servicebus_example_test.go index 64dd12f53..f8966d3e2 100644 --- a/test/azure/terraform_azure_servicebus_example_test.go +++ b/test/azure/terraform_azure_servicebus_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_sqldb_example_test.go b/test/azure/terraform_azure_sqldb_example_test.go index c82ab153f..dff897136 100644 --- a/test/azure/terraform_azure_sqldb_example_test.go +++ b/test/azure/terraform_azure_sqldb_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_storage_example_test.go b/test/azure/terraform_azure_storage_example_test.go index ec71d0fb3..e15543bcc 100644 --- a/test/azure/terraform_azure_storage_example_test.go +++ b/test/azure/terraform_azure_storage_example_test.go @@ -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 diff --git a/test/azure/terraform_azure_vm_example_test.go b/test/azure/terraform_azure_vm_example_test.go index 35f3aac8d..5df9ebeee 100644 --- a/test/azure/terraform_azure_vm_example_test.go +++ b/test/azure/terraform_azure_vm_example_test.go @@ -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 diff --git a/test/gcp/packer_gcp_basic_example_test.go b/test/gcp/packer_gcp_basic_example_test.go index bfc3b35b2..48cee8c2d 100644 --- a/test/gcp/packer_gcp_basic_example_test.go +++ b/test/gcp/packer_gcp_basic_example_test.go @@ -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. diff --git a/test/gcp/terraform_gcp_example_test.go b/test/gcp/terraform_gcp_example_test.go index 6b14ff176..72cfd74d2 100644 --- a/test/gcp/terraform_gcp_example_test.go +++ b/test/gcp/terraform_gcp_example_test.go @@ -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. diff --git a/test/gcp/terraform_gcp_hello_world_example_test.go b/test/gcp/terraform_gcp_hello_world_example_test.go index 549f97bc6..8c48e7448 100644 --- a/test/gcp/terraform_gcp_hello_world_example_test.go +++ b/test/gcp/terraform_gcp_hello_world_example_test.go @@ -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. diff --git a/test/gcp/terraform_gcp_ig_example_test.go b/test/gcp/terraform_gcp_ig_example_test.go index 13e6423ef..ebf7e7b07 100644 --- a/test/gcp/terraform_gcp_ig_example_test.go +++ b/test/gcp/terraform_gcp_ig_example_test.go @@ -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. diff --git a/test/helm_basic_example_integration_test.go b/test/helm_basic_example_integration_test.go index 59f3e9bbf..b87132805 100644 --- a/test/helm_basic_example_integration_test.go +++ b/test/helm_basic_example_integration_test.go @@ -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 diff --git a/test/helm_basic_example_template_test.go b/test/helm_basic_example_template_test.go index 1ceb6d1bd..da120e3d2 100644 --- a/test/helm_basic_example_template_test.go +++ b/test/helm_basic_example_template_test.go @@ -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 diff --git a/test/kubernetes_basic_example_service_check_test.go b/test/kubernetes_basic_example_service_check_test.go index 6c4519a12..150012a70 100644 --- a/test/kubernetes_basic_example_service_check_test.go +++ b/test/kubernetes_basic_example_service_check_test.go @@ -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 diff --git a/test/kubernetes_basic_example_test.go b/test/kubernetes_basic_example_test.go index 62927001e..d6aa83bd6 100644 --- a/test/kubernetes_basic_example_test.go +++ b/test/kubernetes_basic_example_test.go @@ -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 diff --git a/test/kubernetes_hello_world_example_test.go b/test/kubernetes_hello_world_example_test.go index 32b023fd2..5a508d027 100644 --- a/test/kubernetes_hello_world_example_test.go +++ b/test/kubernetes_hello_world_example_test.go @@ -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 diff --git a/test/kubernetes_rbac_example_test.go b/test/kubernetes_rbac_example_test.go index 42a52c643..d83d82793 100644 --- a/test/kubernetes_rbac_example_test.go +++ b/test/kubernetes_rbac_example_test.go @@ -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