netascode / terraform-provider-fmc

Mozilla Public License 2.0
2 stars 9 forks source link

shed few minutes from make testacc by using preexisting FTD #64

Closed jabielecki closed 3 months ago

jabielecki commented 3 months ago

This is a bit ugly for now, but it saves a lot of manual test time. It uses a device that is always connected to FMC and has a known UUID. Before this PR, connecting/disconnecting a device used to cost a few (~5) minutes for every test case.

In CI this device is named "preexisting1". In dev work, developer is responsible for standing a fmc_device and setting environment:

export TF_VAR_device_id='<fmc_device.test.id>'