Skip to content

Commit

Permalink
Tests: Improve size regex in documentation test (#26879)
Browse files Browse the repository at this point in the history
The regex has been changed to not only be able to deal with something
like `260b`, but also support `1.1kb`.
  • Loading branch information
spinscale authored Nov 13, 2017
1 parent 7c056f4 commit 08037ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference/getting-started.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ And the response:
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open customer 95SQ4TSUT7mWBT7VNHH67A 5 1 0 0 260b 260b
--------------------------------------------------
// TESTRESPONSE[s/95SQ4TSUT7mWBT7VNHH67A/.+/ s/260b/\\d+b/ _cat]
// TESTRESPONSE[s/95SQ4TSUT7mWBT7VNHH67A/.+/ s/260b/\\d+\\.?\\d?k?b/ _cat]

The results of the second command tells us that we now have 1 index named customer and it has 5 primary shards and 1 replica (the defaults) and it contains 0 documents in it.

Expand Down

0 comments on commit 08037ee

Please sign in to comment.