terraform-provider-vyos
terraform-provider-vyos copied to clipboard
Integration testing
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.
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.
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.