joneshf / terraform-provider-openwrt

A Terraform provider for OpenWrt using LuCI's JSON-RPC API
https://registry.terraform.io/providers/joneshf/openwrt
Mozilla Public License 2.0
33 stars 8 forks source link

Add a helper that returns a provider block string #90

Closed joneshf closed 1 year ago

joneshf commented 1 year ago

Most of the time, we don't actually care about the connection credentials for a provider, we just want one that works. Instead of putting the onus on the caller to figure this out each time, we give back a provider block string. This helps with the Resource acceptance test helper case.

We also make a helper that returns a lucirpc.Client along with a provider block string. This helps with the Data Source acceptance test case.