Terraform test latest update

In the latest version HC introduced mocks. I’m using google_compute_instance as mock_resource. but it’s not creating IPs for this mocked virtual machine, while asserting getting empty data. is it able to create those details or not?

Hi @Vamshipunna,

A mock resource doesn’t “create” anything. It’s just a placeholder object that Terraform uses instead of calling the real API.

If you want to really create an IP address then you will need to remove the mock and instead configure the test to use the real provider behavior, because the real provider is the one that creates the IP addresses.