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 integration tests #118

Open
radumarias opened this issue Aug 5, 2024 · 3 comments
Open

Add integration tests #118

radumarias opened this issue Aug 5, 2024 · 3 comments
Assignees
Labels
Milestone

Comments

@radumarias
Copy link
Member

radumarias commented Aug 5, 2024

Add integration tests to access the FUSE endpoint and test all kind of operations.

Setup tests similar to examples/mount.rs and then run integration tests over the mounted folder.

To perform the actual operations use the std::fs::OpenOptions, std::fs::File, std::fs and std::io. All tests run against the mount-point.

Each test needs to have it's own mount-point and data-dir so they can be ran in parallel.

Add target guard to only run tests on linux for now until we have implementations of FUSE on macos and windows too. You can add this in tests, setup and teardown methods
#[cfg(not(target_os = "linux"))] { return; }

Reference unit tests you can combine logic from and adapt to integration tests

  • src/encryptedfs/test.rs
  • src/crypto/read/test.rs
  • src/crypto/write/test.rs

Get from these too when done

You can also create similar tests like https://github.com/radumarias/rencfs/issues/181

You can also create bash tests similar to https://github.com/radumarias/syncoxiders/tree/main/file-tree-merge/tests/scripts

Also add tests with concurrent operations over fs.

Ref

@radumarias radumarias added this to rencfs Aug 5, 2024
@radumarias radumarias converted this from a draft issue Aug 5, 2024
@radumarias radumarias added this to the 1.0.0-rc.1 milestone Aug 19, 2024
@rakurame96 rakurame96 self-assigned this Aug 22, 2024
@rakurame96 rakurame96 moved this from Todo to In Progress in rencfs Aug 22, 2024
@radumarias
Copy link
Member Author

@rakurame96 how are you with this?

@radumarias
Copy link
Member Author

@rakurame96 any progress on this?

@radumarias
Copy link
Member Author

@rakurame96 how are you with this?

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

No branches or pull requests

2 participants