File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
tests/integration-tests/tests/storage Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,11 @@ def _check_shared_home(
135
135
def _test_ebs_correctly_mounted (remote_command_executor , mount_dir , volume_size ):
136
136
logging .info (f"Testing ebs { mount_dir } is correctly mounted on login" )
137
137
result = remote_command_executor .run_remote_command (f"df -h | grep { mount_dir } " )
138
- assert_that (result .stdout ).matches (r"{size}G.*{mount_dir}" .format (size = volume_size , mount_dir = mount_dir ))
138
+ assert_that (result .stdout ).matches (
139
+ r"({size}|{size_minus_one})G.*{mount_dir}" .format (
140
+ size = volume_size , size_minus_one = volume_size - 1 , mount_dir = mount_dir
141
+ )
142
+ )
139
143
140
144
result = remote_command_executor .run_remote_command ("cat /etc/fstab" )
141
145
assert_that (result .stdout ).matches (r"{mount_dir}.*_netdev" .format (mount_dir = mount_dir ))
You can’t perform that action at this time.
0 commit comments