diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2017-11-18 13:56:22 -0500 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2017-11-27 21:45:44 -0500 |
| commit | 2766d2ec1ed1433d315031f40d6733858e69eed0 (patch) | |
| tree | 7f59be8f7fc2b16f834139a179d8251048615a39 /test | |
| parent | e5d193a05b2c4515ce2da0fcb59ad8668dec3977 (diff) | |
Support setting MIME type with URL query string
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'test')
| -rw-r--r-- | test/integration/datasources_consul.bats | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/integration/datasources_consul.bats b/test/integration/datasources_consul.bats index 70ab14ca..8eb5da77 100644 --- a/test/integration/datasources_consul.bats +++ b/test/integration/datasources_consul.bats @@ -21,6 +21,13 @@ function teardown () { [[ "${output}" == "$BATS_TEST_DESCRIPTION" ]] } +@test "Consul datasource works with MIME override" { + consul kv put foo "{\"desc\":$BATS_TEST_DESCRIPTION}" + gomplate -d consul=consul://?type=application/json -i '{{(datasource "consul" "foo").desc}}' + [ "$status" -eq 0 ] + [[ "${output}" == "$BATS_TEST_DESCRIPTION" ]] +} + @test "Consul datasource works with hostname in URL" { consul kv put foo "$BATS_TEST_DESCRIPTION" unset CONSUL_HTTP_ADDR |
