databricks-cli/acceptance/bundle
Denis Bilenko abea174a6a acc: Simplify writing handlers; support customing headers; fix read body bug
Handlers now receive testserver.Request and return any which could be
- nil (returns 404)
- string / []byte (returns it as is but sets content-type to json or test depending on content)
- object (encodes it as json and sets content-type to json)
- testserver.Response (full control over status, headers)

The config is now using the same testserver.Response struct as handlers, so the same logic applies there.

It is now possible to specify headers in test.toml.

This also fixes a bug with RecordRequest reading the body, not leaving it for the actual handler.
2025-02-12 12:54:55 +01:00
..
artifacts/same_name_libraries Raise an error when there are multiple local libraries with the same basename used (#2297) 2025-02-07 17:55:16 +00:00
debug acc: Simplify writing handlers; support customing headers; fix read body bug 2025-02-12 12:54:55 +01:00
generate/git_job Added support to generate Git based jobs (#2304) 2025-02-07 18:37:03 +00:00
git-permerror Always print warnings and errors; clean up format (#2213) 2025-02-07 11:29:40 +00:00
help acc: Use [VARNAME] instead of $VARNAME (#2282) 2025-02-03 14:10:19 +00:00
includes/non_yaml_in_include accept JSON includes (#2265) 2025-02-04 19:28:19 +01:00
override acc: Use [VARNAME] instead of $VARNAME (#2282) 2025-02-03 14:10:19 +00:00
paths acc: Use [VARNAME] instead of $VARNAME (#2282) 2025-02-03 14:10:19 +00:00
quality_monitor acc: Use [VARNAME] instead of $VARNAME (#2282) 2025-02-03 14:10:19 +00:00
scripts acc: enable bundle/scripts on cloud (#2313) 2025-02-07 17:42:47 +00:00
syncroot acc: Use [VARNAME] instead of $VARNAME (#2282) 2025-02-03 14:10:19 +00:00
templates acc: Split bundle/templates and bundle/templates-machinery (#2317) 2025-02-10 11:55:34 +01:00
templates-machinery acc: Split bundle/templates and bundle/templates-machinery (#2317) 2025-02-10 11:55:34 +01:00
undefined_resources Migrate bundle/tests/undefined_resources_test.go to acceptance test (#2106) 2025-01-09 15:21:24 +00:00
variables Append newline to "-o json" for validate/summary/run (#2326) 2025-02-10 14:00:49 +01:00