-
Notifications
You must be signed in to change notification settings - Fork 271
Test Mount API #2039
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
Test Mount API #2039
Conversation
|
Great. I am most of the days offline until next week. But i am on it |
372913c to
beaf7ec
Compare
|
Note that it's still WIP. I've added high-level tests for the 'local' backend, as it's the simplest. I'll work on adding tests for the remaining backends. |
83e48f4 to
ab70e8b
Compare
I really like your tests. I can read and understand them very well. This is high quality. |
|
I don't understand the purpose of |
|
Unconfigured corresponds to the first run, before the BiT configuration or the EncFS directory is initialised. Configured corresponds to later runs, where there is a preexisting configuration and EncFS directory. |
There is this out-commented line in To my unerstanding I don't know that the desired test result could be for If you can be more specific with your questions and needs I might be able to help. |
|
I've had a chance to look at this. 'Unconfigured' in this case refers to the EncFS configuration, rather than the BackInTime configuration. Yes, the BackInTime configuration is reused, but the EncFS mount has not yet been created. Perhaps I should rename it to Edit: Specifically, an initialised backup location will contain the file |
|
"uninitialized" sounds good to me. |
9e6e18c to
0f1df2a
Compare
|
Hello David, |
|
I haven't had much chance to work on the lately. The latest commit is work in progress, as the test I'm adding still needs some work to make it pass. In theory, it is supposed to create a new EncFS mount, and confirm that it was created. |
99f645a to
a851399
Compare
|
Hello David, I am finished now and hope I have not interfered your work to much with conflicts. Best, |
|
Don't worry about me! Conflicts are expected with a slow moving branch like this. (And there weren't many.) |
18ba540 to
556ddf4
Compare
|
I'm getting a |
|
Which linter? Or follow the error and use "with" Sorry. I am at holiday just using a touch device |
556ddf4 to
dbd204a
Compare
|
Hello David, Would this be OK for you? It would help me a lot if you could somehow summarize what you have done so far. The thing is I never used EncFS (or GoCrypt). I am also not familiar with the mounting part of the code base. I never touched that part of BIT. What do you think? Regards, PS: My idea is to have a first release candidate (1.6.0-rc1) offering local gocrypt support. |
|
I'm happy for you to take this over if you get time. Please feel free to ask any questions you have. In summary, this branch is trying to add high level tests for EncFS. From memory, it currently tests basic local mount and unmount. It's tricky to test, because there are a few places where the EncFS mount control code triggers UI code, rather than cleanly separating the two. I've tried to mock these out, rather than rewriting the EncFS code, as I'm worried to do that without first having tests. The other branch (#1897) is a rebase of an old branch by Germar which works for gocryptfs, but breaks EncFS. It makes a significant change to the parent MountControl class, which makes it incompatible with the existing implementation of EncFS. The change is that it separates initialisation from mounting, whereas the current EncFS code combines them, and adds initialisation within the mount code if necessary. Previously, I wanted to update the existing EncFS code to work with this new MountControl parent class. However, I now wonder of it would be easier and safer just to adapt the gocryptfs code to work with the old MountControl parent class, as this would eliminate the need to modify EncFS code. I found that there are a lot of complex interactions between GUI, cinfig, and mount code, which made it tedious to test manually, and easy to introduce regressions. Hence why I started this testing branch. |
|
Hello David, The Debian Import Freeze for the upcoming Ubuntu LTS (release April) is in the end of January. I am quit sure that "local GoCrypt" won't make it into BIT until then. But I'll try. I really would like to hit the LTS release with GoCrypt support. Thanks again for your efforts! Regards, |
WIP branch adding tests to Mount API for various backends.