Rework credential import in private tests to allow its doc to compile.

Signed-off-by: Baptiste Millou <baptiste@smoothie-creative.com>
Merge branch 'refs/heads/documentation' into develop