@@ -271,9 +271,9 @@ func TestProcessDestructiveFlows_WithVersions(t *testing.T) {
271
271
flowName := "TestFlow"
272
272
fq := & fakeQuerier {results : map [string ]lib.ForceQueryResult {
273
273
flowName : {Records : []lib.ForceRecord {
274
- {"VersionNumber" : float64 (1 ), "Status" : "Active" , "FlowDefinitionView. ApiName" : "TestFlow" },
275
- {"VersionNumber" : float64 (2 ), "Status" : "Inactive" , "FlowDefinitionView. ApiName" : "TestFlow" },
276
- {"VersionNumber" : float64 (3 ), "Status" : "Active" , "FlowDefinitionView. ApiName" : "TestFlow" },
274
+ {"VersionNumber" : float64 (1 ), "Status" : "Active" , "FlowDefinitionView" : map [ string ] interface {}{ " ApiName" : "TestFlow" } },
275
+ {"VersionNumber" : float64 (2 ), "Status" : "Inactive" , "FlowDefinitionView" : map [ string ] interface {}{ " ApiName" : "TestFlow" } },
276
+ {"VersionNumber" : float64 (3 ), "Status" : "Active" , "FlowDefinitionView" : map [ string ] interface {}{ " ApiName" : "TestFlow" } },
277
277
}},
278
278
}}
279
279
@@ -423,7 +423,7 @@ func TestProcessDestructiveFlows_NoVersions(t *testing.T) {
423
423
func TestProcessDestructiveFlows_MixedFlows (t * testing.T ) {
424
424
fq := & fakeQuerier {results : map [string ]lib.ForceQueryResult {
425
425
"FlowWithVersions" : {Records : []lib.ForceRecord {
426
- {"VersionNumber" : float64 (1 ), "Status" : "Active" , "FlowDefinitionView. ApiName" : "FlowWithVersions" },
426
+ {"VersionNumber" : float64 (1 ), "Status" : "Active" , "FlowDefinitionView" : map [ string ] interface {}{ " ApiName" : "FlowWithVersions" } },
427
427
}},
428
428
"FlowWithoutVersions" : {Records : []lib.ForceRecord {}},
429
429
}}
@@ -496,8 +496,8 @@ func TestProcessDestructiveFlows_CaseMismatch(t *testing.T) {
496
496
// Org has flow with name "MyFlow" but destructive changes has "myflow"
497
497
fq := & fakeQuerier {results : map [string ]lib.ForceQueryResult {
498
498
"myflow" : {Records : []lib.ForceRecord {
499
- {"VersionNumber" : float64 (1 ), "Status" : "Active" , "FlowDefinitionView. ApiName" : "MyFlow" },
500
- {"VersionNumber" : float64 (2 ), "Status" : "Inactive" , "FlowDefinitionView. ApiName" : "MyFlow" },
499
+ {"VersionNumber" : float64 (1 ), "Status" : "Active" , "FlowDefinitionView" : map [ string ] interface {}{ " ApiName" : "MyFlow" } },
500
+ {"VersionNumber" : float64 (2 ), "Status" : "Inactive" , "FlowDefinitionView" : map [ string ] interface {}{ " ApiName" : "MyFlow" } },
501
501
}},
502
502
}}
503
503
@@ -568,12 +568,12 @@ func TestProcessDestructiveFlows_DuplicateCasing(t *testing.T) {
568
568
// Both queries return the same flow (with correct casing from org)
569
569
fq := & fakeQuerier {results : map [string ]lib.ForceQueryResult {
570
570
"Member_Plan_After_Save" : {Records : []lib.ForceRecord {
571
- {"VersionNumber" : float64 (2 ), "Status" : "Active" , "FlowDefinitionView. ApiName" : "Member_Plan_After_save" },
572
- {"VersionNumber" : float64 (3 ), "Status" : "Inactive" , "FlowDefinitionView. ApiName" : "Member_Plan_After_save" },
571
+ {"VersionNumber" : float64 (2 ), "Status" : "Active" , "FlowDefinitionView" : map [ string ] interface {}{ " ApiName" : "Member_Plan_After_save" } },
572
+ {"VersionNumber" : float64 (3 ), "Status" : "Inactive" , "FlowDefinitionView" : map [ string ] interface {}{ " ApiName" : "Member_Plan_After_save" } },
573
573
}},
574
574
"Member_Plan_After_save" : {Records : []lib.ForceRecord {
575
- {"VersionNumber" : float64 (2 ), "Status" : "Active" , "FlowDefinitionView. ApiName" : "Member_Plan_After_save" },
576
- {"VersionNumber" : float64 (3 ), "Status" : "Inactive" , "FlowDefinitionView. ApiName" : "Member_Plan_After_save" },
575
+ {"VersionNumber" : float64 (2 ), "Status" : "Active" , "FlowDefinitionView" : map [ string ] interface {}{ " ApiName" : "Member_Plan_After_save" } },
576
+ {"VersionNumber" : float64 (3 ), "Status" : "Inactive" , "FlowDefinitionView" : map [ string ] interface {}{ " ApiName" : "Member_Plan_After_save" } },
577
577
}},
578
578
}}
579
579
@@ -653,12 +653,12 @@ func TestProcessDestructiveFlows_DuplicateCasing(t *testing.T) {
653
653
func TestProcessDestructiveFlows_NoFlowDefinitionForInactiveOnly (t * testing.T ) {
654
654
fq := & fakeQuerier {results : map [string ]lib.ForceQueryResult {
655
655
"InactiveOnlyFlow" : {Records : []lib.ForceRecord {
656
- {"VersionNumber" : float64 (1 ), "Status" : "Inactive" , "FlowDefinitionView. ApiName" : "InactiveOnlyFlow" },
657
- {"VersionNumber" : float64 (2 ), "Status" : "Obsolete" , "FlowDefinitionView. ApiName" : "InactiveOnlyFlow" },
656
+ {"VersionNumber" : float64 (1 ), "Status" : "Inactive" , "FlowDefinitionView" : map [ string ] interface {}{ " ApiName" : "InactiveOnlyFlow" } },
657
+ {"VersionNumber" : float64 (2 ), "Status" : "Obsolete" , "FlowDefinitionView" : map [ string ] interface {}{ " ApiName" : "InactiveOnlyFlow" } },
658
658
}},
659
659
"ActiveFlow" : {Records : []lib.ForceRecord {
660
- {"VersionNumber" : float64 (1 ), "Status" : "Active" , "FlowDefinitionView. ApiName" : "ActiveFlow" },
661
- {"VersionNumber" : float64 (2 ), "Status" : "Inactive" , "FlowDefinitionView. ApiName" : "ActiveFlow" },
660
+ {"VersionNumber" : float64 (1 ), "Status" : "Active" , "FlowDefinitionView" : map [ string ] interface {}{ " ApiName" : "ActiveFlow" } },
661
+ {"VersionNumber" : float64 (2 ), "Status" : "Inactive" , "FlowDefinitionView" : map [ string ] interface {}{ " ApiName" : "ActiveFlow" } },
662
662
}},
663
663
}}
664
664
0 commit comments