Allow for lvs to be created on specific pv #209
ci.yml
on: pull_request
Annotations
4 errors and 2 warnings
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2):
spec/unit/type/logical_volume_spec.rb#L188
Puppet::Type::Logical_volume raises an ArgumentError when the physical volume is neither string nor array
Failure/Error:
expect {
resource = Puppet::Type.type(:logical_volume).new(
name: 'john',
ensure: :present,
volume_group: 'ernie',
size: '10M',
physical_volume: 42,
)
}.to raise_error(Puppet::ResourceError,
'physical_volume should be String or Array: 42')
expected Puppet::ResourceError with "physical_volume should be String or Array: 42", got #<Puppet::ResourceError: Parameter physical_volume failed on Logical_volume[john]: physical_volume should be String or Array: 42> with backtrace:
# ./lib/puppet/type/logical_volume.rb:126:in `block (3 levels) in <top (required)>'
# ./spec/unit/type/logical_volume_spec.rb:190:in `new'
# ./spec/unit/type/logical_volume_spec.rb:190:in `block (3 levels) in <top (required)>'
# ./spec/unit/type/logical_volume_spec.rb:189:in `block (2 levels) in <top (required)>'
# ./vendor/bundle/ruby/3.2.0/bin/rspec:25:in `load'
# ./vendor/bundle/ruby/3.2.0/bin/rspec:25:in `<top (required)>'
# /opt/hostedtoolcache/Ruby/3.2.4/x64/lib/ruby/3.2.0/bundler/cli/exec.rb:58:in `load'
# /opt/hostedtoolcache/Ruby/3.2.4/x64/lib/ruby/3.2.0/bundler/cli/exec.rb:58:in `kernel_load'
# /opt/hostedtoolcache/Ruby/3.2.4/x64/lib/ruby/3.2.0/bundler/cli/exec.rb:23:in `run'
# /opt/hostedtoolcache/Ruby/3.2.4/x64/lib/ruby/3.2.0/bundler/cli.rb:492:in `exec'
# /opt/hostedtoolcache/Ruby/3.2.4/x64/lib/ruby/3.2.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
# /opt/hostedtoolcache/Ruby/3.2.4/x64/lib/ruby/3.2.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
# /opt/hostedtoolcache/Ruby/3.2.4/x64/lib/ruby/3.2.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
# /opt/hostedtoolcache/Ruby/3.2.4/x64/lib/ruby/3.2.0/bundler/cli.rb:34:in `dispatch'
# /opt/hostedtoolcache/Ruby/3.2.4/x64/lib/ruby/3.2.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
# /opt/hostedtoolcache/Ruby/3.2.4/x64/lib/ruby/3.2.0/bundler/cli.rb:28:in `start'
# /opt/hostedtoolcache/Ruby/3.2.4/x64/lib/ruby/3.2.0/bundler/friendly_errors.rb:117:in `with_friendly_errors'
# /opt/hostedtoolcache/Ruby/3.2.4/x64/bin/bundle:25:in `load'
# /opt/hostedtoolcache/Ruby/3.2.4/x64/bin/bundle:25:in `<main>'
|
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)
Process completed with exit code 1.
|
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7):
spec/unit/type/logical_volume_spec.rb#L188
Puppet::Type::Logical_volume raises an ArgumentError when the physical volume is neither string nor array
Failure/Error:
expect {
resource = Puppet::Type.type(:logical_volume).new(
name: 'john',
ensure: :present,
volume_group: 'ernie',
size: '10M',
physical_volume: 42,
)
}.to raise_error(Puppet::ResourceError,
'physical_volume should be String or Array: 42')
expected Puppet::ResourceError with "physical_volume should be String or Array: 42", got #<Puppet::ResourceError: Parameter physical_volume failed on Logical_volume[john]: physical_volume should be String or Array: 42> with backtrace:
# ./lib/puppet/type/logical_volume.rb:126:in `block (3 levels) in <top (required)>'
# ./spec/unit/type/logical_volume_spec.rb:190:in `new'
# ./spec/unit/type/logical_volume_spec.rb:190:in `block (3 levels) in <top (required)>'
# ./spec/unit/type/logical_volume_spec.rb:189:in `block (2 levels) in <top (required)>'
# ./vendor/bundle/ruby/2.7.0/bin/rspec:23:in `load'
# ./vendor/bundle/ruby/2.7.0/bin/rspec:23:in `<top (required)>'
# /opt/hostedtoolcache/Ruby/2.7.8/x64/bin/bundle:23:in `load'
# /opt/hostedtoolcache/Ruby/2.7.8/x64/bin/bundle:23:in `<main>'
|
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)
Process completed with exit code 1.
|
Spec / Setup Test Matrix
Cannot find image for AIX-7.1
|
Spec / Setup Test Matrix
Cannot find image for AIX-7.2
|