Skip to content

Commit 50098e5

Browse files
fixes
1 parent 55d7c7d commit 50098e5

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

tools/cli/internal/cli/sunset/list.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,5 @@ func ListBuilder() *cobra.Command {
179179
cmd.Flags().StringVarP(&opts.format, flag.Format, flag.FormatShort, "json", usage.Format)
180180

181181
_ = cmd.MarkFlagRequired(flag.Spec)
182-
183182
return cmd
184183
}

tools/cli/internal/cli/sunset/list_test.go

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ func TestList_Run(t *testing.T) {
3232
outputPath: "foas.json",
3333
fs: fs,
3434
format: "json",
35-
to: "2024-09-22",
36-
from: "2025-09-22",
35+
from: "2024-09-22",
36+
to: "2026-09-22",
3737
}
3838

3939
require.NoError(t, opts.Run())
@@ -55,14 +55,21 @@ var expectedResults = []*sunset.Sunset{
5555
{Operation: "GET",
5656
Path: "/api/atlas/v2/federationSettings/{federationSettingsId}/identityProviders/{identityProviderId}",
5757
SunsetDate: "2025-01-01", Team: "IAM", Version: "2023-01-01"},
58+
{Operation: "PATCH",
59+
Path: "/api/atlas/v2/federationSettings/{federationSettingsId}/identityProviders/{identityProviderId}",
60+
SunsetDate: "2025-01-01", Team: "IAM", Version: "2023-01-01"},
5861
{Operation: "PATCH", Path: "/api/atlas/v2/groups/{groupId}/alerts/{alertId}", SunsetDate: "2025-05-30",
5962
Team: "CAP", Version: "2023-01-01"},
6063
{Operation: "GET", Path: "/api/atlas/v2/groups/{groupId}/backup/exportBuckets", SunsetDate: "2025-05-30",
6164
Team: "Backup - Atlas", Version: "2023-01-01"},
6265
{Operation: "POST", Path: "/api/atlas/v2/groups/{groupId}/backup/exportBuckets",
6366
SunsetDate: "2025-05-30", Team: "Backup - Atlas", Version: "2023-01-01"},
67+
{Operation: "GET", Path: "/api/atlas/v2/groups/{groupId}/backup/exportBuckets/{exportBucketId}",
68+
SunsetDate: "2025-05-30", Team: "Backup - Atlas", Version: "2023-01-01"},
6469
{Operation: "GET", Path: "/api/atlas/v2/groups/{groupId}/backupCompliancePolicy",
6570
SunsetDate: "2024-10-01", Team: "Backup - Atlas", Version: "2023-01-01"},
71+
{Operation: "PUT", Path: "/api/atlas/v2/groups/{groupId}/backupCompliancePolicy",
72+
SunsetDate: "2024-10-01", Team: "Backup - Atlas", Version: "2023-01-01"},
6673
{Operation: "POST", Path: "/api/atlas/v2/groups/{groupId}/clusters",
6774
SunsetDate: "2025-06-01", Team: "Atlas Dedicated", Version: "2023-01-01"},
6875
{Operation: "DELETE", Path: "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}",
@@ -88,6 +95,8 @@ var expectedResults = []*sunset.Sunset{
8895
SunsetDate: "2025-06-01", Team: "Atlas Dedicated", Version: "2023-01-01"},
8996
{Operation: "DELETE", Path: "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/customZoneMapping",
9097
SunsetDate: "2025-06-01", Team: "Atlas Dedicated", Version: "2023-01-01"},
98+
{Operation: "POST", Path: "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/customZoneMapping",
99+
SunsetDate: "2025-06-01", Team: "Atlas Dedicated", Version: "2023-01-01"},
91100
{Operation: "DELETE", Path: "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/managedNamespaces",
92101
SunsetDate: "2025-06-01", Team: "Atlas Dedicated", Version: "2023-01-01"},
93102
{Operation: "POST", Path: "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/managedNamespaces",
@@ -96,18 +105,22 @@ var expectedResults = []*sunset.Sunset{
96105
SunsetDate: "2025-06-01", Team: "Atlas", Version: "2023-01-01"},
97106
{Operation: "PATCH", Path: "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/processArgs",
98107
SunsetDate: "2025-06-01", Team: "Atlas", Version: "2023-01-01"},
99-
{Operation: "PATCH", Path: "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/deployment",
100-
SunsetDate: "2026-03-01", Team: "Search Web Platform", Version: "2023-01-01"},
101-
{Operation: "POST", Path: "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/deployment",
108+
{Operation: "POST", Path: "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/restartPrimaries",
109+
SunsetDate: "2025-06-01", Team: "Atlas Dedicated", Version: "2023-01-01"},
110+
{Operation: "DELETE", Path: "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/deployment",
102111
SunsetDate: "2026-03-01", Team: "Search Web Platform", Version: "2023-01-01"},
103112
{Operation: "GET", Path: "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/deployment",
104113
SunsetDate: "2026-03-01", Team: "Search Web Platform", Version: "2023-01-01"},
105-
{Operation: "DELETE", Path: "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/deployment",
114+
{Operation: "PATCH", Path: "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/deployment",
106115
SunsetDate: "2026-03-01", Team: "Search Web Platform", Version: "2023-01-01"},
107-
{Operation: "PATCH", Path: "/api/atlas/v2/groups/{groupId}/invites",
108-
SunsetDate: "2024-10-04", Team: "IAM", Version: "2023-01-01"},
116+
{Operation: "POST", Path: "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/deployment",
117+
SunsetDate: "2026-03-01", Team: "Search Web Platform", Version: "2023-01-01"},
118+
{Operation: "GET", Path: "/api/atlas/v2/groups/{groupId}/clusters/{hostName}/logs/{logName}.gz",
119+
SunsetDate: "2025-06-01", Team: "Atlas Dedicated", Version: "2023-01-01"},
109120
{Operation: "GET", Path: "/api/atlas/v2/groups/{groupId}/invites", SunsetDate: "2024-10-04", Team: "IAM",
110121
Version: "2023-01-01"},
122+
{Operation: "PATCH", Path: "/api/atlas/v2/groups/{groupId}/invites",
123+
SunsetDate: "2024-10-04", Team: "IAM", Version: "2023-01-01"},
111124
{Operation: "POST", Path: "/api/atlas/v2/groups/{groupId}/invites", SunsetDate: "2024-10-04", Team: "IAM",
112125
Version: "2023-01-01"},
113126
{Operation: "DELETE", Path: "/api/atlas/v2/groups/{groupId}/invites/{invitationId}", SunsetDate: "2024-10-04",

0 commit comments

Comments
 (0)