fix: updated snowflake test based on new configs (#21349)

This commit is contained in:
Shailesh Parmar 2025-05-22 14:38:08 +05:30 committed by GitHub
parent cc96317f79
commit 5f93b1d581
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 2 deletions

View File

@ -118,6 +118,7 @@ jobs:
PLAYWRIGHT_SNOWFLAKE_ACCOUNT: ${{ secrets.TEST_SNOWFLAKE_ACCOUNT }}
PLAYWRIGHT_SNOWFLAKE_DATABASE: ${{ secrets.TEST_SNOWFLAKE_DATABASE }}
PLAYWRIGHT_SNOWFLAKE_WAREHOUSE: ${{ secrets.TEST_SNOWFLAKE_WAREHOUSE }}
PLAYWRIGHT_SNOWFLAKE_PASSPHRASE: ${{ secrets.TEST_SNOWFLAKE_PASSPHRASE }}
PLAYWRIGHT_PROJECT_ID: ${{ steps.cypress-project-id.outputs.CYPRESS_PROJECT_ID }}
PLAYWRIGHT_BQ_PRIVATE_KEY: ${{ secrets.TEST_BQ_PRIVATE_KEY }}
PLAYWRIGHT_BQ_PROJECT_ID: ${{ secrets.TEST_BQ_PROJECT_ID }}

View File

@ -117,6 +117,7 @@ jobs:
PLAYWRIGHT_SNOWFLAKE_ACCOUNT: ${{ secrets.TEST_SNOWFLAKE_ACCOUNT }}
PLAYWRIGHT_SNOWFLAKE_DATABASE: ${{ secrets.TEST_SNOWFLAKE_DATABASE }}
PLAYWRIGHT_SNOWFLAKE_WAREHOUSE: ${{ secrets.TEST_SNOWFLAKE_WAREHOUSE }}
PLAYWRIGHT_SNOWFLAKE_PASSPHRASE: ${{ secrets.TEST_SNOWFLAKE_PASSPHRASE }}
PLAYWRIGHT_PROJECT_ID: ${{ steps.cypress-project-id.outputs.CYPRESS_PROJECT_ID }}
PLAYWRIGHT_BQ_PRIVATE_KEY: ${{ secrets.TEST_BQ_PRIVATE_KEY }}
PLAYWRIGHT_BQ_PROJECT_ID: ${{ secrets.TEST_BQ_PROJECT_ID }}

View File

@ -56,17 +56,23 @@ class SnowflakeIngestionClass extends ServiceBaseClass {
const account = process.env.PLAYWRIGHT_SNOWFLAKE_ACCOUNT ?? '';
const database = process.env.PLAYWRIGHT_SNOWFLAKE_DATABASE ?? '';
const warehouse = process.env.PLAYWRIGHT_SNOWFLAKE_WAREHOUSE ?? '';
const passphrase = process.env.PLAYWRIGHT_SNOWFLAKE_PASSPHRASE ?? '';
await page.fill('#root\\/username', username);
await checkServiceFieldSectionHighlighting(page, 'username');
await page.fill('#root\\/password', password);
await checkServiceFieldSectionHighlighting(page, 'password');
await page.fill('#root\\/privateKey', password);
await checkServiceFieldSectionHighlighting(page, 'privateKey');
await page.fill('#root\\/account', account);
await checkServiceFieldSectionHighlighting(page, 'account');
await page.fill('#root\\/database', database);
await checkServiceFieldSectionHighlighting(page, 'database');
await page.fill('#root\\/warehouse', warehouse);
await checkServiceFieldSectionHighlighting(page, 'warehouse');
await page.fill('#root\\/snowflakePrivatekeyPassphrase', passphrase);
await checkServiceFieldSectionHighlighting(
page,
'snowflakePrivatekeyPassphrase'
);
}
async fillIngestionDetails(page: Page) {