Skip to content

Commit

Permalink
Merge pull request #133 from wnxn/master
Browse files Browse the repository at this point in the history
Fix listsnapshot clean up
  • Loading branch information
k8s-ci-robot authored Nov 8, 2018
2 parents 10d6320 + 04c574e commit 93231de
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/sanity/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1205,15 +1205,15 @@ var _ = DescribeSanity("ListSnapshots [Controller Server]", func(sc *SanityConte
verifySnapshotInfo(snapshots.GetEntries()[0].GetSnapshot())
Expect(snapshots.GetEntries()[0].GetSnapshot().GetId()).To(Equal(snapshot.GetSnapshot().GetId()))

By("cleaning up deleting the volume")
delVolReq := MakeDeleteVolumeReq(sc, volume.GetVolume().GetId())
_, err = c.DeleteVolume(context.Background(), delVolReq)
Expect(err).NotTo(HaveOccurred())

By("cleaning up deleting the snapshot")
delSnapReq := MakeDeleteSnapshotReq(sc, snapshot.GetSnapshot().GetId())
_, err = c.DeleteSnapshot(context.Background(), delSnapReq)
Expect(err).NotTo(HaveOccurred())

By("cleaning up deleting the volume")
delVolReq := MakeDeleteVolumeReq(sc, volume.GetVolume().GetId())
_, err = c.DeleteVolume(context.Background(), delVolReq)
Expect(err).NotTo(HaveOccurred())
})

It("should return empty when the specify snapshot id is not exist", func() {
Expand Down

0 comments on commit 93231de

Please sign in to comment.