Skip to content

Commit c6d1e12

Browse files
committed
(FM-4615) updated test cases and file format
1 parent ef3ca21 commit c6d1e12

5 files changed

+8
-8
lines changed

tests/beaker/tests/create_filesystem_non-existing-format.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
step 'Run Puppet Agent to create logical volumes'
4949
confine_block(:except, :roles => %w{master dashboard database}) do
5050
agents.each do |agent|
51-
on(agent, puppet('agent -t --graph --environment production'), :acceptable_exit_codes => [1,6]) do |result|
51+
on(agent, puppet('agent -t --environment production'), :acceptable_exit_codes => [1,6]) do |result|
5252
assert_match(/change from absent to present failed/, result.stderr, 'Unexpected error was detected!')
5353
end
5454
end

tests/beaker/tests/create_filesystem_with_ensure_property_ext2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
step 'Run Puppet Agent to create logical volumes'
4949
confine_block(:except, :roles => %w{master dashboard database}) do
5050
agents.each do |agent|
51-
on(agent, puppet('agent -t --graph --environment production'), :acceptable_exit_codes => [0,2]) do |result|
51+
on(agent, puppet('agent -t --environment production'), :acceptable_exit_codes => [0,2]) do |result|
5252
assert_no_match(/Error:/, result.stderr, 'Unexpected error was detected!')
5353
end
5454

tests/beaker/tests/create_filesystem_with_param_fs_type_ext4.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
step 'Run Puppet Agent to create logical volumes'
4949
confine_block(:except, :roles => %w{master dashboard database}) do
5050
agents.each do |agent|
51-
on(agent, puppet('agent -t --graph --environment production'), :acceptable_exit_codes => [0,2]) do |result|
51+
on(agent, puppet('agent -t --environment production'), :acceptable_exit_codes => [0,2]) do |result|
5252
assert_no_match(/Error:/, result.stderr, 'Unexpected error was detected!')
5353
end
5454

tests/beaker/tests/create_filesystem_with_param_name_ext3.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
step 'Run Puppet Agent to create logical volumes'
4949
confine_block(:except, :roles => %w{master dashboard database}) do
5050
agents.each do |agent|
51-
on(agent, puppet('agent -t --graph --environment production'), :acceptable_exit_codes => [0,2]) do |result|
51+
on(agent, puppet('agent -t --environment production'), :acceptable_exit_codes => [0,2]) do |result|
5252
assert_no_match(/Error:/, result.stderr, 'Unexpected error was detected!')
5353
end
5454

tests/beaker/tests/create_filesystem_with_param_options.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
require 'lvm_helper'
33
require 'securerandom'
44

5-
test_name "FM-4615 - C96568 - create filesystem with parameter 'fs_type' and ext4 format"
5+
test_name "FM-4615 - C96570 - create filesystem with parameter 'options' and ext4 format"
66

77
#initilize
88
pv = '/dev/sdc'
@@ -37,7 +37,7 @@
3737
filesystem {'Create_filesystem':
3838
name => '/dev/#{vg}/#{lv}',
3939
ensure => present,
40-
fs_type => 'ext2',
40+
fs_type => 'ext4',
4141
options => '-b 4096 -E stride=32,stripe-width=64',
4242
}
4343
MANIFEST
@@ -49,11 +49,11 @@
4949
step 'Run Puppet Agent to create logical volumes'
5050
confine_block(:except, :roles => %w{master dashboard database}) do
5151
agents.each do |agent|
52-
on(agent, puppet('agent -t --graph --environment production'), :acceptable_exit_codes => [0,2]) do |result|
52+
on(agent, puppet('agent -t --environment production'), :acceptable_exit_codes => [0,2]) do |result|
5353
assert_no_match(/Error:/, result.stderr, 'Unexpected error was detected!')
5454
end
5555

5656
step "Verify the logical volume has correct format type: #{lv}"
57-
is_correct_format?(agent, vg, lv, 'ext2')
57+
is_correct_format?(agent, vg, lv, 'ext4')
5858
end
5959
end

0 commit comments

Comments
 (0)