mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-28 16:08:23 +00:00
fixed bigquery and postgres cypress test (#10450)
This commit is contained in:
parent
724a10a82f
commit
f3174efc22
@ -52,15 +52,6 @@ describe('BigQuery Ingestion', () => {
|
||||
cy.get('#root_clientId')
|
||||
.scrollIntoView()
|
||||
.type(Cypress.env('bigqueryClientId'));
|
||||
cy.get('#root_authUri')
|
||||
.scrollIntoView()
|
||||
.type('https://accounts.google.com/o/oauth2/auth');
|
||||
cy.get('#root_tokenUri')
|
||||
.scrollIntoView()
|
||||
.type('https://oauth2.googleapis.com/token');
|
||||
cy.get('#root_authProviderX509CertUrl')
|
||||
.scrollIntoView()
|
||||
.type('https://www.googleapis.com/oauth2/v1/certs');
|
||||
cy.get('#root_clientX509CertUrl')
|
||||
.scrollIntoView()
|
||||
.type(
|
||||
|
||||
@ -31,7 +31,8 @@ const serviceName = `${serviceType}-ct-test-${uuid()}`;
|
||||
const tableName = 'order_items';
|
||||
const description = `This is ${serviceName} description`;
|
||||
const filterPattern = 'sales';
|
||||
const query =
|
||||
const clearQuery = 'select pg_stat_statements_reset()';
|
||||
const selectQuery =
|
||||
'SELECT * FROM sales.order_items oi INNER JOIN sales.orders o ON oi.order_id=o.order_id';
|
||||
|
||||
describe('Postgres Ingestion', () => {
|
||||
@ -40,7 +41,8 @@ describe('Postgres Ingestion', () => {
|
||||
});
|
||||
|
||||
it('Trigger select query', () => {
|
||||
cy.postgreSQL(query);
|
||||
cy.postgreSQL(clearQuery);
|
||||
cy.postgreSQL(selectQuery);
|
||||
});
|
||||
|
||||
it('add and ingest data', () => {
|
||||
@ -165,7 +167,7 @@ describe('Postgres Ingestion', () => {
|
||||
// Validate that the triggered query is visible in the queries container
|
||||
cy.get('[data-testid="queries-container"]')
|
||||
.should('be.visible')
|
||||
.should('contain', query);
|
||||
.should('contain', selectQuery);
|
||||
// Validate queries count is greater than 1
|
||||
cy.get('[data-testid="entity-summary-details"]')
|
||||
.invoke('text')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user