Skip to content

Commit 93ef4eb

Browse files
committed
fix: skip custom tests
1 parent d9a9d10 commit 93ef4eb

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

generators/src/main/java/com/algolia/codegen/cts/tests/TestsClient.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ public void run(Map<String, CodegenModel> models, Map<String, CodegenOperation>
107107
} else if (step.type.equals("method")) {
108108
ope = operations.get(step.method);
109109
if (ope == null) {
110+
// some clients don't have custom methods
111+
if (step.method.startsWith("custom") && client.equals("composition")) {
112+
continue skipTest;
113+
}
114+
110115
throw new CTSException("Cannot find operation for method: " + step.method, test.testName);
111116
}
112117
stepOut.put("stepTemplate", "tests/client/method.mustache");

specs/composition/spec.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ x-tagGroups:
4747
tags:
4848
- Compositions
4949
paths:
50-
# ######################
51-
# ### Custom request ###
52-
# ######################
53-
/{path}:
54-
$ref: '../common/paths/customRequest.yml'
55-
5650
# ########################
5751
# ### Search Endpoints ###
5852
# ########################

0 commit comments

Comments
 (0)