databricks-cli/acceptance/bundle/variables
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
..
arg-repeat acc: Use [VARNAME] instead of $VARNAME (#2282) 2025-02-03 14:10:19 +00:00
complex acc: Use [VARNAME] instead of $VARNAME (#2282) 2025-02-03 14:10:19 +00:00
complex-cross-ref Resolve variables in a loop (#2164) 2025-01-16 14:39:54 +00:00
complex-cycle acc: Use [VARNAME] instead of $VARNAME (#2282) 2025-02-03 14:10:19 +00:00
complex-cycle-self acc: Use [VARNAME] instead of $VARNAME (#2282) 2025-02-03 14:10:19 +00:00
complex-simple Migrate more variable tests to acceptance (#2154) 2025-01-15 15:59:42 +01:00
complex-transitive Improve resolution of complex variables within complex variables (#2157) 2025-01-15 18:03:43 +01:00
complex-transitive-deep Resolve variables in a loop (#2164) 2025-01-16 14:39:54 +00:00
complex-transitive-deeper Add complex-transitive-deeper acceptance test (#2140) 2025-01-14 15:38:20 +00:00
complex-with-var-reference Migrate TestResolveComplexVariableWithVarReference (#2156) 2025-01-15 17:52:17 +01:00
complex-within-complex Improve resolution of complex variables within complex variables (#2157) 2025-01-15 18:03:43 +01:00
complex_multiple_files acc: Use [VARNAME] instead of $VARNAME (#2282) 2025-02-03 14:10:19 +00:00
cycle Resolve variables in a loop (#2164) 2025-01-16 14:39:54 +00:00
double_underscore acc: Use [VARNAME] instead of $VARNAME (#2282) 2025-02-03 14:10:19 +00:00
empty acc: Use [VARNAME] instead of $VARNAME (#2282) 2025-02-03 14:10:19 +00:00
env_overrides acc: Make variable tests local-only (#2312) 2025-02-07 17:42:35 +00:00
file-defaults acc: Use [VARNAME] instead of $VARNAME (#2282) 2025-02-03 14:10:19 +00:00
git-branch acc: Use [VARNAME] instead of $VARNAME (#2282) 2025-02-03 14:10:19 +00:00
host Append newline to "-o json" for validate/summary/run (#2326) 2025-02-10 14:00:49 +01:00
prepend-workspace-var acc: Use [VARNAME] instead of $VARNAME (#2282) 2025-02-03 14:10:19 +00:00
resolve-builtin acc: Make variable tests local-only (#2312) 2025-02-07 17:42:35 +00:00
resolve-empty Convert some resolve variables tests to acceptance test (#2100) 2025-01-08 17:44:52 +00:00
resolve-field-within-complex Convert some resolve variables tests to acceptance test (#2100) 2025-01-08 17:44:52 +00:00
resolve-nonstrings acc: Use [VARNAME] instead of $VARNAME (#2282) 2025-02-03 14:10:19 +00:00
resolve-vars-in-root-path acc: Make variable tests local-only (#2312) 2025-02-07 17:42:35 +00:00
vanilla acc: Use [VARNAME] instead of $VARNAME (#2282) 2025-02-03 14:10:19 +00:00
variable_overrides_in_target acc: Use [VARNAME] instead of $VARNAME (#2282) 2025-02-03 14:10:19 +00:00
without_definition Add acceptance tests (#2081) 2025-01-08 12:41:08 +00:00
test.toml acc: Make variable tests local-only (#2312) 2025-02-07 17:42:35 +00:00