How to pass ENVIRONMENT VARIABLES to ansible-test integration --docker

How to pass ENVIRONMENT VARIABLES to ansible-test integration --docker.

I am writing integration tests for netscaler.adc collection.

This collection is a collection of modules to configure the NetScaler ADC via API (each ansible module invokes NetScaler NITRO APIs)

The collection takes API authentication via each task or via environment variables (github link below)

How can I send my environment variables to ansible-test integration --docker ?

I have seen integration_config.yml. It works but there is no way I can send my credentials securely.

ENV VARS would be best in my case.

Please help.

I don’t think you can. integration_config.yml is the only way to pass data (and credentials) into the tests.

(The only exceptions are ‘cloud’ config plugins. These ship with ansible-test and the existing ones can be found here: ansible/test/lib/ansible_test/_internal/commands/integration/cloud at devel · ansible/ansible · GitHub I’m using quotes for ‘cloud’ since they also set up things not related to clouds. Right now it’s not able to add a new plugin without getting it merged into ansible-core itself, to my knowledge. I hope that eventually changes…)

OK. Thank you @felixfontein.

I feel the integration test documentation can be improved to a great extent.

For a beginner like me, more than the documentation, I am looking other collection’s repo and learning