Skip to content

Commit aa3ce0e

Browse files
committed
Schema client test should be for v5
1 parent 239ebbc commit aa3ce0e

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/integration-tests/SchemaClient.test.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ import {
44
OrkesClients,
55
SchemaClient,
66
} from "../sdk";
7+
import { describeForOrkesV5 } from "./utils/customJestDescribe";
78

89
/**
910
* E2E Integration Tests for SchemaClient
1011
*
1112
* Tests schema registration, retrieval (by name, by name+version), listing,
12-
* version creation, and deletion.
13+
* version creation, and deletion. Gated to v5: GET /api/schema/{name} is not
14+
* supported on older backends (returns "Method 'GET' is not supported").
1315
*/
14-
describe("SchemaClient", () => {
16+
describeForOrkesV5("SchemaClient", () => {
1517
jest.setTimeout(60000);
1618

1719
const clientPromise = orkesConductorClient();
@@ -39,7 +41,10 @@ describe("SchemaClient", () => {
3941
try {
4042
await schemaClient.deleteSchemaByName(schemaName);
4143
} catch (e) {
42-
console.debug(`Cleanup schema '${schemaName}' failed:`, e);
44+
const msg = e instanceof Error ? e.message : String(e);
45+
if (!msg.includes("No schema found") && !msg.includes("not found")) {
46+
console.debug(`Cleanup schema '${schemaName}' failed:`, e);
47+
}
4348
}
4449
});
4550

0 commit comments

Comments
 (0)