@@ -700,7 +700,7 @@ func TestTerraformToBundleEmptyLocalResources(t *testing.T) {
700700 Mode : "managed" ,
701701 Name : "test_app" ,
702702 Instances : []stateResourceInstance {
703- {Attributes : stateInstanceAttributes {ID : "1 " }},
703+ {Attributes : stateInstanceAttributes {Name : "app1 " }},
704704 },
705705 },
706706 },
@@ -741,7 +741,7 @@ func TestTerraformToBundleEmptyLocalResources(t *testing.T) {
741741 assert .Equal (t , "1" , config .Resources .Dashboards ["test_dashboard" ].ID )
742742 assert .Equal (t , resources .ModifiedStatusDeleted , config .Resources .Dashboards ["test_dashboard" ].ModifiedStatus )
743743
744- assert .Equal (t , "1 " , config .Resources .Apps ["test_app" ].ID )
744+ assert .Equal (t , "app1 " , config .Resources .Apps ["test_app" ].Name )
745745 assert .Equal (t , resources .ModifiedStatusDeleted , config .Resources .Apps ["test_app" ].ModifiedStatus )
746746
747747 AssertFullResourceCoverage (t , & config )
@@ -830,7 +830,7 @@ func TestTerraformToBundleEmptyRemoteResources(t *testing.T) {
830830 Apps : map [string ]* resources.App {
831831 "test_app" : {
832832 App : & apps.App {
833- Name : "test_app" ,
833+ Description : "test_app" ,
834834 },
835835 },
836836 },
@@ -875,7 +875,7 @@ func TestTerraformToBundleEmptyRemoteResources(t *testing.T) {
875875 assert .Equal (t , "" , config .Resources .Dashboards ["test_dashboard" ].ID )
876876 assert .Equal (t , resources .ModifiedStatusCreated , config .Resources .Dashboards ["test_dashboard" ].ModifiedStatus )
877877
878- assert .Equal (t , "" , config .Resources .Apps ["test_app" ].ID )
878+ assert .Equal (t , "" , config .Resources .Apps ["test_app" ].Name )
879879 assert .Equal (t , resources .ModifiedStatusCreated , config .Resources .Apps ["test_app" ].ModifiedStatus )
880880
881881 AssertFullResourceCoverage (t , & config )
@@ -1019,12 +1019,12 @@ func TestTerraformToBundleModifiedResources(t *testing.T) {
10191019 Apps : map [string ]* resources.App {
10201020 "test_app" : {
10211021 App : & apps.App {
1022- Name : "test_app" ,
1022+ Description : "test_app" ,
10231023 },
10241024 },
10251025 "test_app_new" : {
10261026 App : & apps.App {
1027- Name : "test_app_new" ,
1027+ Description : "test_app_new" ,
10281028 },
10291029 },
10301030 },
@@ -1213,15 +1213,15 @@ func TestTerraformToBundleModifiedResources(t *testing.T) {
12131213 Mode : "managed" ,
12141214 Name : "test_app" ,
12151215 Instances : []stateResourceInstance {
1216- {Attributes : stateInstanceAttributes {ID : "1 " }},
1216+ {Attributes : stateInstanceAttributes {Name : "app1 " }},
12171217 },
12181218 },
12191219 {
12201220 Type : "databricks_app" ,
12211221 Mode : "managed" ,
12221222 Name : "test_app_old" ,
12231223 Instances : []stateResourceInstance {
1224- {Attributes : stateInstanceAttributes {ID : "2 " }},
1224+ {Attributes : stateInstanceAttributes {Name : "app2 " }},
12251225 },
12261226 },
12271227 },
@@ -1306,11 +1306,11 @@ func TestTerraformToBundleModifiedResources(t *testing.T) {
13061306 assert .Equal (t , "" , config .Resources .Dashboards ["test_dashboard_new" ].ID )
13071307 assert .Equal (t , resources .ModifiedStatusCreated , config .Resources .Dashboards ["test_dashboard_new" ].ModifiedStatus )
13081308
1309- assert .Equal (t , "1 " , config .Resources .Apps ["test_app" ].ID )
1309+ assert .Equal (t , "app1 " , config .Resources .Apps ["test_app" ].Name )
13101310 assert .Equal (t , "" , config .Resources .Apps ["test_app" ].ModifiedStatus )
1311- assert .Equal (t , "2 " , config .Resources .Apps ["test_app_old" ].ID )
1311+ assert .Equal (t , "app2 " , config .Resources .Apps ["test_app_old" ].Name )
13121312 assert .Equal (t , resources .ModifiedStatusDeleted , config .Resources .Apps ["test_app_old" ].ModifiedStatus )
1313- assert .Equal (t , "" , config .Resources .Apps ["test_app_new" ].ID )
1313+ assert .Equal (t , "" , config .Resources .Apps ["test_app_new" ].Name )
13141314 assert .Equal (t , resources .ModifiedStatusCreated , config .Resources .Apps ["test_app_new" ].ModifiedStatus )
13151315
13161316 AssertFullResourceCoverage (t , & config )
0 commit comments