]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/cli-integration/rbd: fixed unit formatting 22260/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 24 May 2018 19:54:39 +0000 (15:54 -0400)
committerSage Weil <sage@redhat.com>
Sun, 27 May 2018 14:57:15 +0000 (09:57 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 4aea23cf1b488c0fe57b3cbe910ddcc4cb5360eb)

src/test/cli-integration/rbd/formatted-output.t

index 01303cab107e5cc1454fa93f641b94ae813c20ee..5d36b1510fc5d48e1a693aadce7b77e01b6476b4 100644 (file)
@@ -604,15 +604,15 @@ whenever it is run. grep -v to ignore it, but still work on other distros.
     <name>quuy</name>
   </images>
   $ rbd list -l
-  NAME        SIZE PARENT FMT PROT LOCK 
-  foo         1 GiB          1
-  foo@snap    1 GiB          1
-  quux        1 MiB          1      excl
-  bar         1 GiB          2
-  bar@snap  512 MiB          2 yes
-  bar@snap2   1 GiB          2
-  baz         2 GiB          2      shr
-  quuy        2 GiB          2
+  NAME         SIZE PARENT FMT PROT LOCK 
+  foo         1 GiB          1           
+  foo@snap    1 GiB          1           
+  quux        1 MiB          1      excl 
+  bar         1 GiB          2           
+  bar@snap  512 MiB          2 yes       
+  bar@snap2   1 GiB          2           
+  baz         2 GiB          2      shr  
+  quuy        2 GiB          2           
   $ rbd list -l --format json | python -mjson.tool | sed 's/,$/, /'
   [
       {
@@ -729,11 +729,11 @@ whenever it is run. grep -v to ignore it, but still work on other distros.
     <name>deep-flatten-child</name>
   </images>
   $ rbd list rbd_other -l
-  NAME                      SIZE PARENT       FMT PROT LOCK 
-  child                   512 MiB                2
-  child@snap              512 MiB rbd/bar@snap   2
-  deep-flatten-child      512 MiB                2
-  deep-flatten-child@snap 512 MiB                2
+  NAME                       SIZE PARENT       FMT PROT LOCK 
+  child                   512 MiB                2           
+  child@snap              512 MiB rbd/bar@snap   2           
+  deep-flatten-child      512 MiB                2           
+  deep-flatten-child@snap 512 MiB                2           
   $ rbd list rbd_other -l --format json | python -mjson.tool | sed 's/,$/, /'
   [
       {
@@ -867,8 +867,8 @@ whenever it is run. grep -v to ignore it, but still work on other distros.
     </lock>
   </locks>
   $ rbd snap list foo
-  SNAPID NAME SIZE TIMESTAMP 
-      *snap*1 GiB* (glob)
+  SNAPID NAME  SIZE TIMESTAMP 
+  *snap*1 GiB* (glob)
   $ rbd snap list foo --format json | python -mjson.tool | sed 's/,$/, /'
   [
       {
@@ -888,9 +888,9 @@ whenever it is run. grep -v to ignore it, but still work on other distros.
     </snapshot>
   </snapshots>
   $ rbd snap list bar
-  SNAPID NAME    SIZE TIMESTAMP                
-      *snap*512 MiB* (glob)
-      *snap2*1 GiB* (glob)
+  SNAPID NAME     SIZE TIMESTAMP                
+  *snap*512 MiB* (glob)
+  *snap2*1 GiB* (glob)
   $ rbd snap list bar --format json | python -mjson.tool | sed 's/,$/, /'
   [
       {
@@ -927,8 +927,8 @@ whenever it is run. grep -v to ignore it, but still work on other distros.
   $ rbd snap list baz --format xml | xml_pp 2>&1 | grep -v '^new version at /usr/bin/xml_pp'
   <snapshots></snapshots>
   $ rbd snap list rbd_other/child
-  SNAPID NAME   SIZE TIMESTAMP                
-      *snap*512 MiB* (glob)
+  SNAPID NAME    SIZE TIMESTAMP                
+  *snap*512 MiB* (glob)
   $ rbd snap list rbd_other/child --format json | python -mjson.tool | sed 's/,$/, /'
   [
       {
@@ -948,12 +948,12 @@ whenever it is run. grep -v to ignore it, but still work on other distros.
     </snapshot>
   </snapshots>
   $ rbd disk-usage --pool rbd_other 2>/dev/null
-  NAME                    PROVISIONED USED 
-  child@snap                   512 MiB   0 B
-  child                        512 MiB 4 MiB
-  deep-flatten-child@snap      512 MiB   0 B
-  deep-flatten-child           512 MiB   0 B
-  <TOTAL>                        1 GiB 4 MiB
+  NAME                    PROVISIONED  USED 
+  child@snap                  512 MiB   0 B 
+  child                       512 MiB 4 MiB 
+  deep-flatten-child@snap     512 MiB   0 B 
+  deep-flatten-child          512 MiB   0 B 
+  <TOTAL>                       1 GiB 4 MiB 
   $ rbd disk-usage --pool rbd_other --format json | python -mjson.tool | sed 's/,$/, /'
   {
       "images": [