Hello, I am also writing an acceptance test. I have an error when I assign the provider to a variable, testAccProvider. “Invalid type assertion…non-interface type *schema.Provider on left”. Is your variable testAccProvider declared outside like this?var testAccProvider *schema.Provider
Thank you!
I only replace the “Provider()” to “***Provider()” where *** is my company’s name because we have this function named “***Provider()” in the provider.go file.
The error is prompted by Goland: “Invalid type assertion: ***Provider().(*schema.Provider) (non-interface type *schema.Provider on left)”
Here is my code:
var testAccProviders map[string]terraform.ResourceProvider
var testAccProvider *schema.Provider