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

Add dump creation test #188

Merged
merged 1 commit into from
Jun 22, 2022
Merged

Conversation

brunoocasali
Copy link
Member

No description provided.

@brunoocasali brunoocasali added the enhancement New feature or request label Jun 22, 2022
@brunoocasali brunoocasali requested a review from alallema June 22, 2022 20:32
Base automatically changed from tenant-token-with-uid to bump-meilisearch-v0.28.0 June 22, 2022 20:36
@brunoocasali
Copy link
Member Author

@alallema I'll merge this, but I still want your feedback :)

@brunoocasali brunoocasali merged commit b301403 into bump-meilisearch-v0.28.0 Jun 22, 2022
@brunoocasali brunoocasali deleted the dump-creation-test branch June 22, 2022 20:36
final dump = await client.createDump();

expect(dump.type, equals('dumpCreation'));
expect(dump.status, anyOf('succeeded', 'enqueued'));
Copy link
Contributor

Choose a reason for hiding this comment

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

Would we not add a waitForTask to check that it ends up succeeded? Just a suggestion

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I could add that, but in this case, I am just interested to know if the createDump() successfully enqueued a task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants