]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume tests update (preserved) order on mount flags
authorAlfredo Deza <adeza@redhat.com>
Mon, 16 Apr 2018 18:41:52 +0000 (14:41 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 18 Apr 2018 18:48:48 +0000 (14:48 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 1a92ecbede09f084ab34ef556de46b435fa3e9d1)

src/ceph-volume/ceph_volume/tests/util/test_prepare.py

index a7c96b6778b2efb6ad3711257fd455f8e87a1b2c..bf825ff460613c5daeb7bf224ad6dc3dd7b3e394 100644 (file)
@@ -150,7 +150,7 @@ class TestMountOSD(object):
         prepare.mount_osd('/dev/sda1', 1)
         expected = [
             'mount', '-t', 'xfs', '-o',
-            'rw,inode64,noatime', # default flags
+            'rw,noatime,inode64', # default flags
             '/dev/sda1', '/var/lib/ceph/osd/ceph-1']
         assert expected == fake_run.calls[0]['args'][0]
 
@@ -176,7 +176,7 @@ class TestMountOSD(object):
         prepare.mount_osd('/dev/sda1', 1)
         expected = [
             'mount', '-t', 'xfs', '-o',
-            'auto,rw,exec',
+            'rw,auto,exec',
             '/dev/sda1', '/var/lib/ceph/osd/ceph-1']
         assert expected == fake_run.calls[0]['args'][0]
 
@@ -189,7 +189,7 @@ class TestMountOSD(object):
         prepare.mount_osd('/dev/sda1', 1)
         expected = [
             'mount', '-t', 'xfs', '-o',
-            'auto,rw,exec',
+            'rw,auto,exec',
             '/dev/sda1', '/var/lib/ceph/osd/ceph-1']
         assert expected == fake_run.calls[0]['args'][0]