PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /opt/puppetlabs/puppet/vendor_modules/zfs_core/spec/acceptance/tests/zpool/ |
| Server: Linux server1.ngambekcore.com 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 04:00:07 EDT 2025 x86_64 IP: 159.198.77.92 |
| Dir : //opt/puppetlabs/puppet/vendor_modules/zfs_core/spec/acceptance/tests/zpool/should_query_spec.rb |
require 'spec_helper_acceptance'
RSpec.context 'ZPool: Should Query' do
before(:all) do
# ZPool: setup
solaris_agents.each do |agent|
zpool_setup agent
end
end
after(:all) do
# ZPool: cleanup
solaris_agents.each do |agent|
zpool_clean agent
end
end
solaris_agents.each do |agent|
it 'queries both manages and unmanages zpool resources' do
# ZPool: ensure create
apply_manifest_on(agent, "zpool{ tstpool: ensure=>present, disk=>'/ztstpool/dsk1' }") do |result|
assert_match(%r{ensure: created}, result.stdout, "err: #{agent}")
end
# ZPool: query one
on(agent, puppet('resource zpool tstpool')) do |result|
assert_match(%r{ensure *=> *'present'}, result.stdout, "err: #{agent}")
end
# ZPool: query all
on(agent, puppet('resource zpool tstpool')) do |result|
assert_match(%r{tstpool'}, result.stdout, "err: #{agent}")
end
end
end
end