Skip to content

Commit 0d4d758

Browse files
committed
fix(sfs): integrate sdk changes
1 parent 5a1aefd commit 0d4d758

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

internal/cmd/beta/sfs/resource-pool/update/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func buildRequest(ctx context.Context, model *inputModel, apiClient *sfs.APIClie
138138
PerformanceClass: model.PerformanceClass,
139139
SizeGigabytes: *sfs.NewNullableInt32(model.SizeGigabytes),
140140
SnapshotsAreVisible: model.SnapshotsVisible,
141-
SnapshotPolicyId: model.SnapshotPolicyId,
141+
SnapshotPolicyId: *sfs.NewNullableString(model.SnapshotPolicyId),
142142
})
143143
return req
144144
}

internal/cmd/beta/sfs/resource-pool/update/update_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func fixtureRequest(mods ...func(request *sfs.ApiUpdateResourcePoolRequest)) sfs
9292
PerformanceClass: &testResourcePoolPerformanceClass,
9393
SizeGigabytes: *sfs.NewNullableInt32(&testResourcePoolSizeInGB),
9494
SnapshotsAreVisible: &testSnapshotsVisible,
95-
SnapshotPolicyId: &testSnapshotPolicyId,
95+
SnapshotPolicyId: *sfs.NewNullableString(&testSnapshotPolicyId),
9696
})
9797
for _, mod := range mods {
9898
mod(&request)
@@ -313,7 +313,7 @@ func TestBuildRequest(t *testing.T) {
313313
diff := cmp.Diff(request, tt.expectedRequest,
314314
cmp.AllowUnexported(tt.expectedRequest, sfs.DefaultAPIService{}),
315315
cmpopts.EquateComparable(testCtx),
316-
cmp.AllowUnexported(sfs.NullableInt32{}),
316+
cmp.AllowUnexported(sfs.NullableInt32{}, sfs.NullableString{}),
317317
)
318318
if diff != "" {
319319
t.Fatalf("Data does not match: %s", diff)

0 commit comments

Comments
 (0)