From 9c2b2c579a972b9e4b3d80a0a285bfd1d7a3b06b Mon Sep 17 00:00:00 2001 From: James Bardin Date: Wed, 1 Oct 2025 15:15:36 -0400 Subject: [PATCH] remove id from generated config turns out the invalid id attributes were captured in the command test, so removing them caused that to fail too. --- internal/command/query_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/command/query_test.go b/internal/command/query_test.go index 95162d2ba8..505c913ce0 100644 --- a/internal/command/query_test.go +++ b/internal/command/query_test.go @@ -536,7 +536,7 @@ func TestQuery_JSON(t *testing.T) { "ami": "ami-12345", "id": "test-instance-1", }, - "config": "resource \"test_instance\" \"example_0\" {\n provider = test\n ami = \"ami-12345\"\n id = \"test-instance-1\"\n}", + "config": "resource \"test_instance\" \"example_0\" {\n provider = test\n ami = \"ami-12345\"\n}", "import_config": "import {\n to = test_instance.example_0\n provider = test\n identity = {\n id = \"test-instance-1\"\n }\n}", }, "type": "list_resource_found", @@ -556,7 +556,7 @@ func TestQuery_JSON(t *testing.T) { "ami": "ami-67890", "id": "test-instance-2", }, - "config": "resource \"test_instance\" \"example_1\" {\n provider = test\n ami = \"ami-67890\"\n id = \"test-instance-2\"\n}", + "config": "resource \"test_instance\" \"example_1\" {\n provider = test\n ami = \"ami-67890\"\n}", "import_config": "import {\n to = test_instance.example_1\n provider = test\n identity = {\n id = \"test-instance-2\"\n }\n}", }, "type": "list_resource_found",