I have a service that manages a USB key (format, mount/umount, read/write, check space) coded in Python 2. This service call system to manage the device (mount/umount, mkfs, state) and monitor
/proc/mounts to check mounting status.
There are some tests to check the service behaviour, but I am unable to test the service without a real USB key but it's an issue for Jenkins slaves.
I tried to mount the loop device, but this technic require to modify the service to manage this specific device.
- Do you know some technics to create a virtual device that behaves as a USB key?
- Do you know a way to test this kind of service ?