Skip to content

Commit

Permalink
updated smoke tests (#547)
Browse files Browse the repository at this point in the history
* updated smoke tests

* updated smoke tests
  • Loading branch information
sreeni-lutukurthy-gds authored Feb 8, 2024
1 parent 157183f commit 3ce9f56
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 69 deletions.

This file was deleted.

12 changes: 11 additions & 1 deletion tests/smoke-tests-restructuring/smoke-tests.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { TodayDate } from '../helpers/common-helpers';
import { getQueryResults, redshiftRunQuery } from '../helpers/db-helpers';
import {
deliveryStreamName,
Expand Down Expand Up @@ -38,7 +39,16 @@ describe('smoke tests for DAP services', () => {

test('Verify Athena queries are executable ', async () => {
const athenaQueryResults = await getQueryResults(
'SELECT * from auth_account_creation limit 10',
'SELECT * from txma_stage_layer_key_values limit 10',
txmaStageDatabaseName(),
txmaProcessingWorkGroupName(),
);
expect(JSON.stringify(athenaQueryResults)).not.toBeNull();
});

test('Verify latest day data has been processed ', async () => {
const athenaQueryResults = await getQueryResults(
'SELECT * from txma_stage_layer_key_values where processed_dt = ' + TodayDate() + ' limit 10',
txmaStageDatabaseName(),
txmaProcessingWorkGroupName(),
);
Expand Down

0 comments on commit 3ce9f56

Please sign in to comment.