-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for run action and preview sync action with shared bucket
- Loading branch information
1 parent
c64a7d2
commit 3ccbe95
Showing
8 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"columns":["id","col2","col3","col4"],"rows":[[{"columnName":"id","value":"1","isTruncated":false},{"columnName":"col2","value":"a","isTruncated":false},{"columnName":"col3","value":"b","isTruncated":false},{"columnName":"col4","value":"c","isTruncated":false}]]} |
18 changes: 18 additions & 0 deletions
18
tests/functional/preview-action-shared-bucket/source/data/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"action": "preview", | ||
"parameters": { | ||
"tableName": "test", | ||
"bucketId": "in.c-test-bucket", | ||
"models": [ | ||
{"code": "SELECT * FROM {{ ref('%model%') }} WHERE \"id\" = 1"} | ||
], | ||
"authorization": { | ||
"host": "%env(string:SNOWFLAKE_HOST)%", | ||
"warehouse": "%env(string:SNOWFLAKE_WAREHOUSE)%", | ||
"database": "%env(string:SNOWFLAKE_DATABASE)%", | ||
"schema": "%env(string:SNOWFLAKE_SCHEMA)%", | ||
"user": "%env(string:SNOWFLAKE_USER)%", | ||
"#password": "%env(string:SNOWFLAKE_PASSWORD)%" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0 |
Empty file.
Empty file.
Empty file.
19 changes: 19 additions & 0 deletions
19
tests/functional/run-action-shared-bucket/source/data/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"authorization": { | ||
"workspace": { | ||
"host": "%env(string:SNOWFLAKE_HOST)%", | ||
"warehouse": "%env(string:SNOWFLAKE_WAREHOUSE)%", | ||
"database": "%env(string:SNOWFLAKE_DATABASE)%", | ||
"schema": "%env(string:SNOWFLAKE_SCHEMA)%", | ||
"user": "%env(string:SNOWFLAKE_USER)%", | ||
"password": "%env(string:SNOWFLAKE_PASSWORD)%" | ||
} | ||
}, | ||
"parameters": { | ||
"tableName": "test", | ||
"bucketId": "in.c-test-bucket", | ||
"models": [ | ||
{"code": "SELECT * FROM {{ ref('%model%') }} WHERE \"id\" = 1"} | ||
] | ||
} | ||
} |