Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Commit

Permalink
Move zpool feature flags in a let statement
Browse files Browse the repository at this point in the history
  • Loading branch information
smortex committed Apr 22, 2020
1 parent 70269f5 commit 9e1dcce
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions spec/facter/resolvers/solaris/zpool_resolver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@

context 'when zpool has featureflags' do
let(:output) { load_fixture('zpool-with-featureflags').read }
let(:zpool_featureflags) do
'async_destroy,empty_bpobj,lz4_compress,multi_vdev_crash_dump,spacemap_histogram,enabled_txg,' \
'hole_birth,extensible_dataset,embedded_data,bookmarks,filesystem_limits,large_blocks,large_dnode,' \
'sha512,skein,device_removal,obsolete_counts,zpool_checkpoint,spacemap_v2'
end

it 'returns zpool version fact' do
result = Facter::Resolvers::Solaris::ZPool.resolve(:zpool_version)
Expand All @@ -39,10 +44,7 @@

it 'returns zpool featureflags fact' do
result = Facter::Resolvers::Solaris::ZPool.resolve(:zpool_featureflags)
expect(result).to eq('async_destroy,empty_bpobj,lz4_compress,multi_vdev_crash_dump,' \
'spacemap_histogram,enabled_txg,hole_birth,extensible_dataset,embedded_data,bookmarks,' \
'filesystem_limits,large_blocks,large_dnode,sha512,skein,device_removal,obsolete_counts,' \
'zpool_checkpoint,spacemap_v2')
expect(result).to eq(zpool_featureflags)
end
end
end
Expand Down

0 comments on commit 9e1dcce

Please sign in to comment.