Skip to content

Commit

Permalink
mysql exp
Browse files Browse the repository at this point in the history
  • Loading branch information
aasthabharill-google committed Jul 18, 2024
1 parent 524143f commit a188475
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions testing/mysql/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,12 @@ func TestIntegration_MYSQL_ForeignKeyActionMigration(t *testing.T) {
dbURI := fmt.Sprintf("projects/%s/instances/%s/databases/%s", projectID, instanceID, dbName)
filePrefix := filepath.Join(tmpdir, dbName)

// host, user, srcDb, password := os.Getenv("MYSQLHOST"), os.Getenv("MYSQLUSER"), "test_foreign_key_action_data", os.Getenv("MYSQLPWD")
host, user, srcDb, password := os.Getenv("MYSQLHOST"), os.Getenv("MYSQLUSER"), "test_foreign_key_action_data", os.Getenv("MYSQLPWD")
envVars := common.ClearEnvVariables([]string{"MYSQLHOST", "MYSQLUSER", "MYSQLPWD"})
// args := fmt.Sprintf("schema-and-data -source=%s -prefix=%s -source-profile='host=%s,user=%s,dbName=%s,password=%s' -target-profile='instance=%s,dbName=%s'", constants.MYSQL, filePrefix, host, user, srcDb, password, instanceID, dbName)
args := fmt.Sprintf("schema-and-data -source=%s -prefix=%s -source-profile='host=localhost,user=root,dbName=test_foreign_key_action_data,password=root' -target-profile='instance=test-instance,dbName=mysql-foreignkey-actions'", constants.MYSQL, filePrefix)
err := common.RunCommand(args, "emulator-test-project")
args := fmt.Sprintf("schema-and-data -source=%s -prefix=%s -source-profile='host=%s,user=%s,dbName=%s,password=%s' -target-profile='instance=%s,dbName=%s'", constants.MYSQL, filePrefix, host, user, srcDb, password, instanceID, dbName)
// args := fmt.Sprintf("schema-and-data -source=%s -prefix=%s -source-profile='host=localhost,user=root,dbName=test_foreign_key_action_data,password=root' -target-profile='instance=test-instance,dbName=mysql-foreignkey-actions'", constants.MYSQL, filePrefix)
// err := common.RunCommand(args, "emulator-test-project")
err := common.RunCommand(args, projectID)
common.RestoreEnvVariables(envVars)
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit a188475

Please sign in to comment.