mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-01 05:03:10 +00:00
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:
parent
d1ea459a81
commit
330c26be92
@ -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}"]`)
|
||||
|
@ -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 }
|
||||
);
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user