Skip to content

Commit 0bd19ae

Browse files
e2e Tests for cloudSQL-MySQL
1 parent 46b7c59 commit 0bd19ae

19 files changed

Lines changed: 375 additions & 59 deletions

cloudsql-mysql-plugin/src/e2e-test/features/sink/CloudMySqlDesignTime.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Feature: CloudMySql sink- Verify CloudMySql sink plugin design time scenarios
88
Then Navigate to the properties page of plugin: "CloudSQL MySQL"
99
Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "cloudsql-mysql"
1010
Then Select radio button plugin property: "instanceType" with value: "public"
11-
Then Enter input plugin property: "connectionName" with value: "cdf-athena:us-central1:sql-automation-test-instance"
11+
Then Enter input plugin property: "connectionName" with value: "ConnectionName"
1212
Then Enter input plugin property: "referenceName" with value: "RefName"
1313
Then Enter input plugin property: "database" with value: "TestDatabase"
1414
Then Enter input plugin property: "tableName" with value: "mytable"
@@ -22,7 +22,7 @@ Feature: CloudMySql sink- Verify CloudMySql sink plugin design time scenarios
2222
Then Navigate to the properties page of plugin: "CloudSQL MySQL"
2323
Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "cloudsql-mysql"
2424
Then Select radio button plugin property: "instanceType" with value: "public"
25-
Then Enter input plugin property: "connectionName" with value: "cdf-athena:us-central1:sql-automation-test-instance"
25+
Then Enter input plugin property: "connectionName" with value: "ConnectionName"
2626
Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
2727
Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
2828
Then Enter key value pairs for plugin property: "connectionArguments" with values from json: "connectionArgumentsList"

cloudsql-mysql-plugin/src/e2e-test/features/sink/CloudMySqlDesignTimeValidation.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Feature: CloudMySql sink- Verify ,Mysql sink plugin design time validation scena
1010
Then Navigate to the properties page of plugin: "CloudSQL MySQL"
1111
Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "cloudsql-mysql"
1212
Then Select radio button plugin property: "instanceType" with value: "public"
13-
Then Enter input plugin property: "connectionName" with value: "cdf-athena:us-central1:sql-automation-test-instance"
13+
Then Enter input plugin property: "connectionName" with value: "ConnectionName"
1414
Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
1515
Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
1616
Then Enter input plugin property: "referenceName" with value: "RefName"
@@ -23,7 +23,7 @@ Feature: CloudMySql sink- Verify ,Mysql sink plugin design time validation scena
2323
Then Navigate to the properties page of plugin: "CloudSQL MySQL2"
2424
Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "cloudsql-mysql"
2525
Then Select radio button plugin property: "instanceType" with value: "public"
26-
Then Enter input plugin property: "connectionName" with value: "cdf-athena:us-central1:sql-automation-test-instance"
26+
Then Enter input plugin property: "connectionName" with value: "ConnectionName"
2727
Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
2828
Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
2929
Then Enter input plugin property: "referenceName" with value: "RefName"
@@ -42,7 +42,7 @@ Feature: CloudMySql sink- Verify ,Mysql sink plugin design time validation scena
4242
Then Navigate to the properties page of plugin: "CloudSQL MySQL"
4343
Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "cloudsql-mysql"
4444
Then Select radio button plugin property: "instanceType" with value: "public"
45-
Then Enter input plugin property: "connectionName" with value: "cdf-athena:us-central1:sql-automation-test-instance"
45+
Then Enter input plugin property: "connectionName" with value: "ConnectionName"
4646
Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
4747
Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
4848
Then Enter input plugin property: "referenceName" with value: "RefName"
@@ -55,7 +55,7 @@ Feature: CloudMySql sink- Verify ,Mysql sink plugin design time validation scena
5555
Then Navigate to the properties page of plugin: "CloudSQL MySQL2"
5656
Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "cloudsql-mysql"
5757
Then Select radio button plugin property: "instanceType" with value: "public"
58-
Then Enter input plugin property: "connectionName" with value: "cdf-athena:us-central1:sql-automation-test-instance"
58+
Then Enter input plugin property: "connectionName" with value: "ConnectionName"
5959
Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
6060
Then Enter input plugin property: "referenceName" with value: "invalidRefName"
6161
Then Enter input plugin property: "database" with value: "TestDatabase"
@@ -70,7 +70,7 @@ Feature: CloudMySql sink- Verify ,Mysql sink plugin design time validation scena
7070
Then Navigate to the properties page of plugin: "CloudSQL MySQL"
7171
Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "cloudsql-mysql"
7272
Then Select radio button plugin property: "instanceType" with value: "public"
73-
Then Enter input plugin property: "connectionName" with value: "cdf-athena:us-central1:sql-automation-test-instance"
73+
Then Enter input plugin property: "connectionName" with value: "ConnectionName"
7474
Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
7575
Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
7676
Then Enter input plugin property: "referenceName" with value: "invalidRef"
@@ -87,7 +87,7 @@ Feature: CloudMySql sink- Verify ,Mysql sink plugin design time validation scena
8787
Then Navigate to the properties page of plugin: "CloudSQL MySQL"
8888
Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "cloudsql-mysql"
8989
Then Select radio button plugin property: "instanceType" with value: "public"
90-
Then Enter input plugin property: "connectionName" with value: "cdf-athena:us-central1:sql-automation-test-instance"
90+
Then Enter input plugin property: "connectionName" with value: "ConnectionName"
9191
Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
9292
Then Enter key value pairs for plugin property: "connectionArguments" with values from json: "connectionArgumentsList"
9393
Then Enter input plugin property: "referenceName" with value: "RefName"

cloudsql-mysql-plugin/src/e2e-test/features/sink/CloudMySqlDesignTimeWithMacro.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Feature: CloudMySql sink- Verify CloudMySql sink plugin design time macro scenar
66
When Select plugin: "CloudSQL MySQL" from the plugins list as: "Sink"
77
Then Navigate to the properties page of plugin: "CloudSQL MySQL"
88
Then Click on the Macro button of Property: "jdbcPluginName" and set the value to: "cloudsql-mysql"
9-
Then Enter input plugin property: "connectionName" with value: "cdf-athena:us-central1:sql-automation-test-instance"
9+
Then Enter input plugin property: "connectionName" with value: "ConnectionName"
1010
Then Select radio button plugin property: "instanceType" with value: "public"
1111
Then Click on the Macro button of Property: "user" and set the value to: "username"
1212
Then Click on the Macro button of Property: "password" and set the value to: "password"
@@ -23,7 +23,7 @@ Feature: CloudMySql sink- Verify CloudMySql sink plugin design time macro scenar
2323
When Select plugin: "CloudSQL MySQL" from the plugins list as: "Sink"
2424
Then Navigate to the properties page of plugin: "CloudSQL MySQL"
2525
Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "cloudsql-mysql"
26-
Then Enter input plugin property: "connectionName" with value: "cdf-athena:us-central1:sql-automation-test-instance"
26+
Then Enter input plugin property: "connectionName" with value: "ConnectionName"
2727
Then Select radio button plugin property: "instanceType" with value: "public"
2828
Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
2929
Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields

cloudsql-mysql-plugin/src/e2e-test/features/sink/CloudMySqlRunTime.feature

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Feature: CloudMySql - Verify data transfer from BigQuery source to CloudMySql si
1010
Then Navigate to the properties page of plugin: "BigQuery"
1111
Then Replace input plugin property: "project" with value: "projectId"
1212
Then Enter input plugin property: "datasetProject" with value: "projectId"
13-
Then Override Service account details if set in environment variables
1413
Then Enter input plugin property: "referenceName" with value: "BQReferenceName"
1514
Then Enter input plugin property: "dataset" with value: "dataset"
1615
Then Enter input plugin property: "table" with value: "bqTargetTable"
@@ -20,7 +19,7 @@ Feature: CloudMySql - Verify data transfer from BigQuery source to CloudMySql si
2019
Then Navigate to the properties page of plugin: "CloudSQL MySQL"
2120
Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "cloudsql-mysql"
2221
Then Select radio button plugin property: "instanceType" with value: "public"
23-
Then Enter input plugin property: "connectionName" with value: "cdf-athena:us-central1:sql-automation-test-instance"
22+
Then Enter input plugin property: "connectionName" with value: "ConnectionName"
2423
Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
2524
Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
2625
Then Enter input plugin property: "referenceName" with value: "RefName"
@@ -53,7 +52,6 @@ Feature: CloudMySql - Verify data transfer from BigQuery source to CloudMySql si
5352
Then Navigate to the properties page of plugin: "BigQuery"
5453
Then Replace input plugin property: "project" with value: "projectId"
5554
Then Enter input plugin property: "datasetProject" with value: "projectId"
56-
Then Override Service account details if set in environment variables
5755
Then Enter input plugin property: "referenceName" with value: "BQReferenceName"
5856
Then Enter input plugin property: "dataset" with value: "dataset"
5957
Then Enter input plugin property: "table" with value: "bqTargetTable"
@@ -63,7 +61,7 @@ Feature: CloudMySql - Verify data transfer from BigQuery source to CloudMySql si
6361
Then Navigate to the properties page of plugin: "CloudSQL MySQL"
6462
Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "cloudsql-mysql"
6563
Then Select radio button plugin property: "instanceType" with value: "public"
66-
Then Enter input plugin property: "connectionName" with value: "cdf-athena:us-central1:sql-automation-test-instance"
64+
Then Enter input plugin property: "connectionName" with value: "ConnectionName"
6765
Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
6866
Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
6967
Then Enter input plugin property: "referenceName" with value: "RefName"

cloudsql-mysql-plugin/src/e2e-test/features/sink/CloudMySqlRunTimeMacro.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Feature: CloudMySql - Verify data transfer to CloudMySql sink with macro argumen
1919
Then Navigate to the properties page of plugin: "CloudSQL MySQL"
2020
Then Click on the Macro button of Property: "jdbcPluginName" and set the value to: "cloudsql-mysql"
2121
Then Select radio button plugin property: "instanceType" with value: "public"
22-
Then Enter input plugin property: "connectionName" with value: "cdf-athena:us-central1:sql-automation-test-instance"
22+
Then Enter input plugin property: "connectionName" with value: "ConnectionName"
2323
Then Click on the Macro button of Property: "user" and set the value to: "username"
2424
Then Click on the Macro button of Property: "password" and set the value to: "password"
2525
Then Enter input plugin property: "referenceName" with value: "RefName"

cloudsql-mysql-plugin/src/e2e-test/features/source/CloudMySqlDesignTime.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Feature: CloudMySql source- Verify CloudMySql source plugin design time scenario
1010
Then Click on the Macro button of Property: "user" and set the value to: "username"
1111
Then Click on the Macro button of Property: "password" and set the value to: "password"
1212
Then Select radio button plugin property: "instanceType" with value: "public"
13-
Then Enter input plugin property: "connectionName" with value: "cdf-athena:us-central1:sql-automation-test-instance"
13+
Then Enter input plugin property: "connectionName" with value: "ConnectionName"
1414
Then Enter input plugin property: "referenceName" with value: "RefName"
1515
Then Enter input plugin property: "database" with value: "TestDatabase"
1616
Then Enter textarea plugin property: "importQuery" with value: "insertQuery"
@@ -45,7 +45,7 @@ Feature: CloudMySql source- Verify CloudMySql source plugin design time scenario
4545
Then Navigate to the properties page of plugin: "CloudSQL MySQL"
4646
Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "cloudsql-mysql"
4747
Then Select radio button plugin property: "instanceType" with value: "public"
48-
Then Enter input plugin property: "connectionName" with value: "connection"
48+
Then Enter input plugin property: "connectionName" with value: "ConnectionName"
4949
Then Enter key value pairs for plugin property: "connectionArguments" with values from json: "connectionArgumentsList"
5050
Then Enter input plugin property: "referenceName" with value: "referencename"
5151
Then Enter input plugin property: "database" with value: "TestDatabase"

0 commit comments

Comments
 (0)