Skip to content

Commit 041261d

Browse files
Update changelog_test.go
1 parent e6d1f55 commit 041261d

File tree

1 file changed

+62
-1
lines changed

1 file changed

+62
-1
lines changed

tools/cli/internal/changelog/changelog_test.go

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,68 @@ func TestFindChangelogEntry(t *testing.T) {
612612
changeCode string
613613
expectedEntries *Change
614614
}{
615-
615+
{
616+
name: "find changelog entry no API Version",
617+
entries: []*Entry{
618+
{
619+
Date: "2023-07-10",
620+
Paths: []*Path{
621+
{
622+
URI: "/api/atlas/v2/groups/{id}/clusters",
623+
HTTPMethod: "POST",
624+
OperationID: "createCluster",
625+
Tag: "Multi-Cloud Clusters",
626+
Versions: []*Version{
627+
{
628+
Version: "2023-02-01",
629+
StabilityLevel: "stable",
630+
ChangeType: "remove",
631+
Changes: []*Change{
632+
{
633+
Description: "endpoint removed",
634+
Code: "endpoint-removed",
635+
BackwardCompatible: true,
636+
}},
637+
},
638+
},
639+
},
640+
},
641+
},
642+
{
643+
Date: "2023-07-11",
644+
Paths: []*Path{
645+
{
646+
URI: "/api/atlas/v2/groups/{id}/clusters",
647+
HTTPMethod: "POST",
648+
OperationID: "createCluster",
649+
Tag: "Multi-Cloud Clusters",
650+
Versions: []*Version{
651+
{
652+
Version: "2023-02-01",
653+
StabilityLevel: "stable",
654+
ChangeType: "remove",
655+
Changes: []*Change{
656+
{
657+
Description: "endpoint removed",
658+
Code: "endpoint-removed",
659+
BackwardCompatible: true,
660+
}},
661+
},
662+
},
663+
},
664+
},
665+
},
666+
},
667+
operationID: "createCluster",
668+
date: "2023-07-10",
669+
version: "",
670+
changeCode: "endpoint-removed",
671+
expectedEntries: &Change{
672+
Description: "endpoint removed",
673+
Code: "endpoint-removed",
674+
BackwardCompatible: true,
675+
},
676+
},
616677
{
617678
name: "find changelog entry",
618679
entries: []*Entry{

0 commit comments

Comments
 (0)