From 8d98dbead0ae71a24c4b652abe4c0fcb72b9b8fc Mon Sep 17 00:00:00 2001 From: Clinton Gormley Date: Fri, 7 Feb 2014 17:54:38 +0100 Subject: [PATCH] [TESTS] Make cat.allocation tests handle different disk sizes --- .../test/cat.allocation/10_basic.yaml | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/rest-api-spec/test/cat.allocation/10_basic.yaml b/rest-api-spec/test/cat.allocation/10_basic.yaml index 094b69c680e..4d1408cb600 100644 --- a/rest-api-spec/test/cat.allocation/10_basic.yaml +++ b/rest-api-spec/test/cat.allocation/10_basic.yaml @@ -31,9 +31,9 @@ setup: $body: > /^ ( 0 \s+ - \d+(\.\d+)?+gb \s+ - \d+(\.\d+)?+gb \s+ - \d+(\.\d+)?+gb \s+ + \d+(\.\d+)?+[kmgt]b \s+ + \d+(\.\d+)?+[kmgt]b \s+ + \d+(\.\d+)?+[kmgt]b \s+ \d+ \s+ [-\w.]+ \s+ \d+(\.\d+){3} \s+ @@ -60,9 +60,9 @@ setup: $body: > /^ ( [1-5] \s+ - \d+(\.\d+)?+gb \s+ - \d+(\.\d+)?+gb \s+ - \d+(\.\d+)?+gb \s+ + \d+(\.\d+)?+[kmgt]b \s+ + \d+(\.\d+)?+[kmgt]b \s+ + \d+(\.\d+)?+[kmgt]b \s+ \d+ \s+ [-\w.]+ \s+ \d+(\.\d+){3} \s+ @@ -86,9 +86,9 @@ setup: $body: > /^ ( 0 \s+ - \d+(\.\d+)?+gb \s+ - \d+(\.\d+)?+gb \s+ - \d+(\.\d+)?+gb \s+ + \d+(\.\d+)?+[kmgt]b \s+ + \d+(\.\d+)?+[kmgt]b \s+ + \d+(\.\d+)?+[kmgt]b \s+ \d+ \s+ [-\w.]+ \s+ \d+(\.\d+){3} \s+ @@ -125,9 +125,9 @@ setup: \n ( \s+0 \s+ - \d+(\.\d+)?+gb \s+ - \d+(\.\d+)?+gb \s+ - \d+(\.\d+)?+gb \s+ + \d+(\.\d+)?+[kmgt]b \s+ + \d+(\.\d+)?+[kmgt]b \s+ + \d+(\.\d+)?+[kmgt]b \s+ \d+ \s+ [-\w.]+ \s+ \d+(\.\d+){3} \s+