refactor: extract adapter_globs

Signed-off-by: Mate Lakat <mate.lakat@citrix.com>
refactor: format code

Signed-off-by: Mate Lakat <mate.lakat@citrix.com>
refactor: rename variable

Make adapter_globs more readable by renaming its parameters.

Signed-off-by: Mate Lakat <mate.lakat@citrix.com>
Add tests for adapter_globs

These tests document the return values of the glob function.

Signed-off-by: Mate Lakat <mate.lakat@citrix.com>
Test original functionality of _extract_dev_name
Added test for the failing case
Add test for exotic adapter