Skip to content

Commit 8d5ae90

Browse files
authored
Merge pull request #121 from mattsmithdatera/master
Updating vendored CSI spec and associated services/mocks
2 parents 8424d42 + 4065c99 commit 8d5ae90

File tree

4 files changed

+524
-261
lines changed

4 files changed

+524
-261
lines changed

driver/driver.mock.go

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mock/service/node.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,3 +234,9 @@ func (s *service) NodeGetInfo(ctx context.Context,
234234
NodeId: s.nodeID,
235235
}, nil
236236
}
237+
238+
func (s *service) NodeGetVolumeStats(ctx context.Context,
239+
req *csi.NodeGetVolumeStatsRequest) (*csi.NodeGetVolumeStatsResponse, error) {
240+
return &csi.NodeGetVolumeStatsResponse{}, nil
241+
242+
}

pkg/sanity/node.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ var _ = DescribeSanity("Node Service", func(sc *SanityContext) {
119119
switch cap.GetRpc().GetType() {
120120
case csi.NodeServiceCapability_RPC_UNKNOWN:
121121
case csi.NodeServiceCapability_RPC_STAGE_UNSTAGE_VOLUME:
122+
case csi.NodeServiceCapability_RPC_GET_VOLUME_STATS:
122123
default:
123124
Fail(fmt.Sprintf("Unknown capability: %v\n", cap.GetRpc().GetType()))
124125
}

0 commit comments

Comments
 (0)