Skip to content

Commit a3be817

Browse files
authored
Merge pull request #217 from suneeth51/master
Pass ControllerExpandVolumeSecret info to the VolumeExpand CSI tests
2 parents 82b0519 + a15b9a0 commit a3be817

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

pkg/sanity/controller.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,6 +2097,7 @@ var _ = DescribeSanity("ExpandVolume [Controller Server]", func(sc *SanityContex
20972097
CapacityRange: &csi.CapacityRange{
20982098
RequiredBytes: TestVolumeExpandSize(sc),
20992099
},
2100+
Secrets: sc.Secrets.ControllerExpandVolumeSecret,
21002101
}
21012102
rsp, err := c.ControllerExpandVolume(context.Background(), expReq)
21022103
Expect(err).To(HaveOccurred())
@@ -2110,6 +2111,7 @@ var _ = DescribeSanity("ExpandVolume [Controller Server]", func(sc *SanityContex
21102111
It("should fail if no capacity range is given", func() {
21112112
expReq := &csi.ControllerExpandVolumeRequest{
21122113
VolumeId: "",
2114+
Secrets: sc.Secrets.ControllerExpandVolumeSecret,
21132115
}
21142116
rsp, err := c.ControllerExpandVolume(context.Background(), expReq)
21152117
Expect(err).To(HaveOccurred())
@@ -2156,6 +2158,7 @@ var _ = DescribeSanity("ExpandVolume [Controller Server]", func(sc *SanityContex
21562158
CapacityRange: &csi.CapacityRange{
21572159
RequiredBytes: TestVolumeExpandSize(sc),
21582160
},
2161+
Secrets: sc.Secrets.ControllerExpandVolumeSecret,
21592162
}
21602163
rsp, err := c.ControllerExpandVolume(context.Background(), expReq)
21612164
Expect(err).NotTo(HaveOccurred())

pkg/sanity/sanity.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ type CSISecrets struct {
4848
NodePublishVolumeSecret map[string]string `yaml:"NodePublishVolumeSecret"`
4949
CreateSnapshotSecret map[string]string `yaml:"CreateSnapshotSecret"`
5050
DeleteSnapshotSecret map[string]string `yaml:"DeleteSnapshotSecret"`
51+
ControllerExpandVolumeSecret map[string]string `yaml:"ControllerExpandVolumeSecret"`
5152
}
5253

5354
// Config provides the configuration for the sanity tests. It

0 commit comments

Comments
 (0)