Skip to content

Commit

Permalink
Add failing test for gluster::volume
Browse files Browse the repository at this point in the history
    Evaluation Error: Unknown variable: 'to_add'. (file:
    .../spec/fixtures/modules/gluster/manifests/volume.pp, line: 265,
    column: 22)
  • Loading branch information
Damian Lukowski committed Jun 6, 2024
1 parent 8a71c0d commit 60a4ffe
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions spec/defines/volume_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,28 @@
end
end

describe 'with existent volume' do
let(:title) { 'volume1' }
let(:facts) do
{
gluster_binary: '/usr/sbin/gluster',
gluster_peer_list: 'srv1.local,srv2.local',
gluster_volume_list: 'volume1',
gluster_volume_volume1_bricks: 'srv1.local:/export/volume1/brick,srv2.local:/export/volume1/brick',
}
end
let(:params) do
{
replica: 2,
bricks: [
'srv1.local:/export/volume1/brick',
'srv2.local:/export/volume1/brick',
],
}
end
it { is_expected.to compile.with_all_deps }
end

describe 'single node' do
let(:facts) do
{
Expand Down

0 comments on commit 60a4ffe

Please sign in to comment.