From 7863407b46b200182d5212011c28198ecda3bd3d Mon Sep 17 00:00:00 2001 From: javanna Date: Mon, 1 May 2017 14:36:23 +0200 Subject: [PATCH] [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. --- .../rest-api-spec/test/cat.allocation/10_basic.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/cat.allocation/10_basic.yaml b/rest-api-spec/src/main/resources/rest-api-spec/test/cat.allocation/10_basic.yaml index 5f0646139b5..bdb328fad79 100755 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/cat.allocation/10_basic.yaml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/cat.allocation/10_basic.yaml @@ -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