Complete the code to define a mock provider block in Terraform.
provider "mock" { [1] = true }
The test_mode argument enables the mock provider behavior in Terraform tests.
Complete the code to declare a mock resource in Terraform test configuration.
resource "mock_resource" "example" { name = "test" [1] = "mock_value" }
The mock_id attribute is used in mock resources to simulate resource IDs during tests.
Fix the error in the mock provider block to enable testing.
provider "mock" { test_mode = [1] }
The test_mode argument expects a boolean value true without quotes.
Fill both blanks to create a mock data source with a test attribute.
data "mock_data" "example" { [1] = "test" [2] = true }
The name attribute sets the data source name, and test_mode enables mock testing.
Fill all three blanks to define a mock provider with a resource and enable test mode.
provider "mock" { [1] = true } resource "mock_resource" "example" { [2] = "mock_value" [3] = "active" }
The provider uses test_mode to enable mocks. The resource uses mock_id as its identifier and status to indicate state.