Fix(#15296): Issue with the same service name (#15618)

* Fix(#15296): Issue with the same service name

* add serviceType parameter in cypress test interceptURL for pipelines
This commit is contained in:
Sachin Chaurasiya 2024-03-20 13:14:23 +05:30 committed by GitHub
parent 6ac95f2335
commit 80966087cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 2 deletions

View File

@ -465,6 +465,7 @@ export const service = {
description: 'This is a Glue service',
newDescription: 'This is updated Glue service description',
Owner: 'Aaron Johnson',
serviceType: 'databaseService',
};
export const SERVICE_TYPE = {

View File

@ -34,7 +34,7 @@ describe('Login configuration', { tags: 'Settings' }, () => {
cy.get('[data-testid="access-block-time"]').should('have.text', '500');
cy.get('[data-testid="jwt-token-expiry-time"]').should(
'have.text',
'5000 Milliseconds'
'5000 Seconds'
);
/* ==== End Cypress Studio ==== */
});

View File

@ -34,7 +34,7 @@ describe('Services page should work properly', { tags: 'Integration' }, () => {
);
interceptURL(
'GET',
`/api/v1/services/ingestionPipelines?fields=*&service=${service.name}*`,
`/api/v1/services/ingestionPipelines?fields=*&service=${service.name}*&serviceType=${service.serviceType}`,
'ingestionPipelines'
);
cy.login();

View File

@ -266,6 +266,7 @@ const ServiceDetailsPage: FunctionComponent = () => {
const response = await getIngestionPipelines({
arrQueryFields: ['owner', 'pipelineStatuses'],
serviceFilter: decodedServiceFQN,
serviceType: getEntityTypeFromServiceCategory(serviceCategory),
paging,
pipelineType: [
PipelineType.Metadata,