terraform-provider-vyos icon indicating copy to clipboard operation
terraform-provider-vyos copied to clipboard

Integration testing

Open foltik opened this issue 3 years ago • 2 comments

It would be a good idea to have automated tests for resource CRUD operations that run against an actual VyOS instance. Perhaps we could create a GitHub actions pipeline that does this.

foltik avatar Dec 18 '21 17:12 foltik

Currently this is blocked on getting a working VyOS docker container running in a workflow with all of the necessary pre-configuration (API keys, ...). So far, testing of this has been done in https://github.com/Foltik/vyos-client-go/tree/integration.

foltik avatar May 31 '22 03:05 foltik

I got integration tests against VyOS working in CI with https://github.com/Foltik/vyos-client-go/commit/9b9a46c4ab7257a0e4fc459f7c1fd7628278a648, so this is now unblocked.

We should be able to pretty easily leverage the same pipeline for integration testing with terraform.

foltik avatar Oct 14 '22 14:10 foltik