Skip to content

Commit cf79384

Browse files
author
Paola Nicosia
committed
Add test to apply
1 parent 78a3b35 commit cf79384

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

internal/cmd/marketplace/apply/apply_test.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,17 +351,26 @@ func TestApplyPrintApplyOutcome(t *testing.T) {
351351
},
352352
},
353353
},
354+
{
355+
ID: "id6",
356+
ItemID: "item-id-6",
357+
Done: true,
358+
Inserted: true,
359+
Updated: false,
360+
},
354361
},
355362
}
356363
found := buildOutcomeSummaryAsTables(mockOutcome)
357-
require.Contains(t, found, "3 of 5 items have been successfully applied:")
364+
require.Contains(t, found, "4 of 6 items have been successfully applied:")
358365
require.Contains(t, found, "id1")
359366
require.Contains(t, found, "item-id-1")
360367
require.Contains(t, found, "id2")
361368
require.Contains(t, found, "item-id-2")
362369
require.Contains(t, found, "id3")
363370
require.Contains(t, found, "item-id-3")
364-
require.Contains(t, found, "2 of 5 items have not been applied due to validation errors:")
371+
require.Contains(t, found, "id6")
372+
require.Contains(t, found, "item-id-6")
373+
require.Contains(t, found, "2 of 6 items have not been applied due to validation errors:")
365374
require.Contains(t, found, "id4")
366375
require.Contains(t, found, "item-id-4")
367376
require.Contains(t, found, "some validation error")

0 commit comments

Comments
 (0)