Skip to content

Commit 46bbff2

Browse files
authored
test(storage-box): fix describe test (#1411)
1 parent f4621c9 commit 46bbff2

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

internal/cmd/storagebox/describe_test.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ Storage Box Type:
154154
Subaccounts Limit: 200
155155
156156
Deprecation:
157-
Announced: 2023-06-01 00:00:00 UTC (2 years ago)
158-
Unavailable After: 2023-09-01 00:00:00 UTC (2 years ago)
157+
Announced: 2023-06-01 00:00:00 UTC (%s)
158+
Unavailable After: 2023-09-01 00:00:00 UTC (%s)
159159
160160
Location:
161161
ID: 42
@@ -166,7 +166,10 @@ Location:
166166
City: Falkenstein
167167
Latitude: 50.476120
168168
Longitude: 12.370071
169-
`, humanize.Time(storageBox.Created))
169+
`,
170+
humanize.Time(storageBox.Created),
171+
humanize.Time(storageBox.StorageBoxType.Deprecation.Announced),
172+
humanize.Time(storageBox.StorageBoxType.Deprecation.UnavailableAfter))
170173

171174
require.NoError(t, err)
172175
assert.Empty(t, errOut)

0 commit comments

Comments
 (0)