1
0
mirror of synced 2025-12-19 18:05:44 -05:00

Rename MySQL test to show it's a public ip test

This commit is contained in:
Petri Autero
2019-02-07 10:12:36 +02:00
parent a55fe6154b
commit c7d23eb006
6 changed files with 101 additions and 4 deletions

3
test/Gopkg.lock generated
View File

@@ -399,10 +399,11 @@
input-imports = [
"github.com/go-sql-driver/mysql",
"github.com/gruntwork-io/terratest/modules/gcp",
"github.com/gruntwork-io/terratest/modules/random",
"github.com/gruntwork-io/terratest/modules/logger",
"github.com/gruntwork-io/terratest/modules/terraform",
"github.com/gruntwork-io/terratest/modules/test-structure",
"github.com/stretchr/testify/assert",
"github.com/stretchr/testify/require",
]
solver-name = "gps-cdcl"
solver-version = 1

View File

@@ -18,9 +18,9 @@ import (
const DB_NAME = "testdb"
const DB_USER = "testuser"
const DB_PASS = "testpassword"
const NAME_PREFIX = "mysql-test"
const NAME_PREFIX = "mysql-public"
const MYSQL_VERSION = "MYSQL_5_7"
const EXAMPLE_NAME = "cloud-sql-mysql"
const EXAMPLE_NAME = "mysql-public-ip"
const KEY_REGION = "region"
const KEY_PROJECT = "project"
@@ -30,7 +30,7 @@ const OUTPUT_PROXY_CONNECTION = "proxy_connection"
const OUTPUT_DB_NAME = "db_name"
const OUTPUT_PUBLIC_IP = "public_ip"
func TestCloudSQLMySql(t *testing.T) {
func TestMySqlPublicIP(t *testing.T) {
t.Parallel()
//os.Setenv("SKIP_bootstrap", "true")