e-breuninger / terraform-provider-netbox

Terraform provider to interact with Netbox
https://registry.terraform.io/providers/e-breuninger/netbox/latest/docs
Mozilla Public License 2.0
178 stars 130 forks source link

✨ feat: Add filter for status in virtual machines data source #612

Closed twink0r closed 2 months ago

twink0r commented 3 months ago

Any ideas why this fails in the pipeline? Local the tests looks fine

fbreckle commented 3 months ago

This happens because the tests run in parallel an there is a race condition where one test creates VMs that other tests then find. This happens often with pluralized data source tests. I assume your local machine has more power than the github runners, so it happens less in local executions. Changing resource.ParallelTest( to resource.Test( might work. Or make the other filters more narrow so they do not include your test vms.

twink0r commented 3 months ago

I changed it, but some other data source test is failing now