Skip to content

Commit

Permalink
Merge pull request #217 from suneeth51/master
Browse files Browse the repository at this point in the history
Pass ControllerExpandVolumeSecret info to the VolumeExpand CSI tests
  • Loading branch information
k8s-ci-robot authored Sep 23, 2019
2 parents 82b0519 + a15b9a0 commit a3be817
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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

0 comments on commit a3be817

Please sign in to comment.