Skip to content
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

Merged
merged 10 commits into from
Apr 27, 2022
Merged

Conversation

shortcuts
Copy link
Member

🧭 What and Why

🎟 JIRA Ticket:

Changes included:

When generating tests for algoliasearch-lite (only available in JavaScript), we now redirect to the search requests folder, which will generate tests for the available methods only.

🧪 Test

CI :D

@shortcuts shortcuts requested a review from a team April 27, 2022 07:43
@shortcuts shortcuts self-assigned this Apr 27, 2022
@shortcuts shortcuts requested review from eunjae-lee and millotp and removed request for a team April 27, 2022 07:43
@netlify
Copy link

netlify bot commented Apr 27, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit c2db902
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/626953f852e0100008a3200a

Comment on lines 144 to 151
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;
}
Copy link
Member Author

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.

@algolia-bot
Copy link
Collaborator

algolia-bot commented Apr 27, 2022

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.

Copy link
Collaborator

@millotp millotp left a 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 !

@shortcuts shortcuts requested review from millotp and eunjae-lee April 27, 2022 12:37
@@ -146,20 +146,20 @@ public Map<String, Object> postProcessSupportingFileData(
language
);

for (Entry<String, Request[]> entry : cts.entrySet()) {
for (Entry<String, CodegenOperation> entry : operations.entrySet()) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no sorting of operations ?

Copy link
Member Author

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!!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll try

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouhou it works b3a3600

@shortcuts shortcuts requested a review from millotp April 27, 2022 14:33
@shortcuts shortcuts enabled auto-merge (squash) April 27, 2022 14:50
@shortcuts shortcuts merged commit c5a178e into main Apr 27, 2022
@shortcuts shortcuts deleted the feat/algoliasearch-lite-cts branch April 27, 2022 15:03
This was referenced Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants