NETWAYS / ansible-collection-elasticstack

A collection to install and manage the Elastic Stack
GNU General Public License v3.0
9 stars 8 forks source link

[Bug]: Molecule tests are not working without GitHub pipelines #304

Open tbauriedel opened 5 months ago

tbauriedel commented 5 months ago

Please try to fill out as much of the information below as you can. Thank you!

Which version contains the bug?

No response

Describe the bug

Molecule tests have a reference to environment variables. Example

However, the environments are only defined within the GitHub workflow. If you try to run local molecule tests (molecule test -s <scenario>), they fail due to the missing environments. So you will always have to run the whole pipeline local.

How to recreate the bug?

No response

widhalmt commented 4 months ago

Did you try to set the environment variables locally?

export MYENVIRONMENTVARIABLE=myvalue

I guess, we could set some automatically, but I think it helps to have some control about some parts of the checks.

widhalmt commented 4 months ago

If that fixes your problem, we need to put it into the documentation. It shouldn't be misleading.

tbauriedel commented 4 months ago

I know. But I expected all molecule tests should work out of the box.

As far as I know, elasticsearch 7 will rotate out of the collection soon. After that, we could adjust the variables in the scenarios to work with 8.