databricks-cli/acceptance/bundle
Denis Bilenko d282f33a22
Append newline to "-o json" for validate/summary/run (#2326)
## Changes
- Insert newline after rendering indented JSON in bundle
validate/summary/run.
- This prevents "No newline at end of file" message in various cases,
for example when switching between recording raw output of the command
to output processed by jq, since jq does add a newline or when running
diff in acceptance tests.

## Tests
Manually running validate:

```
~/work/dabs_cuj_brickfood % ../cli/cli-main bundle validate -o json | tail -n 2  # without change
Error: root_path must start with '~/' or contain the current username to ensure uniqueness when using 'mode: development'

  }
}%
~/work/dabs_cuj_brickfood % ../cli/cli bundle validate -o json | tail -n 2  # with change
Error: root_path must start with '~/' or contain the current username to ensure uniqueness when using 'mode: development'

  }
}
~/work/dabs_cuj_brickfood %
```

Via #2316 -- see cleaner output there.
2025-02-10 14:00:49 +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 Fix flaky acceptance test (#2310) 2025-02-07 16:17:50 +00: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