integration tests; make non_destructive; specifying sudo password

Hello,

How do I specify a sudo password for when I am running the integration tests?

Jon

I will assume you are using ‘make’ to run the tests. In which case, something like:

TEST_FLAGS=‘-K’ make all

The TEST_FLAGS env var is where you would place any/all additional areas you want to pass on to ansible-playbook

Thanks, that got me started.

Of course I’d missed the ‘run as root’ instruction, but have been passing -vvvv and other bits in my TEST_FLAGS env var now I know about it.

Up and running now though and debugging my way through integration tests for windows port of file module.

Jon

Yeah, I suspect we’ll have the integration tests for a while - sometimes it’s quite neccessary to test modules, but in the future with the v2/ subtree work going on, it will be able to make it easier to unit test most of the application as well (mostly save modules).

Thanks. They are useful for seeing how things are done ‘in the small’ too.

I’m currently porting the copy file and template tests for windows versions, where possible - its great having some tests to aim for rather than having to create them from scratch.