Re: Is it possible to mock an external drive (for unit testing)?

2018-03-13 Thread Brüns , Stefan
On Dienstag, 13. März 2018 15:38:54 CET Michael Heidelbach wrote: > Thanks for your reply, Roman > I also thought of archivemount but (maybe to early) discarded that idea > because for testing I need control over the device id. > I'm not sure how to make identification more reliable either. If I'm

Re: Is it possible to mock an external drive (for unit testing)?

2018-03-13 Thread Michael Heidelbach
Thanks for your reply, Roman I also thought of archivemount but (maybe to early) discarded that idea because for testing I need control over the device id. I'm not sure how to make identification more reliable either. If I'm able to read the uuid of a drive or partition it would be small enough

Re: Is it possible to mock an external drive (for unit testing)?

2018-03-13 Thread Roman Chistokhodov
I'm not sure how you're gonna to make identification more reliable, but you can use fuse to create mountpoints in user space. E.g. using archievemount you can mount some archive and the files in the mountpoint will have another device id. Fuse must be available on the target OS of course. On Mon,