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 nodesync export and sync integration tests #884

Merged
merged 7 commits into from
Oct 5, 2020
Merged

Conversation

piazzatron
Copy link
Contributor

@piazzatron piazzatron commented Oct 3, 2020

Trello Card Link

https://trello.com/c/64R0JpXW

Description

Adds two integration tests for nodesync:

  • export: tests that for a given db state, we export the correct JSON blob
  • sync: tests that for a given exported blob, we reconstruct the correct DB state

Note this does not test the correctness of the file system post sync, though that codepath is lightly exercised (files are 'requested' from another CNode that is mocked to return buffers with garbage data).

Services

  • [] Discovery Provider
  • Creator Node
  • Identity Service
  • Libs
  • Contracts
  • Service Commands
  • Mad Dog

Does it touch a critical flow like Discovery indexing, Creator Node track upload, Creator Node gateway, or Creator Node file system?

  • ✅ Nope

How Has This Been Tested?

Added nodesync.test.js

@piazzatron piazzatron mentioned this pull request Oct 3, 2020
7 tasks
Copy link
Contributor

@dmanjunath dmanjunath left a comment

Choose a reason for hiding this comment

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

This is going to be awesome to have @piazzatron. A few cleanup items but this looks dope

creator-node/test/utils.js Outdated Show resolved Hide resolved
creator-node/test/nodesync.test.js Show resolved Hide resolved
creator-node/test/nodesync.test.js Show resolved Hide resolved
creator-node/test/nodesync.test.js Outdated Show resolved Hide resolved
Copy link
Contributor

@dmanjunath dmanjunath left a comment

Choose a reason for hiding this comment

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

This looks fantastic @piazzatron!

@piazzatron
Copy link
Contributor Author

This looks fantastic @piazzatron!

🎉

@piazzatron piazzatron merged commit 09ce76b into master Oct 5, 2020
@piazzatron piazzatron deleted the piazz-sync-test branch October 5, 2020 20:38
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.

None yet

2 participants