mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-12 17:02:23 +00:00
cypress: fix AUT flakiness part 7 (#16348)
This commit is contained in:
parent
38bdcc4112
commit
8c3a02481e
@ -20,6 +20,11 @@ export const checkDataInsightSuccessStatus = (
|
|||||||
count = 1,
|
count = 1,
|
||||||
timer = BASE_WAIT_TIME
|
timer = BASE_WAIT_TIME
|
||||||
) => {
|
) => {
|
||||||
|
interceptURL(
|
||||||
|
'GET',
|
||||||
|
'/api/v1/apps/name/DataInsightsApplication/status?*',
|
||||||
|
'getAppStatus'
|
||||||
|
);
|
||||||
cy.get('[data-testid="app-run-history-table"]')
|
cy.get('[data-testid="app-run-history-table"]')
|
||||||
.find('[data-testid="pipeline-status"]')
|
.find('[data-testid="pipeline-status"]')
|
||||||
.first()
|
.first()
|
||||||
@ -35,6 +40,7 @@ export const checkDataInsightSuccessStatus = (
|
|||||||
cy.wait(timer);
|
cy.wait(timer);
|
||||||
timer *= 2;
|
timer *= 2;
|
||||||
cy.reload();
|
cy.reload();
|
||||||
|
verifyResponseStatusCode('@getAppStatus', 200);
|
||||||
checkDataInsightSuccessStatus(++count, timer * 2);
|
checkDataInsightSuccessStatus(++count, timer * 2);
|
||||||
} else {
|
} else {
|
||||||
if ($ingestionStatus.text() !== 'Success') {
|
if ($ingestionStatus.text() !== 'Success') {
|
||||||
|
|||||||
@ -12,6 +12,7 @@
|
|||||||
*/
|
*/
|
||||||
import { SERVICE_TYPE } from '../../constants/constants';
|
import { SERVICE_TYPE } from '../../constants/constants';
|
||||||
import { EntityType } from '../../constants/Entity.interface';
|
import { EntityType } from '../../constants/Entity.interface';
|
||||||
|
import { POSTGRES } from '../../constants/service.constants';
|
||||||
import {
|
import {
|
||||||
checkServiceFieldSectionHighlighting,
|
checkServiceFieldSectionHighlighting,
|
||||||
interceptURL,
|
interceptURL,
|
||||||
@ -29,7 +30,12 @@ class PostgresIngestionClass extends ServiceBaseClass {
|
|||||||
queryLogFilePath: string;
|
queryLogFilePath: string;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super(Services.Database, 'cypress-Postgres', 'Postgres', 'order_items');
|
super(
|
||||||
|
Services.Database,
|
||||||
|
POSTGRES.serviceName,
|
||||||
|
POSTGRES.serviceType,
|
||||||
|
POSTGRES.tableName
|
||||||
|
);
|
||||||
|
|
||||||
this.filterPattern = 'sales';
|
this.filterPattern = 'sales';
|
||||||
this.queryLogFilePath =
|
this.queryLogFilePath =
|
||||||
|
|||||||
@ -33,6 +33,12 @@ export const REDSHIFT = {
|
|||||||
description: `This is Redshift-ct-test-${uniqueID} description`,
|
description: `This is Redshift-ct-test-${uniqueID} description`,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const POSTGRES = {
|
||||||
|
serviceType: 'Postgres',
|
||||||
|
serviceName: `cy-postgres-test-${uniqueID}`,
|
||||||
|
tableName: 'order_items',
|
||||||
|
};
|
||||||
|
|
||||||
export const MYSQL = {
|
export const MYSQL = {
|
||||||
serviceType: 'Mysql',
|
serviceType: 'Mysql',
|
||||||
serviceName: `mysql-ct-test-${uniqueID}`,
|
serviceName: `mysql-ct-test-${uniqueID}`,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user