-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cts): add algoliasearch-lite #436
Conversation
✅ Deploy Preview for api-clients-automation canceled.
|
if (!operations.containsKey(operationId)) { | ||
throw new CTSException( | ||
// We only inform that it does not exist but skip the test generation | ||
System.out.println( | ||
"operationId " + operationId + " does not exist in the spec" | ||
); | ||
|
||
continue; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be much more conditional if we want to keep throwing, but we could only skip for algoliasearch-lite
.
✗ The generated branch has been deleted.If the PR has been merged, you can check the generated code on the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice ! It's getting easier to add generated test !
generators/src/main/java/com/algolia/codegen/cts/AlgoliaCtsGenerator.java
Outdated
Show resolved
Hide resolved
generators/src/main/java/com/algolia/codegen/cts/AlgoliaCtsGenerator.java
Outdated
Show resolved
Hide resolved
@@ -146,20 +146,20 @@ public Map<String, Object> postProcessSupportingFileData( | |||
language | |||
); | |||
|
|||
for (Entry<String, Request[]> entry : cts.entrySet()) { | |||
for (Entry<String, CodegenOperation> entry : operations.entrySet()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no sorting of operations ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah that's what's missing I forgot!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouhou it works b3a3600
🧭 What and Why
🎟 JIRA Ticket:
Changes included:
When generating tests for
algoliasearch-lite
(only available in JavaScript), we now redirect to thesearch
requests folder, which will generate tests for the available methods only.🧪 Test
CI :D