Skip to content

Commit

Permalink
Fixes #104, Fixes #106.
Browse files Browse the repository at this point in the history
  • Loading branch information
dallinb committed Sep 11, 2015
1 parent f83f75e commit fc4994f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/classes/cassandra_template1_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
:trickle_fsync_interval_in_kb => 'trickle_fsync_interval_in_kb',
:truncate_request_timeout_in_ms => 'truncate_request_timeout_in_ms',
:write_request_timeout_in_ms => 'write_request_timeout_in_ms',
:commitlog_directory => 'commitlog_directory',
:saved_caches_directory => 'saved_caches_directory',
:data_file_directories => ['datadir1', 'datadir2'],
}
end

Expand Down Expand Up @@ -142,5 +145,9 @@
it { should contain_file('/etc/cassandra.yaml').with_content(/trickle_fsync_interval_in_kb: trickle_fsync_interval_in_kb/) }
it { should contain_file('/etc/cassandra.yaml').with_content(/truncate_request_timeout_in_ms: truncate_request_timeout_in_ms/) }
it { should contain_file('/etc/cassandra.yaml').with_content(/write_request_timeout_in_ms: write_request_timeout_in_ms/) }
it { should contain_file('/etc/cassandra.yaml').with_content(/commitlog_directory: commitlog_directory/) }
it { should contain_file('/etc/cassandra.yaml').with_content(/saved_caches_directory: saved_caches_directory/) }
it { should contain_file('/etc/cassandra.yaml').with_content(/ - datadir1/) }
it { should contain_file('/etc/cassandra.yaml').with_content(/ - datadir2/) }
end
end
7 changes: 7 additions & 0 deletions spec/classes/cassandra_template2_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@
:trickle_fsync_interval_in_kb => 'trickle_fsync_interval_in_kb',
:truncate_request_timeout_in_ms => 'truncate_request_timeout_in_ms',
:write_request_timeout_in_ms => 'write_request_timeout_in_ms',
:commitlog_directory => 'commitlog_directory',
:saved_caches_directory => 'saved_caches_directory',
:data_file_directories => ['datadir1', 'datadir2'],
}
end

Expand Down Expand Up @@ -158,5 +161,9 @@
it { should contain_file('/etc/cassandra.yaml').with_content(/trickle_fsync_interval_in_kb: trickle_fsync_interval_in_kb/) }
it { should contain_file('/etc/cassandra.yaml').with_content(/truncate_request_timeout_in_ms: truncate_request_timeout_in_ms/) }
it { should contain_file('/etc/cassandra.yaml').with_content(/write_request_timeout_in_ms: write_request_timeout_in_ms/) }
it { should contain_file('/etc/cassandra.yaml').with_content(/commitlog_directory: commitlog_directory/) }
it { should contain_file('/etc/cassandra.yaml').with_content(/saved_caches_directory: saved_caches_directory/) }
it { should contain_file('/etc/cassandra.yaml').with_content(/ - datadir1/) }
it { should contain_file('/etc/cassandra.yaml').with_content(/ - datadir2/) }
end
end

0 comments on commit fc4994f

Please sign in to comment.