Refactor Data Quality API endpoints in Playwright tests and support classes to use consistent URL structure for test case results (#21656)

* Refactor Data Quality API endpoints in Playwright tests and support classes to use consistent URL structure for test case results

* Fix API call in TableClass to use POST method for test case results submission
This commit is contained in:
Shailesh Parmar 2025-06-10 11:07:32 +05:30 committed by GitHub
parent d1ea459a81
commit 330c26be92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -302,7 +302,7 @@ test(
'/api/v1/dataQuality/testCases/name/*?fields=*'
);
const getTestResult = page.waitForResponse(
'/api/v1/dataQuality/testCases/*/testCaseResult?*'
'/api/v1/dataQuality/testCases/testCaseResults/*?*'
);
await page
.locator(`[data-testid="${DATA_QUALITY_TABLE.testCaseName}"]`)

View File

@ -344,8 +344,8 @@ export class TableClass extends EntityClass {
testCaseFqn: string,
testCaseResult: unknown
) {
const testCaseResultResponse = await apiContext.put(
`/api/v1/dataQuality/testCases/${testCaseFqn}/testCaseResult`,
const testCaseResultResponse = await apiContext.post(
`/api/v1/dataQuality/testCases/testCaseResults/${testCaseFqn}`,
{ data: testCaseResult }
);

View File

@ -144,7 +144,7 @@ export const getListTestCaseResults = async (
fqn: string,
params?: ListTestCaseResultsParams
) => {
const url = `${testCaseUrl}/${getEncodedFqn(fqn)}/testCaseResult`;
const url = `${testCaseUrl}/testCaseResults/${getEncodedFqn(fqn)}`;
const response = await APIClient.get<{
data: TestCaseResult[];
paging: Paging;