Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkg/sanity/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2097,6 +2097,7 @@ var _ = DescribeSanity("ExpandVolume [Controller Server]", func(sc *SanityContex
CapacityRange: &csi.CapacityRange{
RequiredBytes: TestVolumeExpandSize(sc),
},
Secrets: sc.Secrets.ControllerExpandVolumeSecret,
}
rsp, err := c.ControllerExpandVolume(context.Background(), expReq)
Expect(err).To(HaveOccurred())
Expand All @@ -2110,6 +2111,7 @@ var _ = DescribeSanity("ExpandVolume [Controller Server]", func(sc *SanityContex
It("should fail if no capacity range is given", func() {
expReq := &csi.ControllerExpandVolumeRequest{
VolumeId: "",
Secrets: sc.Secrets.ControllerExpandVolumeSecret,
}
rsp, err := c.ControllerExpandVolume(context.Background(), expReq)
Expect(err).To(HaveOccurred())
Expand Down Expand Up @@ -2156,6 +2158,7 @@ var _ = DescribeSanity("ExpandVolume [Controller Server]", func(sc *SanityContex
CapacityRange: &csi.CapacityRange{
RequiredBytes: TestVolumeExpandSize(sc),
},
Secrets: sc.Secrets.ControllerExpandVolumeSecret,
}
rsp, err := c.ControllerExpandVolume(context.Background(), expReq)
Expect(err).NotTo(HaveOccurred())
Expand Down
1 change: 1 addition & 0 deletions pkg/sanity/sanity.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ type CSISecrets struct {
NodePublishVolumeSecret map[string]string `yaml:"NodePublishVolumeSecret"`
CreateSnapshotSecret map[string]string `yaml:"CreateSnapshotSecret"`
DeleteSnapshotSecret map[string]string `yaml:"DeleteSnapshotSecret"`
ControllerExpandVolumeSecret map[string]string `yaml:"ControllerExpandVolumeSecret"`
}

// Config provides the configuration for the sanity tests. It
Expand Down