=begin #Linstor REST API #Linstor REST API V1 The V1 rest api of Linstor should stay compatible and only additions are made to the API, If there are breaking changes or redesigned a new major REST API version will be issued. Server runs per default on port `3370` on `::` ipv6 and ipv4. To change the bind address or port you can use the following linstor client commands: ``` linstor controller set-property REST/bindAddress 127.0.0.1 linstor controller set-property REST/port 8080 ``` After setting this properties restart the controller and the new values should be used. Changelog: * 1.0.13 - Fixed broken volume definition modify `flags` handling - Added flags to volume groups (create/modify) * 1.0.12 - Added WritecacheResource and WritecacheVolume schemas. - Removed support for swordfish - Added `with_storage_pool` to PhysicalStorageCreate post request, allowing to create linstor storage pools too - Added `gross` flag for volume-definition size - Added flags to VolumeDefinitionModify (so that `gross` flag can be changed) - Added query-max-volume-size to resource-groups * 1.0.11 - Added /v1/physical-storage endpoint, that lets you query and create lvm/zfs pools - Extended Node with list of supported providers and layers as well as lists of reasons for unsupported providers and layers * 1.0.10 - Added `reports` array field to Volume object, contains ApiCallRcs for problems - Changed `ResourceDefinitions` can now include `VolumeDefinitions` in `volume_definitions` field - Added various filter query parameters * 1.0.9 - Added supports_snapshots to StoragePool * 1.0.8 - Added /v1/resource-groups - Added /v1/resource-groups/{rscgrp}/volume-groups - Moved AutoSelectFilter::place_count default indirectly to create resource implementation - Added diskless_on_remaining to AutoSelectFilter - Changed /v1/view/resources return type to ResourceWithVolumes ResourceWithVolumes is now a child type of Resource (removed volumes from Resource) * 1.0.7 - Added ext_meta_stor_pool to DrbdVolume - Added is_active field to the NetInterface type * 1.0.6 - Added /v1/resource-definitions/{rscName}/resources/{nodeName}/volumes/{vlmnr} PUT * 1.0.5 - Added `reports` field to StoragePool object * 1.0.4 - Added /v1/view/storage-pools overview path - Added uuid fields for objects * 1.0.3 - Added /v1/view/resources overview path - documentation schema extraction * 1.0.2 - Added /v1/storage-pool-definitions object path - added NVME layer object type * 1.0.1 - Documentation review and updates - no functional changes * 1.0.0 - Initial REST API v1 The version of the OpenAPI document: 1.0.13 Contact: rene.peinthor@linbit.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.3.1 =end require 'spec_helper' require 'json' # Unit tests for LinstorClient::DevelopersApi # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'DevelopersApi' do before do # run before each test @api_instance = LinstorClient::DevelopersApi.new end after do # run after each test end describe 'test an instance of DevelopersApi' do it 'should create an instance of DevelopersApi' do expect(@api_instance).to be_instance_of(LinstorClient::DevelopersApi) end end # unit tests for controller_property_delete # Deletes a controller property # Delete a controller property # @param key # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'controller_property_delete test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for controller_property_list # lists all controller properties # Lists all controller properties. # @param [Hash] opts the optional parameters # @return [Hash] describe 'controller_property_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for controller_property_modify # sets or modifies controller properties # Sets or modifies properties Possible properties are: - `TcpPortAutoRange` - regex[`[0-9]+-[0-9]+`] Range for auto-allocation of resource TCP ports - `MinorNrAutoRange` - regex[`[0-9]+-[0-9]+`] Range for auto-allocation of volume minor numbers - `PeerSlotsNewResource` - range[`1-31`] DRBD peer slots to allocate for newly created resources (default 7), the number of peer slots cannot be changed once the resource is created, so allow sufficient slots to increase redundancy in the future - `StorDriver/DMStats` - boolean_true_false Enable dmstats on lvm create - `GlobSeqApiCalls` - boolean_true_false Globally sequentialize all ctrl -> stlt api calls - `REST/bindAddress` - string Bind address of the REST API - `REST/port` - range[`1-65535`] TCP Port of the REST API - `REST/enabled` - boolean_true_false Bool if REST API should be enabled - `NVMe/enabled` - enum * rdma * tcp - `NVMe/enabled` - range[`1-65535`] - `NVMe/PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `StorDriver/WaitTimeoutAfterCreate` - regex[`[0-9]+`] - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - `SearchDomain` - string Search domain node names, if no FQDN is given. - `ExtCmdWaitTimeout` - long Wait timeout for an external command in milliseconds - `DrbdOptions/auto-quorum` - enum Enables automatic setting of the 'quroum' and 'on-no-quroum' property * io-error * suspend-io * disabled - `DrbdOptions/auto-add-quorum-tiebreaker` - boolean_true_false Enables automatic management (creation and deletion) of tie breaking resource - `Writecache/PoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name for writecache - `Writecache/Size` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the writecache in % (0-100) or KiB otherwise - `Writecache/Blocksize` - long 4096 is recommended; the maximum block size is the page size - `Writecache/Options/StartSector` - long offset from the start of cache device in 512-byte sectors - `Writecache/Options/HighWatermark` - long start writeback when the number of used blocks reach this watermark - `Writecache/Options/LowWatermark` - long stop writeback when the number of used blocks drops below this watermark - `Writecache/Options/WritebackJobs` - long limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests - `Writecache/Options/AutocommitBlocks` - long when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited - `Writecache/Options/AutocommitTime` - long autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received - `Writecache/Options/Fua` - enum \"On\" results in \"fua\" as argument, whereas the value \"Off\" results in \"nofua\" argument * On * Off - `Writecache/Options/Additional` - string Additional arguments passed through - `DrbdOptions/Disk/read-balancing` - enum * prefer-local * prefer-remote * round-robin * least-pending * when-congested-remote * 32K-striping * 64K-striping * 128K-striping * 256K-striping * 512K-striping * 1M-striping - `DrbdOptions/Disk/on-io-error` - enum * pass_on * call-local-io-error * detach - `DrbdOptions/Disk/disk-drain` - boolean - `DrbdOptions/Disk/resync-after` - string - `DrbdOptions/Disk/disk-timeout` - range[`0-6000`] - `DrbdOptions/Disk/disable-write-same` - boolean - `DrbdOptions/Disk/rs-discard-granularity` - range[`0-1048576`] - `DrbdOptions/Disk/disk-flushes` - boolean - `DrbdOptions/Disk/al-extents` - range[`67-65534`] - `DrbdOptions/Disk/al-updates` - boolean - `DrbdOptions/Disk/md-flushes` - boolean - `DrbdOptions/Disk/disk-barrier` - boolean - `DrbdOptions/Disk/discard-zeroes-if-aligned` - boolean - `DrbdOptions/PeerDevice/c-fill-target` - range[`0-1048576`] - `DrbdOptions/PeerDevice/c-max-rate` - range[`250-4194304`] - `DrbdOptions/PeerDevice/resync-rate` - range[`1-8388608`] - `DrbdOptions/PeerDevice/c-delay-target` - range[`1-100`] - `DrbdOptions/PeerDevice/c-min-rate` - range[`0-4194304`] - `DrbdOptions/PeerDevice/bitmap` - boolean - `DrbdOptions/PeerDevice/c-plan-ahead` - range[`0-300`] - `DrbdOptions/Resource/peer-ack-delay` - range[`1-10000`] - `DrbdOptions/Resource/quorum-minimum-redundancy` - enum [`1-32`] * off * majority * all - `DrbdOptions/Resource/max-io-depth` - range[`4-4294967295`] - `DrbdOptions/Resource/auto-promote-timeout` - range[`0-600`] - `DrbdOptions/Resource/quorum` - enum [`1-32`] * off * majority * all - `DrbdOptions/Resource/on-no-data-accessible` - enum * io-error * suspend-io - `DrbdOptions/Resource/auto-promote` - boolean - `DrbdOptions/Resource/cpu-mask` - string - `DrbdOptions/Resource/twopc-timeout` - range[`50-600`] - `DrbdOptions/Resource/twopc-retry-timeout` - range[`1-50`] - `DrbdOptions/Resource/peer-ack-window` - range[`2048-204800`] - `DrbdOptions/Resource/on-no-quorum` - enum * io-error * suspend-io - `DrbdOptions/Net/max-epoch-size` - range[`1-20000`] - `DrbdOptions/Net/protocol` - enum * A * B * C - `DrbdOptions/Net/allow-two-primaries` - boolean - `DrbdOptions/Net/after-sb-0pri` - enum * disconnect * discard-younger-primary * discard-older-primary * discard-zero-changes * discard-least-changes * discard-local * discard-remote - `DrbdOptions/Net/ko-count` - range[`0-200`] - `DrbdOptions/Net/data-integrity-alg` - string - `DrbdOptions/Net/ping-timeout` - range[`1-300`] - `DrbdOptions/Net/sndbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/transport` - string - `DrbdOptions/Net/rcvbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/max-buffers` - range[`32-131072`] - `DrbdOptions/Net/fencing` - enum * dont-care * resource-only * resource-and-stonith - `DrbdOptions/Net/csums-alg` - string - `DrbdOptions/Net/always-asbp` - boolean - `DrbdOptions/Net/congestion-extents` - range[`67-65534`] - `DrbdOptions/Net/on-congestion` - enum * block * pull-ahead * disconnect - `DrbdOptions/Net/ping-int` - range[`1-120`] - `DrbdOptions/Net/rr-conflict` - enum * disconnect * call-pri-lost * violently - `DrbdOptions/Net/tcp-cork` - boolean - `DrbdOptions/Net/use-rle` - boolean - `DrbdOptions/Net/csums-after-crash-only` - boolean - `DrbdOptions/Net/socket-check-timeout` - range[`0-300`] - `DrbdOptions/Net/congestion-fill` - range[`0-20971520`] - `DrbdOptions/Net/cram-hmac-alg` - string - `DrbdOptions/Net/verify-alg` - string - `DrbdOptions/Net/shared-secret` - string - `DrbdOptions/Net/connect-int` - range[`1-120`] - `DrbdOptions/Net/timeout` - range[`1-600`] - `DrbdOptions/Net/after-sb-2pri` - enum * disconnect * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Net/after-sb-1pri` - enum * disconnect * consensus * discard-secondary * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Handlers/after-resync-target` - string - `DrbdOptions/Handlers/before-resync-target` - string - `DrbdOptions/Handlers/before-resync-source` - string - `DrbdOptions/Handlers/out-of-sync` - string - `DrbdOptions/Handlers/quorum-lost` - string - `DrbdOptions/Handlers/fence-peer` - string - `DrbdOptions/Handlers/unfence-peer` - string - `DrbdOptions/Handlers/initial-split-brain` - string - `DrbdOptions/Handlers/local-io-error` - string - `DrbdOptions/Handlers/pri-lost` - string - `DrbdOptions/Handlers/pri-lost-after-sb` - string - `DrbdOptions/Handlers/pri-on-incon-degr` - string - `DrbdOptions/Handlers/split-brain` - string # @param [Hash] opts the optional parameters # @option opts [ControllerPropsModify] :controller_props_modify # @return [ApiCallRc] describe 'controller_property_modify test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for controller_version # show controller version info # Show Controller version info # @param [Hash] opts the optional parameters # @return [ControllerVersion] describe 'controller_version test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for create_device_pool # creates an LVM, LVM-thin or ZFS pool, optional VDO under it # Creates a LVM/LVM-thin, ZFS pool on the given device and if supported VDO(optional) under it. logcal_size_kib parameter is only needed if LVM-thin or vdo is used is used. Also note VDO can only used with LVM-fat. # @param node node to use # @param [Hash] opts the optional parameters # @option opts [PhysicalStorageCreate] :physical_storage_create # @return [ApiCallRc] describe 'create_device_pool test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for encryption_passphrase_create # create a encryption passphrase # @param [Hash] opts the optional parameters # @option opts [PassPhraseCreate] :pass_phrase_create # @return [ApiCallRc] describe 'encryption_passphrase_create test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for encryption_passphrase_enter # enter the encryption passphrase # @param [Hash] opts the optional parameters # @option opts [String] :body # @return [ApiCallRc] describe 'encryption_passphrase_enter test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for encryption_passphrase_modify # modifies the encryption passphrase # @param [Hash] opts the optional parameters # @option opts [PassPhraseCreate] :pass_phrase_create # @return [ApiCallRc] describe 'encryption_passphrase_modify test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for error_report_list # list all error reports # List all error reports # @param [Hash] opts the optional parameters # @option opts [String] :node Only show error reports of this node # @option opts [Integer] :since Unix timestamp from the starting interval # @option opts [Integer] :to Unix timestamp to the ending interval # @option opts [Boolean] :with_content Include error report text in response. # @option opts [Integer] :offset number of records to skip for pagination # @option opts [Integer] :limit maximum number of records to return # @return [Array] describe 'error_report_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for error_report_show # query the specified reportid # Query the specified reportid # @param reportid Error id to select # @param [Hash] opts the optional parameters # @option opts [String] :node Only show error reports of this node # @option opts [Integer] :since Unix timestamp from the starting interval # @option opts [Integer] :to Unix timestamp to the ending interval # @option opts [Boolean] :with_content Include error report text in response. # @option opts [Integer] :offset number of records to skip for pagination # @option opts [Integer] :limit maximum number of records to return # @return [Array] describe 'error_report_show test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for key_value_store_delete # delete a key value store # Delete a key value store # @param instance # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'key_value_store_delete test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for key_value_store_list # list all key value stores # List all known key value store instances # @param instance # @param [Hash] opts the optional parameters # @return [Array] describe 'key_value_store_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for key_value_store_modify # modify a key value store # Modify a key value store # @param instance # @param [Hash] opts the optional parameters # @option opts [KeyValueStoreModify] :key_value_store_modify # @return [ApiCallRc] describe 'key_value_store_modify test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for key_value_stores_list # list all key value stores # List all known key value store instances # @param [Hash] opts the optional parameters # @return [Array] describe 'key_value_stores_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for netinterface_create # create a netinterface on a node # Create a netinterface on a node If satellite_port and satellite_encryption_type are given the netinterface can also work as connection to the controller # @param node node to use # @param [Hash] opts the optional parameters # @option opts [NetInterface] :net_interface # @return [ApiCallRc] describe 'netinterface_create test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for netinterface_delete # delete a netinterface from a node # Delete a netinterface from a node # @param node node to use # @param netinterface netinterface name to use # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'netinterface_delete test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for netinterface_list # return the list of net-interfaces # Returns the list of netinterfaces for this node # @param node node to use # @param [Hash] opts the optional parameters # @option opts [Integer] :offset number of records to skip for pagination # @option opts [Integer] :limit maximum number of records to return # @return [Array] describe 'netinterface_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for netinterface_modified # modify a netinterface from a node # Modify a netinterface from a node # @param node node to use # @param netinterface netinterface name to use # @param [Hash] opts the optional parameters # @option opts [NetInterface] :net_interface # @return [ApiCallRc] describe 'netinterface_modified test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for node_add # add a node to Linstor # Adds a node to Linstor If only one net-interface is specified and it is does not specify a `satellite_port` it will apply the default port and `satellite_encryption_type` for this net-interface. # @param [Hash] opts the optional parameters # @option opts [Node] :node Node to add to Linstor # @return [ApiCallRc] describe 'node_add test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for node_delete # delete a node # Delete a node from Linstor # @param node node to use # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'node_delete test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for node_list # Lists nodes registered to the controller # Returns an array of all nodes registered to Linstor. # @param [Hash] opts the optional parameters # @option opts [Integer] :offset number of records to skip for pagination # @option opts [Integer] :limit maximum number of records to return # @return [Array] describe 'node_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for node_lost # delete an unrecoverable node # Delete an unrecoverable node # @param node node to use # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'node_lost test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for node_modify # modify a node # Sets or modifies properties Possible properties are: - `PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `StorPoolNameDrbdMeta` - regex[`^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `DrbdMetaType` - enum * external * internal - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - `Writecache/PoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name for writecache - `Writecache/Size` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the writecache in % (0-100) or KiB otherwise - `Writecache/Blocksize` - long 4096 is recommended; the maximum block size is the page size - `Writecache/Options/StartSector` - long offset from the start of cache device in 512-byte sectors - `Writecache/Options/HighWatermark` - long start writeback when the number of used blocks reach this watermark - `Writecache/Options/LowWatermark` - long stop writeback when the number of used blocks drops below this watermark - `Writecache/Options/WritebackJobs` - long limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests - `Writecache/Options/AutocommitBlocks` - long when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited - `Writecache/Options/AutocommitTime` - long autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received - `Writecache/Options/Fua` - enum \"On\" results in \"fua\" as argument, whereas the value \"Off\" results in \"nofua\" argument * On * Off - `Writecache/Options/Additional` - string Additional arguments passed through # @param node node to use # @param [Hash] opts the optional parameters # @option opts [NodeModify] :node_modify # @return [ApiCallRc] describe 'node_modify test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for node_reconnect # reconnect a node to the controller # Reconnect a node to the controller # @param node node to use # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'node_reconnect test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for node_storage_pool_create # creates a new storage pool on this node # Creates a new storage pool on this node. `provider_kind` has to be specified and additional to that the linked `StorDriver` property that has the value to the backing pool: * `LVM`: `StorDriver/LvmVg` * `LVM_THIN`: `StorDriver/LvmVg` and `StorDriver/ThinPool` * `ZFS`: `StorDriver/ZPool` * `ZFS_THIN`: `StorDriver/ZPoolThin` * `DISKLESS`: Does not need a property as it has no backing pool # @param node node to use # @param [Hash] opts the optional parameters # @option opts [StoragePool] :storage_pool # @return [ApiCallRc] describe 'node_storage_pool_create test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for node_storage_pool_delete # delete a storage pool # Delete a storage pool # @param node node to use # @param storagepool # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'node_storage_pool_delete test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for node_storage_pool_list # lists all storage pools for a node # Lists all storage pools of a node # @param node node to use # @param [Hash] opts the optional parameters # @option opts [Array] :nodes Filter only for the specified nodes, if not specified no filtering. # @option opts [Array] :storage_pools Filter only for the specified storage pools, if not specified no filtering. # @option opts [Integer] :offset number of records to skip for pagination # @option opts [Integer] :limit maximum number of records to return # @return [Array] describe 'node_storage_pool_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for node_storage_pool_modify # modify a storage pool # Sets or modifies properties Possible properties are: - `StorDriver/LvmVg` - regex[`[a-zA-Z0-9_-]+`] - `StorDriver/ThinPool` - regex[`[a-zA-Z0-9_-]+`] - `StorDriver/ZPool` - regex[`[a-zA-Z0-9_/-]+`] - `StorDriver/ZPoolThin` - regex[`[a-zA-Z0-9_/-]+`] - `StorDriver/FileDir` - regex[`.*`] - `PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `NVMe/PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `StorDriver/LvcreateType` - enum * linear * striped * mirror * raid0 * raid1 * raid4 * raid5 * raid6 * raid10 * lzma * lz4 - `StorDriver/WaitTimeoutAfterCreate` - regex[`[0-9]+`] - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device # @param node node to use # @param storagepool # @param [Hash] opts the optional parameters # @option opts [StoragePoolDefinitionModify] :storage_pool_definition_modify # @return [ApiCallRc] describe 'node_storage_pool_modify test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for query_max_volume_size # query the maximum volume size # Query the maximum possible volume size storage pools # @param [Hash] opts the optional parameters # @option opts [AutoSelectFilter] :auto_select_filter # @return [MaxVolumeSizes] describe 'query_max_volume_size test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for query_max_volume_size_from_rsc_grp # query the maximum volume size from a given resource group # Query the maximum possible volume size storage pools # @param resource_group resource group to use # @param [Hash] opts the optional parameters # @return [MaxVolumeSizes] describe 'query_max_volume_size_from_rsc_grp test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_autoplace # autoplace resource # Auto place the resource on the specified place_count redundency. If place_count isn't given 2 is the default. # @param resource resource to use # @param [Hash] opts the optional parameters # @option opts [AutoPlaceRequest] :auto_place_request # @return [ApiCallRc] describe 'resource_autoplace test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_connection_list # show the specified resource connection # show the specified resource connection # @param resource resource to use # @param node_a source node of the connection # @param node_b target node of the connection # @param [Hash] opts the optional parameters # @return [Array] describe 'resource_connection_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_connection_modify # modify a resource connection # Sets or modifies properties Possible properties are: - `DrbdOptions/PeerDevice/c-fill-target` - range[`0-1048576`] - `DrbdOptions/PeerDevice/c-max-rate` - range[`250-4194304`] - `DrbdOptions/PeerDevice/resync-rate` - range[`1-8388608`] - `DrbdOptions/PeerDevice/c-delay-target` - range[`1-100`] - `DrbdOptions/PeerDevice/c-min-rate` - range[`0-4194304`] - `DrbdOptions/PeerDevice/bitmap` - boolean - `DrbdOptions/PeerDevice/c-plan-ahead` - range[`0-300`] - `DrbdOptions/Net/max-epoch-size` - range[`1-20000`] - `DrbdOptions/Net/protocol` - enum * A * B * C - `DrbdOptions/Net/allow-two-primaries` - boolean - `DrbdOptions/Net/after-sb-0pri` - enum * disconnect * discard-younger-primary * discard-older-primary * discard-zero-changes * discard-least-changes * discard-local * discard-remote - `DrbdOptions/Net/ko-count` - range[`0-200`] - `DrbdOptions/Net/data-integrity-alg` - string - `DrbdOptions/Net/ping-timeout` - range[`1-300`] - `DrbdOptions/Net/sndbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/transport` - string - `DrbdOptions/Net/rcvbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/max-buffers` - range[`32-131072`] - `DrbdOptions/Net/fencing` - enum * dont-care * resource-only * resource-and-stonith - `DrbdOptions/Net/csums-alg` - string - `DrbdOptions/Net/always-asbp` - boolean - `DrbdOptions/Net/congestion-extents` - range[`67-65534`] - `DrbdOptions/Net/on-congestion` - enum * block * pull-ahead * disconnect - `DrbdOptions/Net/ping-int` - range[`1-120`] - `DrbdOptions/Net/rr-conflict` - enum * disconnect * call-pri-lost * violently - `DrbdOptions/Net/tcp-cork` - boolean - `DrbdOptions/Net/use-rle` - boolean - `DrbdOptions/Net/csums-after-crash-only` - boolean - `DrbdOptions/Net/socket-check-timeout` - range[`0-300`] - `DrbdOptions/Net/congestion-fill` - range[`0-20971520`] - `DrbdOptions/Net/cram-hmac-alg` - string - `DrbdOptions/Net/verify-alg` - string - `DrbdOptions/Net/shared-secret` - string - `DrbdOptions/Net/connect-int` - range[`1-120`] - `DrbdOptions/Net/timeout` - range[`1-600`] - `DrbdOptions/Net/after-sb-2pri` - enum * disconnect * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Net/after-sb-1pri` - enum * disconnect * consensus * discard-secondary * call-pri-lost-after-sb * violently-as0p # @param resource resource to use # @param node_a source node of the connection # @param node_b target node of the connection # @param [Hash] opts the optional parameters # @option opts [ResourceConnectionModify] :resource_connection_modify # @return [ApiCallRc] describe 'resource_connection_modify test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_connections_list # list all resource connections for resource # List all resource connections for resource # @param resource resource to use # @param [Hash] opts the optional parameters # @return [Array] describe 'resource_connections_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_create # create one or more resources. # Adds one or more resource(s). # @param resource resource to use # @param [Hash] opts the optional parameters # @option opts [Array] :resource_create # @return [ApiCallRc] describe 'resource_create test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_create_on_node # create a resource on a node # Adds a resource on a node. To use a specific storage pool add the `StorPoolName` property and use the storage pool name as value. If the `StorPoolName` property is not set, the `DfltStorPool` will be used. To create a diskless resource you have to set the \"DISKLESS\" flag in the flags list. ``` { \"resource\": { \"flags\": [\"DISKLESS\"] } } ``` # @param resource resource to use # @param node node to use # @param [Hash] opts the optional parameters # @option opts [ResourceCreate] :resource_create # @return [ApiCallRc] describe 'resource_create_on_node test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_definition_create # add a resource-definition # Adds a resource-definition. Only required property is the name of the resource definition. All other properties are optional. # @param [Hash] opts the optional parameters # @option opts [ResourceDefinitionCreate] :resource_definition_create # @return [ApiCallRc] describe 'resource_definition_create test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_definition_delete # delete a resource-definition # Delete a resource-definition # @param resource resource to use # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'resource_definition_delete test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_definition_list # lists all resource-definitions # Lists all resource definitions. A single resource definition can be queried by adding its name to the resource string like: /v1/resource-definitions/rsc1 # @param [Hash] opts the optional parameters # @option opts [Array] :resource_definitions Filter only for the specified resource definitions, if not specified no filtering. # @option opts [Integer] :offset number of records to skip for pagination # @option opts [Integer] :limit maximum number of records to return # @return [Array] describe 'resource_definition_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_definition_modify # modify a resource-definition # Sets or modifies properties Possible properties are: - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `StorPoolNameDrbdMeta` - regex[`^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `DrbdMetaType` - enum * external * internal - `PeerSlotsNewResource` - range[`1-31`] DRBD peer slots to allocate for newly created resources (default 7), the number of peer slots cannot be changed once the resource is created, so allow sufficient slots to increase redundancy in the future - `DrbdProxy/CompressionType` - enum * zlib * lzma * lz4 * zstd - `FileSystem/Type` - enum File system type to use * ext4 * xfs - `FileSystem/MkfsParams` - string Additional parameters for the mkfs command - `NVMe/enabled` - enum * rdma * tcp - `NVMe/enabled` - range[`1-65535`] - `StorDriver/LvcreateType` - enum * linear * striped * mirror * raid0 * raid1 * raid4 * raid5 * raid6 * raid10 * lzma * lz4 - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - `DrbdOptions/auto-quorum` - enum Enables automatic setting of the 'quroum' and 'on-no-quroum' property * io-error * suspend-io * disabled - `DrbdOptions/auto-add-quorum-tiebreaker` - boolean_true_false Enables automatic management (creation and deletion) of tie breaking resource - `Writecache/PoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name for writecache - `Writecache/Size` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the writecache in % (0-100) or KiB otherwise - `Writecache/Blocksize` - long 4096 is recommended; the maximum block size is the page size - `Writecache/Options/StartSector` - long offset from the start of cache device in 512-byte sectors - `Writecache/Options/HighWatermark` - long start writeback when the number of used blocks reach this watermark - `Writecache/Options/LowWatermark` - long stop writeback when the number of used blocks drops below this watermark - `Writecache/Options/WritebackJobs` - long limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests - `Writecache/Options/AutocommitBlocks` - long when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited - `Writecache/Options/AutocommitTime` - long autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received - `Writecache/Options/Fua` - enum \"On\" results in \"fua\" as argument, whereas the value \"Off\" results in \"nofua\" argument * On * Off - `Writecache/Options/Additional` - string Additional arguments passed through - `DrbdOptions/Disk/read-balancing` - enum * prefer-local * prefer-remote * round-robin * least-pending * when-congested-remote * 32K-striping * 64K-striping * 128K-striping * 256K-striping * 512K-striping * 1M-striping - `DrbdOptions/Disk/on-io-error` - enum * pass_on * call-local-io-error * detach - `DrbdOptions/Disk/disk-drain` - boolean - `DrbdOptions/Disk/resync-after` - string - `DrbdOptions/Disk/disk-timeout` - range[`0-6000`] - `DrbdOptions/Disk/disable-write-same` - boolean - `DrbdOptions/Disk/rs-discard-granularity` - range[`0-1048576`] - `DrbdOptions/Disk/disk-flushes` - boolean - `DrbdOptions/Disk/al-extents` - range[`67-65534`] - `DrbdOptions/Disk/al-updates` - boolean - `DrbdOptions/Disk/md-flushes` - boolean - `DrbdOptions/Disk/disk-barrier` - boolean - `DrbdOptions/Disk/discard-zeroes-if-aligned` - boolean - `DrbdOptions/PeerDevice/c-fill-target` - range[`0-1048576`] - `DrbdOptions/PeerDevice/c-max-rate` - range[`250-4194304`] - `DrbdOptions/PeerDevice/resync-rate` - range[`1-8388608`] - `DrbdOptions/PeerDevice/c-delay-target` - range[`1-100`] - `DrbdOptions/PeerDevice/c-min-rate` - range[`0-4194304`] - `DrbdOptions/PeerDevice/bitmap` - boolean - `DrbdOptions/PeerDevice/c-plan-ahead` - range[`0-300`] - `DrbdOptions/Resource/peer-ack-delay` - range[`1-10000`] - `DrbdOptions/Resource/quorum-minimum-redundancy` - enum [`1-32`] * off * majority * all - `DrbdOptions/Resource/max-io-depth` - range[`4-4294967295`] - `DrbdOptions/Resource/auto-promote-timeout` - range[`0-600`] - `DrbdOptions/Resource/quorum` - enum [`1-32`] * off * majority * all - `DrbdOptions/Resource/on-no-data-accessible` - enum * io-error * suspend-io - `DrbdOptions/Resource/auto-promote` - boolean - `DrbdOptions/Resource/cpu-mask` - string - `DrbdOptions/Resource/twopc-timeout` - range[`50-600`] - `DrbdOptions/Resource/twopc-retry-timeout` - range[`1-50`] - `DrbdOptions/Resource/peer-ack-window` - range[`2048-204800`] - `DrbdOptions/Resource/on-no-quorum` - enum * io-error * suspend-io - `DrbdOptions/Net/max-epoch-size` - range[`1-20000`] - `DrbdOptions/Net/protocol` - enum * A * B * C - `DrbdOptions/Net/allow-two-primaries` - boolean - `DrbdOptions/Net/after-sb-0pri` - enum * disconnect * discard-younger-primary * discard-older-primary * discard-zero-changes * discard-least-changes * discard-local * discard-remote - `DrbdOptions/Net/ko-count` - range[`0-200`] - `DrbdOptions/Net/data-integrity-alg` - string - `DrbdOptions/Net/ping-timeout` - range[`1-300`] - `DrbdOptions/Net/sndbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/transport` - string - `DrbdOptions/Net/rcvbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/max-buffers` - range[`32-131072`] - `DrbdOptions/Net/fencing` - enum * dont-care * resource-only * resource-and-stonith - `DrbdOptions/Net/csums-alg` - string - `DrbdOptions/Net/always-asbp` - boolean - `DrbdOptions/Net/congestion-extents` - range[`67-65534`] - `DrbdOptions/Net/on-congestion` - enum * block * pull-ahead * disconnect - `DrbdOptions/Net/ping-int` - range[`1-120`] - `DrbdOptions/Net/rr-conflict` - enum * disconnect * call-pri-lost * violently - `DrbdOptions/Net/tcp-cork` - boolean - `DrbdOptions/Net/use-rle` - boolean - `DrbdOptions/Net/csums-after-crash-only` - boolean - `DrbdOptions/Net/socket-check-timeout` - range[`0-300`] - `DrbdOptions/Net/congestion-fill` - range[`0-20971520`] - `DrbdOptions/Net/cram-hmac-alg` - string - `DrbdOptions/Net/verify-alg` - string - `DrbdOptions/Net/shared-secret` - string - `DrbdOptions/Net/connect-int` - range[`1-120`] - `DrbdOptions/Net/timeout` - range[`1-600`] - `DrbdOptions/Net/after-sb-2pri` - enum * disconnect * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Net/after-sb-1pri` - enum * disconnect * consensus * discard-secondary * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Handlers/after-resync-target` - string - `DrbdOptions/Handlers/before-resync-target` - string - `DrbdOptions/Handlers/before-resync-source` - string - `DrbdOptions/Handlers/out-of-sync` - string - `DrbdOptions/Handlers/quorum-lost` - string - `DrbdOptions/Handlers/fence-peer` - string - `DrbdOptions/Handlers/unfence-peer` - string - `DrbdOptions/Handlers/initial-split-brain` - string - `DrbdOptions/Handlers/local-io-error` - string - `DrbdOptions/Handlers/pri-lost` - string - `DrbdOptions/Handlers/pri-lost-after-sb` - string - `DrbdOptions/Handlers/pri-on-incon-degr` - string - `DrbdOptions/Handlers/split-brain` - string # @param resource resource to use # @param [Hash] opts the optional parameters # @option opts [ResourceDefinitionModify] :resource_definition_modify # @return [ApiCallRc] describe 'resource_definition_modify test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_delete # delete a resource # Delete a resource on a node # @param resource resource to use # @param node node to use # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'resource_delete test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_drbd_proxy_disable # disables a drbd proxy on a node connection # Disables a drbd proxy on a node connection # @param resource resource to use # @param node_a # @param node_b # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'resource_drbd_proxy_disable test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_drbd_proxy_enable # enable a drbd proxy on a node connection # Enables a drbd proxy on a node connection # @param resource resource to use # @param node_a source node of the connection # @param node_b target node of the connection # @param [Hash] opts the optional parameters # @option opts [DrbdProxyEnable] :drbd_proxy_enable # @return [ApiCallRc] describe 'resource_drbd_proxy_enable test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_drbd_proxy_modify # modify drbd proxy option properties # Sets or modifies properties Possible properties are: - `DrbdOptions/Proxy/memlimit` - range[`16777216-9223372036854775807`] - `DrbdOptions/Proxy/read-loops` - range[`0-2147483647`] - `DrbdOptions/Proxy/sndbuf-size` - range[`0-10485760`] - `DrbdOptions/Proxy/rcvbuf-size` - range[`0-10485760`] - `DrbdOptions/Proxy/ping-timeout` - range[`1-300`] - `DrbdOptions/ProxyCompression/dict-size` - range[`4096-1610612736`] - `DrbdOptions/ProxyCompression/lc` - range[`0-4`] - `DrbdOptions/ProxyCompression/lp` - range[`0-4`] - `DrbdOptions/ProxyCompression/pb` - range[`0-4`] - `DrbdOptions/ProxyCompression/nice-len` - range[`0-273`] - `DrbdOptions/ProxyCompression/mf` - enum * hc4 * hc3 * bt2 * bt3 * bt4 - `DrbdOptions/ProxyCompression/mode` - enum * fast * normal - `DrbdOptions/ProxyCompression/depth` - range[`0-1000`] - `DrbdOptions/ProxyCompression/level` - range[`1-9`] - `DrbdOptions/ProxyCompression/contexts` - range[`1-253`] - `DrbdOptions/ProxyCompression/fallback-to-zlib` - enum * off * on - `DrbdOptions/ProxyCompression/numa-threshold` - range[`0-253`] - `DrbdOptions/ProxyCompression/level` - range[`1-9`] - `DrbdOptions/ProxyCompression/level` - range[`1-22`] # @param resource resource to use # @param [Hash] opts the optional parameters # @option opts [DrbdProxyModify] :drbd_proxy_modify # @return [ApiCallRc] describe 'resource_drbd_proxy_modify test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_group_create # add a resource-group # Adds a resource-group. Only required property is the name of the resource group. All other properties are optional. # @param [Hash] opts the optional parameters # @option opts [ResourceGroup] :resource_group # @return [ApiCallRc] describe 'resource_group_create test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_group_delete # delete a resource-group # Delete a resource-group # @param resource_group resource group to use # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'resource_group_delete test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_group_list # lists all resource-groups # Lists all resource groups. A single resource group can be queried by adding its name to the resource string like: /v1/resource-groups/rscgrp1 # @param [Hash] opts the optional parameters # @option opts [Array] :resource_groups Filter only for the specified resource groups, if not specified no filtering. # @option opts [Integer] :offset number of records to skip for pagination # @option opts [Integer] :limit maximum number of records to return # @return [Array] describe 'resource_group_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_group_modify # modify a resource-group # Sets or modifies properties Possible properties are: - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `PeerSlotsNewResource` - range[`1-31`] DRBD peer slots to allocate for newly created resources (default 7), the number of peer slots cannot be changed once the resource is created, so allow sufficient slots to increase redundancy in the future - `DrbdProxy/CompressionType` - enum * zlib * lzma * lz4 - `FileSystem/Type` - enum File system type to use * ext4 * xfs - `FileSystem/MkfsParams` - string Additional parameters for the mkfs command - `NVMe/enabled` - enum * rdma * tcp - `NVMe/enabled` - range[`1-65535`] - `DrbdOptions/Disk/read-balancing` - enum * prefer-local * prefer-remote * round-robin * least-pending * when-congested-remote * 32K-striping * 64K-striping * 128K-striping * 256K-striping * 512K-striping * 1M-striping - `DrbdOptions/Disk/on-io-error` - enum * pass_on * call-local-io-error * detach - `DrbdOptions/Disk/disk-drain` - boolean - `DrbdOptions/Disk/resync-after` - string - `DrbdOptions/Disk/disk-timeout` - range[`0-6000`] - `DrbdOptions/Disk/disable-write-same` - boolean - `DrbdOptions/Disk/rs-discard-granularity` - range[`0-1048576`] - `DrbdOptions/Disk/disk-flushes` - boolean - `DrbdOptions/Disk/al-extents` - range[`67-65534`] - `DrbdOptions/Disk/al-updates` - boolean - `DrbdOptions/Disk/md-flushes` - boolean - `DrbdOptions/Disk/disk-barrier` - boolean - `DrbdOptions/Disk/discard-zeroes-if-aligned` - boolean - `DrbdOptions/PeerDevice/c-fill-target` - range[`0-1048576`] - `DrbdOptions/PeerDevice/c-max-rate` - range[`250-4194304`] - `DrbdOptions/PeerDevice/resync-rate` - range[`1-8388608`] - `DrbdOptions/PeerDevice/c-delay-target` - range[`1-100`] - `DrbdOptions/PeerDevice/c-min-rate` - range[`0-4194304`] - `DrbdOptions/PeerDevice/bitmap` - boolean - `DrbdOptions/PeerDevice/c-plan-ahead` - range[`0-300`] - `DrbdOptions/Resource/peer-ack-delay` - range[`1-10000`] - `DrbdOptions/Resource/quorum-minimum-redundancy` - enum [`1-32`] * off * majority * all - `DrbdOptions/Resource/max-io-depth` - range[`4-4294967295`] - `DrbdOptions/Resource/auto-promote-timeout` - range[`0-600`] - `DrbdOptions/Resource/quorum` - enum [`1-32`] * off * majority * all - `DrbdOptions/Resource/on-no-data-accessible` - enum * io-error * suspend-io - `DrbdOptions/Resource/auto-promote` - boolean - `DrbdOptions/Resource/cpu-mask` - string - `DrbdOptions/Resource/twopc-timeout` - range[`50-600`] - `DrbdOptions/Resource/twopc-retry-timeout` - range[`1-50`] - `DrbdOptions/Resource/peer-ack-window` - range[`2048-204800`] - `DrbdOptions/Resource/on-no-quorum` - enum * io-error * suspend-io - `DrbdOptions/Net/max-epoch-size` - range[`1-20000`] - `DrbdOptions/Net/protocol` - enum * A * B * C - `DrbdOptions/Net/allow-two-primaries` - boolean - `DrbdOptions/Net/after-sb-0pri` - enum * disconnect * discard-younger-primary * discard-older-primary * discard-zero-changes * discard-least-changes * discard-local * discard-remote - `DrbdOptions/Net/ko-count` - range[`0-200`] - `DrbdOptions/Net/data-integrity-alg` - string - `DrbdOptions/Net/ping-timeout` - range[`1-300`] - `DrbdOptions/Net/sndbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/transport` - string - `DrbdOptions/Net/rcvbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/max-buffers` - range[`32-131072`] - `DrbdOptions/Net/fencing` - enum * dont-care * resource-only * resource-and-stonith - `DrbdOptions/Net/csums-alg` - string - `DrbdOptions/Net/always-asbp` - boolean - `DrbdOptions/Net/congestion-extents` - range[`67-65534`] - `DrbdOptions/Net/on-congestion` - enum * block * pull-ahead * disconnect - `DrbdOptions/Net/ping-int` - range[`1-120`] - `DrbdOptions/Net/rr-conflict` - enum * disconnect * call-pri-lost * violently - `DrbdOptions/Net/tcp-cork` - boolean - `DrbdOptions/Net/use-rle` - boolean - `DrbdOptions/Net/csums-after-crash-only` - boolean - `DrbdOptions/Net/socket-check-timeout` - range[`0-300`] - `DrbdOptions/Net/congestion-fill` - range[`0-20971520`] - `DrbdOptions/Net/cram-hmac-alg` - string - `DrbdOptions/Net/verify-alg` - string - `DrbdOptions/Net/shared-secret` - string - `DrbdOptions/Net/connect-int` - range[`1-120`] - `DrbdOptions/Net/timeout` - range[`1-600`] - `DrbdOptions/Net/after-sb-2pri` - enum * disconnect * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Net/after-sb-1pri` - enum * disconnect * consensus * discard-secondary * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Handlers/after-resync-target` - string - `DrbdOptions/Handlers/before-resync-target` - string - `DrbdOptions/Handlers/before-resync-source` - string - `DrbdOptions/Handlers/out-of-sync` - string - `DrbdOptions/Handlers/quorum-lost` - string - `DrbdOptions/Handlers/fence-peer` - string - `DrbdOptions/Handlers/unfence-peer` - string - `DrbdOptions/Handlers/initial-split-brain` - string - `DrbdOptions/Handlers/local-io-error` - string - `DrbdOptions/Handlers/pri-lost` - string - `DrbdOptions/Handlers/pri-lost-after-sb` - string - `DrbdOptions/Handlers/pri-on-incon-degr` - string - `DrbdOptions/Handlers/split-brain` - string # @param resource_group resource group to use # @param [Hash] opts the optional parameters # @option opts [ResourceGroupModify] :resource_group_modify # @return [ApiCallRc] describe 'resource_group_modify test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_group_spawn # create a new resource-definition based on the given resource-group # Creates a new resource-definition and auto-deploys if configured to do so. # @param resource_group resource group to use # @param [Hash] opts the optional parameters # @option opts [ResourceGroupSpawn] :resource_group_spawn # @return [ApiCallRc] describe 'resource_group_spawn test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_list # lists all resources for a resource-definition # Lists all resources for a resource-definition. A single resource can be queried by adding its name to the resource string like: /v1/resource-definitions/rsc1/resources/nodeA # @param resource resource to use # @param [Hash] opts the optional parameters # @option opts [Integer] :offset number of records to skip for pagination # @option opts [Integer] :limit maximum number of records to return # @return [Array] describe 'resource_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_migrate_disk # migrate a resource to another node # migrate a resource to another node without reducing the redundancy count # @param resource resource to use # @param node node to use # @param fromnode # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'resource_migrate_disk test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_migrate_disk_storagepool # migrate a resource to another node # migrate a resource to another node without reducing the redundency count # @param resource resource to use # @param node node to use # @param fromnode # @param storagepool # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'resource_migrate_disk_storagepool test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_modify # modify a resource # Sets or modifies properties Possible properties are: - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `StorPoolNameDrbdMeta` - regex[`^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `DrbdMetaType` - enum * external * internal - `PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `PeerSlots` - range[`1-31`] DRBD peer slots present on resource - `FileSystem/Type` - enum File system type to use * ext4 * xfs - `FileSystem/MkfsParams` - string Additional parameters for the mkfs command - `NVMe/PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device # @param resource resource to use # @param node node to use # @param [Hash] opts the optional parameters # @option opts [ResourceModify] :resource_modify # @return [ApiCallRc] describe 'resource_modify test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_snapshot_create # create a snapshot # Create a snapshot for a resource # @param resource resource to use # @param [Hash] opts the optional parameters # @option opts [Snapshot] :snapshot # @return [ApiCallRc] describe 'resource_snapshot_create test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_snapshot_delete # delete a snapshot # Delete a snapshot # @param resource resource to use # @param snapshot # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'resource_snapshot_delete test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_snapshot_list # list a specific snapshot # List the given snapshot for a resource # @param resource resource to use # @param snapshot # @param [Hash] opts the optional parameters # @return [Snapshot] describe 'resource_snapshot_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_snapshot_restore # restore a snapshot # Restore a snapshot to a new resource # @param resource resource to use # @param snapshot Snapshot name to use # @param [Hash] opts the optional parameters # @option opts [SnapshotRestore] :snapshot_restore # @return [ApiCallRc] describe 'resource_snapshot_restore test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_snapshot_rollback # rollback a snapshot # Rollback a resource to the snapshot state # @param resource resource to use # @param snapshot Snapshot name to use # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'resource_snapshot_rollback test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_snapshots_list # list snapshots # List snapshots for a resource # @param resource resource to use # @param [Hash] opts the optional parameters # @return [Array] describe 'resource_snapshots_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_snapshots_restore_volume_definition # restore a snapshot volume definition # Restore a snapshot volume definition to a new resource # @param resource resource to use # @param snapshot Snapshot name to use # @param [Hash] opts the optional parameters # @option opts [SnapshotRestore] :snapshot_restore # @return [ApiCallRc] describe 'resource_snapshots_restore_volume_definition test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_toggle_diskful # toggle a resource to a diskful resource # toggle a resource to a diskful resource using the default storage pool # @param resource resource to use # @param node node to use # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'resource_toggle_diskful test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_toggle_diskful_storagepool # toggle a resource to a diskful resource # toggle a resource to a diskful resource # @param resource resource to use # @param node node to use # @param storagepool # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'resource_toggle_diskful_storagepool test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_toggle_diskless # toggle a resource to diskless # toggle a resource to a diskless resource # @param resource resource to use # @param node node to use # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'resource_toggle_diskless test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_toggle_diskless_disklesspool # toggle a resource to diskless resource # toggle a resource to a diskless. # @param resource resource to use # @param node node to use # @param disklesspool # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'resource_toggle_diskless_disklesspool test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for resource_volume_list # lists all volumes of a resources # Lists all volumes for a resource-definition. A single volume can be queried by adding its volume number to the resource string like: /v1/resource-definitions/rsc1/resources/nodeA/volumes/0 # @param resource resource to use # @param node node to use # @param [Hash] opts the optional parameters # @option opts [Integer] :offset number of records to skip for pagination # @option opts [Integer] :limit maximum number of records to return # @return [Array] describe 'resource_volume_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for stor_pool_dfn_modify # modify a storage pool definition # Sets or modifies properties Possible properties are: - `MaxOversubscriptionRatio` - range[`1-1000`] # @param storagepool # @param [Hash] opts the optional parameters # @option opts [StoragePoolDefinitionModify] :storage_pool_definition_modify # @return [ApiCallRc] describe 'stor_pool_dfn_modify test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for storage_pool_definition_delete # delete a storage pool definition # Delete a storage pool definition from Linstor # @param storagepool # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'storage_pool_definition_delete test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for storage_pool_dfn_add # add a storage pool definition to Linstor # Adds a storage pool definition to Linstor # @param [Hash] opts the optional parameters # @option opts [StoragePoolDefinition] :storage_pool_definition Storage pool definition to add # @return [ApiCallRc] describe 'storage_pool_dfn_add test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for storage_pool_dfn_get # Lists a specific storage pool definition # Returns a specific storage pool definition # @param storagepool # @param [Hash] opts the optional parameters # @return [StoragePoolDefinition] describe 'storage_pool_dfn_get test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for storage_pool_dfn_list # Lists storage pool definitions # Returns an array of all storage pool definitions # @param [Hash] opts the optional parameters # @option opts [Integer] :offset number of records to skip for pagination # @option opts [Integer] :limit maximum number of records to return # @return [Array] describe 'storage_pool_dfn_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for view_physica_storage # show physical storage on nodes, to be used with LINSTOR # Gives a grouped list of physical storage that can be turned into a LINSTOR storage-pool # @param [Hash] opts the optional parameters # @option opts [Integer] :offset number of records to skip for pagination # @option opts [Integer] :limit maximum number of records to return # @return [Array] describe 'view_physica_storage test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for view_resources # query all resources with their volumes # This REST-resource should be used if you want to get an overview of all resources with their volumes. # @param [Hash] opts the optional parameters # @option opts [Array] :nodes Filter only for the specified nodes, if not specified no filtering. # @option opts [Array] :storage_pools Filter only for the specified storage pools, if not specified no filtering. # @option opts [Array] :resources Filter only for the specified resources, if not specified no filtering. # @option opts [Integer] :offset number of records to skip for pagination # @option opts [Integer] :limit maximum number of records to return # @return [Array] describe 'view_resources test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for view_storage_pools # query all storage pools # This REST-resource should be used if you want to get an overview of all storage pools. # @param [Hash] opts the optional parameters # @option opts [Array] :nodes Filter only for the specified nodes, if not specified no filtering. # @option opts [Array] :storage_pools Filter only for the specified storage pools, if not specified no filtering. # @option opts [Integer] :offset number of records to skip for pagination # @option opts [Integer] :limit maximum number of records to return # @return [Array] describe 'view_storage_pools test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for volume_definition_create # add a volume-definition to a resource # Adds a volume-definition. Required properties is only `size`, all other will be auto generated if not given. # @param resource resource to use # @param [Hash] opts the optional parameters # @option opts [VolumeDefinitionCreate] :volume_definition_create # @return [ApiCallRc] describe 'volume_definition_create test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for volume_definition_delete # delete a volume-definition # Delete a volume-definition # @param resource resource to use # @param volume_number # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'volume_definition_delete test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for volume_definition_list # lists all volume-definitions # Lists all volume definitions. A single volume definition can be queried by adding its name to the resource string like: /v1/resource-definitions/rsc1/volume-definitions/0 # @param resource resource to use # @param [Hash] opts the optional parameters # @option opts [Integer] :offset number of records to skip for pagination # @option opts [Integer] :limit maximum number of records to return # @return [Array] describe 'volume_definition_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for volume_definition_modify # modify a volume-definition # Sets or modifies properties Possible properties are: - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `StorPoolNameDrbdMeta` - regex[`^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `DrbdMetaType` - enum * external * internal - `OverrideVlmId` - regex[`.*`] Overwrites the generated '<resource-name>_<5 digit volume number>' volume name for migration purposes - `AllowLargerVolumeSize` - boolean_true_false Do not fail when the underlying volume is larger than expected - `FileSystem/Type` - enum File system type to use * ext4 * xfs - `FileSystem/MkfsParams` - string Additional parameters for the mkfs command - `StorDriver/LvcreateType` - enum * linear * striped * mirror * raid0 * raid1 * raid4 * raid5 * raid6 * raid10 * lzma * lz4 - `DrbdCurrentGi` - regex[`[a-fA-F0-9]{16}`] - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - `Writecache/PoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name for writecache - `Writecache/Size` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the writecache in % (0-100) or KiB otherwise - `Writecache/Blocksize` - long 4096 is recommended; the maximum block size is the page size - `Writecache/Options/StartSector` - long offset from the start of cache device in 512-byte sectors - `Writecache/Options/HighWatermark` - long start writeback when the number of used blocks reach this watermark - `Writecache/Options/LowWatermark` - long stop writeback when the number of used blocks drops below this watermark - `Writecache/Options/WritebackJobs` - long limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests - `Writecache/Options/AutocommitBlocks` - long when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited - `Writecache/Options/AutocommitTime` - long autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received - `Writecache/Options/Fua` - enum \"On\" results in \"fua\" as argument, whereas the value \"Off\" results in \"nofua\" argument * On * Off - `Writecache/Options/Additional` - string Additional arguments passed through - `DrbdOptions/Disk/read-balancing` - enum * prefer-local * prefer-remote * round-robin * least-pending * when-congested-remote * 32K-striping * 64K-striping * 128K-striping * 256K-striping * 512K-striping * 1M-striping - `DrbdOptions/Disk/on-io-error` - enum * pass_on * call-local-io-error * detach - `DrbdOptions/Disk/disk-drain` - boolean - `DrbdOptions/Disk/resync-after` - string - `DrbdOptions/Disk/disk-timeout` - range[`0-6000`] - `DrbdOptions/Disk/disable-write-same` - boolean - `DrbdOptions/Disk/rs-discard-granularity` - range[`0-1048576`] - `DrbdOptions/Disk/disk-flushes` - boolean - `DrbdOptions/Disk/al-extents` - range[`67-65534`] - `DrbdOptions/Disk/al-updates` - boolean - `DrbdOptions/Disk/md-flushes` - boolean - `DrbdOptions/Disk/disk-barrier` - boolean - `DrbdOptions/Disk/discard-zeroes-if-aligned` - boolean # @param resource resource to use # @param volume_number # @param [Hash] opts the optional parameters # @option opts [VolumeDefinitionModify] :volume_definition_modify # @return [ApiCallRc] describe 'volume_definition_modify test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for volume_group_create # add a volume-group to a resource-group # Adds a volume-group. # @param resource_group resource group to use # @param [Hash] opts the optional parameters # @option opts [VolumeGroup] :volume_group # @return [ApiCallRc] describe 'volume_group_create test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for volume_group_delete # delete a volume-group # Delete a volume-group # @param resource_group resource group to use # @param volume_number # @param [Hash] opts the optional parameters # @return [ApiCallRc] describe 'volume_group_delete test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for volume_group_list # lists all volume-groups # Lists all volume groups. A single volume group can be queried by adding its name to the resource string like: /v1/resource-groups/rscgrp1/volume-groups/0 # @param resource_group resource group to use # @param [Hash] opts the optional parameters # @option opts [Integer] :offset number of records to skip for pagination # @option opts [Integer] :limit maximum number of records to return # @return [Array] describe 'volume_group_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for volume_group_modify # modify a resource-group # Sets or modifies properties Possible properties are: - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `OverrideVlmId` - regex[`.*`] Overwrites the generated '<resource-name>_<5 digit volume number>' volume name for migration purposes - `AllowLargerVolumeSize` - boolean_true_false Do not fail when the underlying volume is larger than expected - `FileSystem/Type` - enum File system type to use * ext4 * xfs - `FileSystem/MkfsParams` - string Additional parameters for the mkfs command - `StorDriver/LvcreateType` - enum * linear * striped * mirror * raid0 * raid1 * raid4 * raid5 * raid6 * raid10 * lzma * lz4 - `DrbdCurrentGi` - regex[`[a-fA-F0-9]{16}`] - `DrbdOptions/Disk/read-balancing` - enum * prefer-local * prefer-remote * round-robin * least-pending * when-congested-remote * 32K-striping * 64K-striping * 128K-striping * 256K-striping * 512K-striping * 1M-striping - `DrbdOptions/Disk/on-io-error` - enum * pass_on * call-local-io-error * detach - `DrbdOptions/Disk/disk-drain` - boolean - `DrbdOptions/Disk/resync-after` - string - `DrbdOptions/Disk/disk-timeout` - range[`0-6000`] - `DrbdOptions/Disk/disable-write-same` - boolean - `DrbdOptions/Disk/rs-discard-granularity` - range[`0-1048576`] - `DrbdOptions/Disk/disk-flushes` - boolean - `DrbdOptions/Disk/al-extents` - range[`67-65534`] - `DrbdOptions/Disk/al-updates` - boolean - `DrbdOptions/Disk/md-flushes` - boolean - `DrbdOptions/Disk/disk-barrier` - boolean - `DrbdOptions/Disk/discard-zeroes-if-aligned` - boolean # @param resource_group resource group to use # @param volume_number # @param [Hash] opts the optional parameters # @option opts [VolumeGroupModify] :volume_group_modify # @return [ApiCallRc] describe 'volume_group_modify test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for volume_modify # modify a volume # Sets or modifies properties Possible properties are: - `sys/fs/blkio_throttle_read` - number - `sys/fs/blkio_throttle_write` - number # @param resource resource to use # @param node node to use # @param volume_number # @param [Hash] opts the optional parameters # @option opts [VolumeModify] :volume_modify # @return [ApiCallRc] describe 'volume_modify test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end