1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/builder/parser/testfiles
Tianon Gravi 05c2d2db9a Adjust builder to validate that JSON in Dockerfiles are arrays of strings and nothing else to match how we describe them to people (and what all our existing tests already assumed)
This also adds more tests to help verify this, including unicode and nonprintable characters (hence the earlier commit switching to strconv.Quote).

As a bonus, this fixes a subtle bug where [] was turned into [""] and then turned back into [] (and thus [""] was impossible to actually round-trip correctly in a Dockerfile).

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
2015-01-05 14:31:05 -07:00
..
brimstone-consuldock Simplify builder ast.Dump by using strconv.Quote instead of a custom QuoteString function (the only change to existing files is literal tabs becoming \t, but future files may use nonprintable characters and the like now) 2015-01-02 22:36:58 -07:00
brimstone-docker-consul Simplify builder ast.Dump by using strconv.Quote instead of a custom QuoteString function (the only change to existing files is literal tabs becoming \t, but future files may use nonprintable characters and the like now) 2015-01-02 22:36:58 -07:00
continueIndent Merge pull request #8578 from erikh/fix_slash 2014-10-15 12:11:37 -07:00
cpuguy83-nagios Fix builder/parser so it keeps some whitespace on split lines. 2014-10-03 20:33:12 -07:00
docker Simplify builder ast.Dump by using strconv.Quote instead of a custom QuoteString function (the only change to existing files is literal tabs becoming \t, but future files may use nonprintable characters and the like now) 2015-01-02 22:36:58 -07:00
env Add support for ENV of the form: ENV name=value ... 2014-11-20 09:54:28 -08:00
escapes builder: strip blank lines before processing any line continuations. 2014-10-15 04:00:17 +00:00
influxdb builder/parser/dumper: Handle newlines appropriately. 2014-09-11 06:00:24 -07:00
jeztah-invalid-json-json-inside-string builder/parser/dumper: Handle newlines appropriately. 2014-09-11 06:00:24 -07:00
jeztah-invalid-json-json-inside-string-double builder/parser/dumper: Handle newlines appropriately. 2014-09-11 06:00:24 -07:00
jeztah-invalid-json-single-quotes builder/parser/dumper: Handle newlines appropriately. 2014-09-11 06:00:24 -07:00
jeztah-invalid-json-unterminated-bracket builder/parser/dumper: Handle newlines appropriately. 2014-09-11 06:00:24 -07:00
jeztah-invalid-json-unterminated-string builder/parser/dumper: Handle newlines appropriately. 2014-09-11 06:00:24 -07:00
json Adjust builder to validate that JSON in Dockerfiles are arrays of strings and nothing else to match how we describe them to people (and what all our existing tests already assumed) 2015-01-05 14:31:05 -07:00
kartar-entrypoint-oddities builder/parser/dumper: Handle newlines appropriately. 2014-09-11 06:00:24 -07:00
lk4d4-the-edge-case-generator Fix builder/parser so it keeps some whitespace on split lines. 2014-10-03 20:33:12 -07:00
mail builder/parser/dumper: Handle newlines appropriately. 2014-09-11 06:00:24 -07:00
multiple-volumes builder: Fix handling of VOLUME command where multiple volumes are 2014-09-25 09:44:19 -07:00
mumble builder/parser/dumper: Handle newlines appropriately. 2014-09-11 06:00:24 -07:00
nginx builder/parser/dumper: Handle newlines appropriately. 2014-09-11 06:00:24 -07:00
tf2 builder/parser/dumper: Handle newlines appropriately. 2014-09-11 06:00:24 -07:00
weechat builder/parser/dumper: Handle newlines appropriately. 2014-09-11 06:00:24 -07:00
znc builder/parser/dumper: Handle newlines appropriately. 2014-09-11 06:00:24 -07:00