@@ -772,7 +772,7 @@ var _ = Describe("ControllerServer test", Ordered, func() {
772772 iaasClient .EXPECT ().ListBackups (gomock .Any (), gomock .Any ()).Return ([]iaas.Backup {}, nil )
773773
774774 // Backups are created from snapshots
775- iaasClient .EXPECT ().ListSnapshots (gomock .Any (), gomock .Any ()).Return ([]iaas.Snapshot {}, nil )
775+ iaasClient .EXPECT ().ListSnapshots (gomock .Any (), gomock .Any ()).Return ([]iaas.Snapshot {}, "" , nil )
776776 iaasClient .EXPECT ().CreateSnapshot (gomock .Any (), gomock .Any ()).Return (expectedSnap , nil )
777777 iaasClient .EXPECT ().WaitSnapshotReady (gomock .Any (), "fake-snapshot" ).Return (expectedSnap .Status , nil )
778778
@@ -865,7 +865,7 @@ var _ = Describe("ControllerServer test", Ordered, func() {
865865 iaasClient .EXPECT ().ListBackups (gomock .Any (), gomock .Any ()).Return ([]iaas.Backup {}, nil )
866866
867867 // Backups are created from snapshots
868- iaasClient .EXPECT ().ListSnapshots (gomock .Any (), gomock .Any ()).Return ([]iaas.Snapshot {}, nil )
868+ iaasClient .EXPECT ().ListSnapshots (gomock .Any (), gomock .Any ()).Return ([]iaas.Snapshot {}, "" , nil )
869869 iaasClient .EXPECT ().CreateSnapshot (gomock .Any (), gomock .Any ()).Return (expectedSnap , nil )
870870 iaasClient .EXPECT ().WaitSnapshotReady (gomock .Any (), "fake-snapshot" ).Return (expectedSnap .Status , nil )
871871
@@ -899,7 +899,7 @@ var _ = Describe("ControllerServer test", Ordered, func() {
899899 CreatedAt : new (time.Now ()),
900900 }
901901 // TODO: Again filters are not implemented yet by the API
902- iaasClient .EXPECT ().ListSnapshots (gomock .Any (), gomock .Any ()).Return ([]iaas.Snapshot {}, nil )
902+ iaasClient .EXPECT ().ListSnapshots (gomock .Any (), gomock .Any ()).Return ([]iaas.Snapshot {}, "" , nil )
903903 iaasClient .EXPECT ().CreateSnapshot (gomock .Any (), gomock .Any ()).Return (expectedSnap , nil )
904904 iaasClient .EXPECT ().WaitSnapshotReady (gomock .Any (), "fake-snapshot" ).Return (expectedSnap .Status , nil )
905905 _ , err := fakeCs .CreateSnapshot (context .Background (), req )
@@ -916,7 +916,7 @@ var _ = Describe("ControllerServer test", Ordered, func() {
916916 }
917917
918918 // TODO: Again filters are not implemented yet by the API
919- iaasClient .EXPECT ().ListSnapshots (gomock .Any (), gomock .Any ()).Return ([]iaas.Snapshot {* expectedSnap }, nil )
919+ iaasClient .EXPECT ().ListSnapshots (gomock .Any (), gomock .Any ()).Return ([]iaas.Snapshot {* expectedSnap }, "" , nil )
920920 iaasClient .EXPECT ().WaitSnapshotReady (gomock .Any (), "fake-snapshot" ).Return (new ("AVAILABLE "), nil )
921921 _ , err := fakeCs .CreateSnapshot (context .Background (), req )
922922 Expect (err ).ToNot (HaveOccurred ())
@@ -930,7 +930,7 @@ var _ = Describe("ControllerServer test", Ordered, func() {
930930 {
931931 Id : new ("fake - snapshot2 "),
932932 },
933- }, nil )
933+ }, "" , nil )
934934 _ , err := fakeCs .CreateSnapshot (context .Background (), req )
935935 Expect (err ).To (HaveOccurred ())
936936 Expect (status .Convert (err ).Code ()).To (Equal (codes .Internal ))
@@ -943,7 +943,7 @@ var _ = Describe("ControllerServer test", Ordered, func() {
943943 Id : new ("fake - snapshot "),
944944 VolumeId : "something-different" ,
945945 },
946- }, nil )
946+ }, "" , nil )
947947 _ , err := fakeCs .CreateSnapshot (context .Background (), req )
948948 Expect (err ).To (HaveOccurred ())
949949 Expect (status .Convert (err ).Code ()).To (Equal (codes .AlreadyExists ))
@@ -1001,7 +1001,7 @@ var _ = Describe("ControllerServer test", Ordered, func() {
10011001 VolumeId : "something-different" ,
10021002 Size : new (int64 (10 )),
10031003 CreatedAt : new (snapShotCreationTime ),
1004- }}, nil )
1004+ }}, "" , nil )
10051005 resp , err := fakeCs .ListSnapshots (context .Background (), req )
10061006 Expect (err ).To (Not (HaveOccurred ()))
10071007 Expect (resp .GetEntries ()).Should (Equal (expectedSnapshotListResponse ))
0 commit comments