Skip to content

Commit 8424d42

Browse files
authored
Merge pull request #115 from wackxu/rmtokentest
remove test case for starting_token when ListSnapshots
2 parents 1330df9 + 717312f commit 8424d42

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

pkg/sanity/controller.go

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,31 +1254,6 @@ var _ = DescribeSanity("ListSnapshots [Controller Server]", func(sc *SanityConte
12541254
Expect(snapshots.GetEntries()).To(BeEmpty())
12551255
})
12561256

1257-
It("should fail when the starting_token is greater than total number of snapshots", func() {
1258-
// Get total number of snapshots.
1259-
snapshots, err := c.ListSnapshots(
1260-
context.Background(),
1261-
&csi.ListSnapshotsRequest{})
1262-
Expect(err).NotTo(HaveOccurred())
1263-
Expect(snapshots).NotTo(BeNil())
1264-
1265-
totalSnapshots := len(snapshots.GetEntries())
1266-
1267-
// Send starting_token that is greater than the total number of snapshots.
1268-
snapshots, err = c.ListSnapshots(
1269-
context.Background(),
1270-
&csi.ListSnapshotsRequest{
1271-
StartingToken: strconv.Itoa(totalSnapshots + 5),
1272-
},
1273-
)
1274-
Expect(err).To(HaveOccurred())
1275-
Expect(snapshots).To(BeNil())
1276-
1277-
serverError, ok := status.FromError(err)
1278-
Expect(ok).To(BeTrue())
1279-
Expect(serverError.Code()).To(Equal(codes.Aborted))
1280-
})
1281-
12821257
It("check the presence of new snapshots in the snapshot list", func() {
12831258
// List Snapshots before creating new snapshots.
12841259
snapshots, err := c.ListSnapshots(

0 commit comments

Comments
 (0)