Commit Graph

3 Commits

Author SHA1 Message Date
Guilherme Maluf 28c4efee3d Set lowercase for ceph_config values
Capitalized values of True and False are conflicting with systemd
scripts

This commit set all values to lowercase

Fixes: Bug #1697476

Change-Id: Ibd01a7a850e7593fabd676b8b0c0af2b77101a2a
2017-06-12 14:57:05 -03:00
Gael Chamoulaud a3c12f05d8 Convert rspec tests to rspec 3.x
This patch fixes and converts:
- Expectations on block
  * 'r.stderr.should be_empty' into 'expect(r.stderr).to be_empty'
- Standard expectations
  * 'obj.should matcher' into 'expect(obj).to matcher'
- One-liner expectations
  * 'it { should matcher }' into 'it { is_expected.to matcher }'
  * 'it { should_not matcher }' into 'it { is_expected.to_not matcher }'
- Operator matchers
  * '1.should == 1' into 'expect(1).to eq(1)'

Change-Id: I8f0666f15387874a1aa579e08a1e9571dd71098f
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-03-31 13:39:35 +02:00
Andrew Woodward 0383a1aea2 Add ceph_config ini helper
* add a ini_file helper as ceph_config.
* set the seperator as ' = ' in order to be the same as ceph-deploy
* add path param so that seperator can be easily tested.
** also allows for users to change the default path if desired.
* add test case to prove spacing around seperator.
* add simple test case to ensure type works.

Closes-bug: #1243852
Change-Id: I0f3bb41d75d48d8af3b5b7cfb7768c4d3de2c002
2013-10-25 10:22:01 -07:00