summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Amiez <jonathan.amiez@gmail.com>2015-06-03 16:29:32 +0200
committerJonathan Amiez <jonathan.amiez@gmail.com>2015-06-03 16:29:45 +0200
commit0d5d7bb6017db1897340081d655e368414616bbf (patch)
tree33a970234f5c15a647d5de5cda49d7ee955d1b0f
parent06e85b1b94da636ba7bc269eb361fd7c22f6f7af (diff)
downloadohai-0d5d7bb6017db1897340081d655e368414616bbf.tar.gz
Fix linux filesystem test case labels
-rw-r--r--spec/unit/plugins/linux/filesystem_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/unit/plugins/linux/filesystem_spec.rb b/spec/unit/plugins/linux/filesystem_spec.rb
index 651c6fd9..81956f9e 100644
--- a/spec/unit/plugins/linux/filesystem_spec.rb
+++ b/spec/unit/plugins/linux/filesystem_spec.rb
@@ -198,7 +198,7 @@ BLKID_TYPE
@plugin.run
end
- it "should set kb_size to value from blkid -s TYPE" do
+ it "should set fs_type to value from blkid -s TYPE" do
@plugin.run
expect(@plugin[:filesystem]["/dev/md1"][:fs_type]).to eq("LVM2_member")
end
@@ -231,7 +231,7 @@ BLKID_TYPE
@plugin.run
end
- it "should set kb_size to value from lsblk -r -n -o NAME,FSTYPE" do
+ it "should set fs_type to value from lsblk -r -n -o NAME,FSTYPE" do
@plugin.run
expect(@plugin[:filesystem]["/dev/md1"][:fs_type]).to eq("LVM2_member")
end
@@ -261,7 +261,7 @@ BLKID_UUID
@plugin.run
end
- it "should set kb_size to value from blkid -s UUID" do
+ it "should set uuid to value from blkid -s UUID" do
@plugin.run
expect(@plugin[:filesystem]["/dev/sda2"][:uuid]).to eq("e36d933e-e5b9-cfe5-6845-1f84d0f7fbfa")
end
@@ -294,7 +294,7 @@ BLKID_UUID
@plugin.run
end
- it "should set kb_size to value from lsblk -r -n -o NAME,UUID" do
+ it "should set uuid to value from lsblk -r -n -o NAME,UUID" do
@plugin.run
expect(@plugin[:filesystem]["/dev/sda2"][:uuid]).to eq(
"e36d933e-e5b9-cfe5-6845-1f84d0f7fbfa"
@@ -324,7 +324,7 @@ BLKID_LABEL
@plugin.run
end
- it "should set kb_size to value from blkid -s LABEL" do
+ it "should set label to value from blkid -s LABEL" do
@plugin.run
expect(@plugin[:filesystem]["/dev/md0"][:label]).to eq("/boot")
end
@@ -349,13 +349,13 @@ BLKID_LABEL
and_return(mock_shell_out(0, @stdout, ""))
end
- it "should run blkid -s LABEL" do
+ it "should run lsblk -r -n -o NAME,LABEL" do
expect(@plugin).to receive(:shell_out).with("lsblk -r -n -o NAME,LABEL").
and_return(mock_shell_out(0, @stdout, ""))
@plugin.run
end
- it "should set kb_size to value from blkid -s LABEL" do
+ it "should set label to value from lsblk -r -n -o NAME,LABEL" do
@plugin.run
expect(@plugin[:filesystem]["/dev/md0"][:label]).to eq("/boot")
end