Skip to content

Commit

Permalink
fix: skip custom tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Jan 14, 2025
1 parent d9a9d10 commit 93ef4eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ public void run(Map<String, CodegenModel> models, Map<String, CodegenOperation>
} else if (step.type.equals("method")) {
ope = operations.get(step.method);
if (ope == null) {
// some clients don't have custom methods
if (step.method.startsWith("custom") && client.equals("composition")) {
continue skipTest;
}

throw new CTSException("Cannot find operation for method: " + step.method, test.testName);
}
stepOut.put("stepTemplate", "tests/client/method.mustache");
Expand Down
6 changes: 0 additions & 6 deletions specs/composition/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ x-tagGroups:
tags:
- Compositions
paths:
# ######################
# ### Custom request ###
# ######################
/{path}:
$ref: '../common/paths/customRequest.yml'

# ########################
# ### Search Endpoints ###
# ########################
Expand Down

0 comments on commit 93ef4eb

Please sign in to comment.