mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-30 03:46:10 +00:00
fixed kafka cypress test (#11313)
* fixed kafka cypress test * added API wait for dbt * added wait on database * reverting cypress.config changes
This commit is contained in:
parent
6c94f37ee1
commit
33c429f67c
@ -110,12 +110,13 @@ export const handleIngestionRetry = (
|
||||
testIngestionsTab();
|
||||
|
||||
if (retryCount !== 0) {
|
||||
verifyResponseStatusCode('@serviceDetails', 200);
|
||||
verifyResponseStatusCode('@ingestionPipelines', 200);
|
||||
verifyResponseStatusCode('@airflow', 200);
|
||||
verifyResponseStatusCode('@pipelineStatuses', 200, {
|
||||
responseTimeout: 50000,
|
||||
});
|
||||
verifyResponseStatusCode('@ingestionPermissions', 200);
|
||||
verifyResponseStatusCode('@airflow', 200);
|
||||
}
|
||||
|
||||
retryCount++;
|
||||
@ -134,7 +135,6 @@ export const handleIngestionRetry = (
|
||||
cy.wait(timer);
|
||||
timer *= 2;
|
||||
cy.reload();
|
||||
verifyResponseStatusCode('@serviceDetails', 200);
|
||||
checkSuccessState();
|
||||
} else {
|
||||
cy.get('@checkRun').should('have.text', 'Success');
|
||||
@ -301,9 +301,9 @@ export const testServiceCreationAndIngestion = (
|
||||
interceptURL('GET', '/api/v1/services/*/name/*', 'serviceDetails');
|
||||
|
||||
cy.get('[data-testid="view-service-button"]').should('be.visible').click();
|
||||
verifyResponseStatusCode('@serviceDetails', 200);
|
||||
verifyResponseStatusCode('@getIngestionPipelineStatus', 200);
|
||||
verifyResponseStatusCode('@ingestionPipelines', 200);
|
||||
verifyResponseStatusCode('@serviceDetails', 200);
|
||||
handleIngestionRetry(type, testIngestionButton);
|
||||
};
|
||||
|
||||
|
@ -131,6 +131,7 @@ describe('RedShift Ingestion', () => {
|
||||
'ingestionPermissions'
|
||||
);
|
||||
interceptURL('GET', '/api/v1/services/*/name/*', 'serviceDetails');
|
||||
interceptURL('GET', '/api/v1/databases?*', 'databases');
|
||||
cy.get(`[data-testid="service-name-${REDSHIFT.serviceName}"]`)
|
||||
.should('exist')
|
||||
.click();
|
||||
@ -140,6 +141,7 @@ describe('RedShift Ingestion', () => {
|
||||
});
|
||||
verifyResponseStatusCode('@serviceDetails', 200);
|
||||
verifyResponseStatusCode('@airflow', 200);
|
||||
verifyResponseStatusCode('@databases', 200);
|
||||
cy.get('[data-testid="tabs"]').should('exist');
|
||||
cy.get('[data-testid="Ingestions"]')
|
||||
.scrollIntoView()
|
||||
@ -181,11 +183,24 @@ describe('RedShift Ingestion', () => {
|
||||
scheduleIngestion();
|
||||
|
||||
cy.wait('@deployIngestion').then(() => {
|
||||
interceptURL(
|
||||
'GET',
|
||||
'/api/v1/services/ingestionPipelines?*',
|
||||
'ingestionPipelines'
|
||||
);
|
||||
interceptURL('GET', '/api/v1/services/*/name/*', 'serviceDetails');
|
||||
interceptURL(
|
||||
'GET',
|
||||
'/api/v1/services/ingestionPipelines/status',
|
||||
'getIngestionPipelineStatus'
|
||||
);
|
||||
cy.get('[data-testid="view-service-button"]')
|
||||
.scrollIntoView()
|
||||
.should('be.visible')
|
||||
.click();
|
||||
|
||||
verifyResponseStatusCode('@serviceDetails', 200);
|
||||
verifyResponseStatusCode('@getIngestionPipelineStatus', 200);
|
||||
verifyResponseStatusCode('@ingestionPipelines', 200);
|
||||
handleIngestionRetry('database', true, 0, 'dbt');
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user