mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-31 20:51:26 +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=*'
|
'/api/v1/dataQuality/testCases/name/*?fields=*'
|
||||||
);
|
);
|
||||||
const getTestResult = page.waitForResponse(
|
const getTestResult = page.waitForResponse(
|
||||||
'/api/v1/dataQuality/testCases/*/testCaseResult?*'
|
'/api/v1/dataQuality/testCases/testCaseResults/*?*'
|
||||||
);
|
);
|
||||||
await page
|
await page
|
||||||
.locator(`[data-testid="${DATA_QUALITY_TABLE.testCaseName}"]`)
|
.locator(`[data-testid="${DATA_QUALITY_TABLE.testCaseName}"]`)
|
||||||
|
@ -344,8 +344,8 @@ export class TableClass extends EntityClass {
|
|||||||
testCaseFqn: string,
|
testCaseFqn: string,
|
||||||
testCaseResult: unknown
|
testCaseResult: unknown
|
||||||
) {
|
) {
|
||||||
const testCaseResultResponse = await apiContext.put(
|
const testCaseResultResponse = await apiContext.post(
|
||||||
`/api/v1/dataQuality/testCases/${testCaseFqn}/testCaseResult`,
|
`/api/v1/dataQuality/testCases/testCaseResults/${testCaseFqn}`,
|
||||||
{ data: testCaseResult }
|
{ data: testCaseResult }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ export const getListTestCaseResults = async (
|
|||||||
fqn: string,
|
fqn: string,
|
||||||
params?: ListTestCaseResultsParams
|
params?: ListTestCaseResultsParams
|
||||||
) => {
|
) => {
|
||||||
const url = `${testCaseUrl}/${getEncodedFqn(fqn)}/testCaseResult`;
|
const url = `${testCaseUrl}/testCaseResults/${getEncodedFqn(fqn)}`;
|
||||||
const response = await APIClient.get<{
|
const response = await APIClient.get<{
|
||||||
data: TestCaseResult[];
|
data: TestCaseResult[];
|
||||||
paging: Paging;
|
paging: Paging;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user