[TEST] fix _cat/allocation index size check

The check expected the size of the index to always be returned in bytes, but that can possibly be kb, mb, gb and tb depending on the actual size.
This commit is contained in:
javanna 2017-05-01 14:36:23 +02:00 committed by Luca Cavanna
parent 0fef5acd01
commit 7863407b46
1 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@
/^
( \s* #allow leading spaces to account for right-justified text
\d+ \s+
\d+(\.\d+)?b \s+
\d+(\.\d+)?[kmgt]?b \s+
\d+(\.\d+)?[kmgt]?b \s+
(\d+(\.\d+)?[kmgt]b \s+) #always should return value since we filter out non data nodes by default
(\d+(\.\d+)?[kmgt]b \s+) #always should return value since we filter out non data nodes by default
@ -83,7 +83,7 @@
$body: |
/^
( 0 \s+
0b \s+
\d+(\.\d+)?[kmgt]?b \s+
\d+(\.\d+)?[kmgt]?b \s+
(\d+(\.\d+)?[kmgt]b \s+)? #no value from client nodes
(\d+(\.\d+)?[kmgt]b \s+)? #no value from client nodes
@ -117,7 +117,7 @@
/^
( \s* #allow leading spaces to account for right-justified text
\d+ \s+
\d+(\.\d+)?b \s+
\d+(\.\d+)?[kmgt]?b \s+
\d+(\.\d+)?[kmgt]?b \s+
(\d+(\.\d+)?[kmgt]b \s+)? #no value from client nodes
(\d+(\.\d+)?[kmgt]b \s+)? #no value from client nodes