@@ -43,8 +43,9 @@ data "redshift_schema" "schema" {
43
43
44
44
// Acceptance test for external redshift schema using AWS Glue Data Catalog
45
45
// The following environment variables must be set, otherwise the test will be skipped:
46
- // REDSHIFT_EXTERNAL_SCHEMA_DATA_CATALOG_DATABASE - source database name
47
- // REDSHIFT_EXTERNAL_SCHEMA_RDS_DATA_CATALOG_IAM_ROLE_ARNS - comma-separated list of ARNs to use
46
+ //
47
+ // REDSHIFT_EXTERNAL_SCHEMA_DATA_CATALOG_DATABASE - source database name
48
+ // REDSHIFT_EXTERNAL_SCHEMA_RDS_DATA_CATALOG_IAM_ROLE_ARNS - comma-separated list of ARNs to use
48
49
func TestAccDataSourceRedshiftSchema_ExternalDataCatalog (t * testing.T ) {
49
50
dbName := getEnvOrSkip ("REDSHIFT_EXTERNAL_SCHEMA_DATA_CATALOG_DATABASE" , t )
50
51
iamRoleArnsRaw := getEnvOrSkip ("REDSHIFT_EXTERNAL_SCHEMA_DATA_CATALOG_IAM_ROLE_ARNS" , t )
@@ -95,11 +96,14 @@ data "redshift_schema" "spectrum" {
95
96
96
97
// Acceptance test for external redshift schema using Hive metastore
97
98
// The following environment variables must be set, otherwise the test will be skipped:
98
- // REDSHIFT_EXTERNAL_SCHEMA_HIVE_DATABASE - source database name
99
- // REDSHIFT_EXTERNAL_SCHEMA_HIVE_HOSTNAME - hive metastore database endpoint FQDN or IP address
100
- // REDSHIFT_EXTERNAL_SCHEMA_HIVE_IAM_ROLE_ARNS - comma-separated list of ARNs to use
99
+ //
100
+ // REDSHIFT_EXTERNAL_SCHEMA_HIVE_DATABASE - source database name
101
+ // REDSHIFT_EXTERNAL_SCHEMA_HIVE_HOSTNAME - hive metastore database endpoint FQDN or IP address
102
+ // REDSHIFT_EXTERNAL_SCHEMA_HIVE_IAM_ROLE_ARNS - comma-separated list of ARNs to use
103
+ //
101
104
// Additionally, the following environment variables may be optionally set:
102
- // REDSHIFT_EXTERNAL_SCHEMA_HIVE_PORT - hive metastore port. Default is 9083
105
+ //
106
+ // REDSHIFT_EXTERNAL_SCHEMA_HIVE_PORT - hive metastore port. Default is 9083
103
107
func TestAccDataSourceRedshiftSchema_ExternalHive (t * testing.T ) {
104
108
dbName := getEnvOrSkip ("REDSHIFT_EXTERNAL_SCHEMA_HIVE_DATABASE" , t )
105
109
dbHostname := getEnvOrSkip ("REDSHIFT_EXTERNAL_SCHEMA_HIVE_HOSTNAME" , t )
@@ -159,13 +163,16 @@ data "redshift_schema" "hive" {
159
163
160
164
// Acceptance test for external redshift schema using RDS Postgres
161
165
// The following environment variables must be set, otherwise the test will be skipped:
162
- // REDSHIFT_EXTERNAL_SCHEMA_RDS_POSTGRES_DATABASE - source database name
163
- // REDSHIFT_EXTERNAL_SCHEMA_RDS_POSTGRES_HOSTNAME - RDS endpoint FQDN or IP address
164
- // REDSHIFT_EXTERNAL_SCHEMA_RDS_POSTGRES_IAM_ROLE_ARNS - comma-separated list of ARNs to use
165
- // REDSHIFT_EXTERNAL_SCHEMA_RDS_POSTGRES_SECRET_ARN - ARN of the secret in Secrets Manager containing credentials for authenticating to RDS
166
+ //
167
+ // REDSHIFT_EXTERNAL_SCHEMA_RDS_POSTGRES_DATABASE - source database name
168
+ // REDSHIFT_EXTERNAL_SCHEMA_RDS_POSTGRES_HOSTNAME - RDS endpoint FQDN or IP address
169
+ // REDSHIFT_EXTERNAL_SCHEMA_RDS_POSTGRES_IAM_ROLE_ARNS - comma-separated list of ARNs to use
170
+ // REDSHIFT_EXTERNAL_SCHEMA_RDS_POSTGRES_SECRET_ARN - ARN of the secret in Secrets Manager containing credentials for authenticating to RDS
171
+ //
166
172
// Additionally, the following environment variables may be optionally set:
167
- // REDSHIFT_EXTERNAL_SCHEMA_RDS_POSTGRES_PORT - RDS port. Default is 5432
168
- // REDSHIFT_EXTERNAL_SCHEMA_RDS_POSTGRES_SCHEMA - source database schema. Default is "public"
173
+ //
174
+ // REDSHIFT_EXTERNAL_SCHEMA_RDS_POSTGRES_PORT - RDS port. Default is 5432
175
+ // REDSHIFT_EXTERNAL_SCHEMA_RDS_POSTGRES_SCHEMA - source database schema. Default is "public"
169
176
func TestAccDataSourceRedshiftSchema_ExternalRdsPostgres (t * testing.T ) {
170
177
dbName := getEnvOrSkip ("REDSHIFT_EXTERNAL_SCHEMA_RDS_POSTGRES_DATABASE" , t )
171
178
dbHostname := getEnvOrSkip ("REDSHIFT_EXTERNAL_SCHEMA_RDS_POSTGRES_HOSTNAME" , t )
@@ -234,12 +241,15 @@ data "redshift_schema" "postgres" {
234
241
235
242
// Acceptance test for external redshift schema using RDS Mysql
236
243
// The following environment variables must be set, otherwise the test will be skipped:
237
- // REDSHIFT_EXTERNAL_SCHEMA_RDS_MYSQL_DATABASE - source database name
238
- // REDSHIFT_EXTERNAL_SCHEMA_RDS_MYSQL_HOSTNAME - RDS endpoint FQDN or IP address
239
- // REDSHIFT_EXTERNAL_SCHEMA_RDS_MYSQL_IAM_ROLE_ARNS - comma-separated list of ARNs to use
240
- // REDSHIFT_EXTERNAL_SCHEMA_RDS_MYSQL_SECRET_ARN - ARN of the secret in Secrets Manager containing credentials for authenticating to RDS
244
+ //
245
+ // REDSHIFT_EXTERNAL_SCHEMA_RDS_MYSQL_DATABASE - source database name
246
+ // REDSHIFT_EXTERNAL_SCHEMA_RDS_MYSQL_HOSTNAME - RDS endpoint FQDN or IP address
247
+ // REDSHIFT_EXTERNAL_SCHEMA_RDS_MYSQL_IAM_ROLE_ARNS - comma-separated list of ARNs to use
248
+ // REDSHIFT_EXTERNAL_SCHEMA_RDS_MYSQL_SECRET_ARN - ARN of the secret in Secrets Manager containing credentials for authenticating to RDS
249
+ //
241
250
// Additionally, the following environment variables may be optionally set:
242
- // REDSHIFT_EXTERNAL_SCHEMA_RDS_MYSQL_PORT - RDS port. Default is 3306
251
+ //
252
+ // REDSHIFT_EXTERNAL_SCHEMA_RDS_MYSQL_PORT - RDS port. Default is 3306
243
253
func TestAccDataSourceRedshiftSchema_ExternalRdsMysql (t * testing.T ) {
244
254
dbName := getEnvOrSkip ("REDSHIFT_EXTERNAL_SCHEMA_RDS_MYSQL_DATABASE" , t )
245
255
dbHostname := getEnvOrSkip ("REDSHIFT_EXTERNAL_SCHEMA_RDS_MYSQL_HOSTNAME" , t )
@@ -302,9 +312,12 @@ data "redshift_schema" "mysql" {
302
312
303
313
// Acceptance test for external redshift schema using datashare database
304
314
// The following environment variables must be set, otherwise the test will be skipped:
305
- // REDSHIFT_EXTERNAL_SCHEMA_REDSHIFT_DATABASE - source database name
315
+ //
316
+ // REDSHIFT_EXTERNAL_SCHEMA_REDSHIFT_DATABASE - source database name
317
+ //
306
318
// Additionally, the following environment variables may be optionally set:
307
- // REDSHIFT_EXTERNAL_SCHEMA_REDSHIFT_SCHEMA - datashare schema name. Default is "public"
319
+ //
320
+ // REDSHIFT_EXTERNAL_SCHEMA_REDSHIFT_SCHEMA - datashare schema name. Default is "public"
308
321
func TestAccDataSourceRedshiftSchema_ExternalRedshift (t * testing.T ) {
309
322
dbName := getEnvOrSkip ("REDSHIFT_EXTERNAL_SCHEMA_REDSHIFT_DATABASE" , t )
310
323
dbSchema := os .Getenv ("REDSHIFT_EXTERNAL_SCHEMA_REDSHIFT_SCHEMA" )
0 commit comments