示例#1
0
        public async Task UnsupportedApiShouldThrowRpcUnimplementedException()
        {
            var service = createService();

            await AssertRpc.ThrowsRpcUnimplementedException(()
                                                            => service.NodeStageVolume(new NodeStageVolumeRequest(), null));

            await AssertRpc.ThrowsRpcUnimplementedException(()
                                                            => service.NodeUnstageVolume(new NodeUnstageVolumeRequest(), null));
        }
示例#2
0
        public async Task UnsupportedApiShouldThrowRpcUnimplementedException()
        {
            var service = createService();

            await AssertRpc.ThrowsRpcUnimplementedException(()
                                                            => service.ControllerPublishVolume(new ControllerPublishVolumeRequest(), null));

            await AssertRpc.ThrowsRpcUnimplementedException(()
                                                            => service.ControllerUnpublishVolume(new ControllerUnpublishVolumeRequest(), null));

            await AssertRpc.ThrowsRpcUnimplementedException(()
                                                            => service.ValidateVolumeCapabilities(new ValidateVolumeCapabilitiesRequest(), null));

            await AssertRpc.ThrowsRpcUnimplementedException(()
                                                            => service.ListVolumes(new ListVolumesRequest(), null));

            await AssertRpc.ThrowsRpcUnimplementedException(()
                                                            => service.GetCapacity(new GetCapacityRequest(), null));

            await AssertRpc.ThrowsRpcUnimplementedException(()
                                                            => service.GetCapacity(new GetCapacityRequest(), null));
        }