databricks-cli/cmd/workspace/secrets
Pieter Noordhuis db6313e99c
Fix secrets put-secret command (#545)
## Changes

Two issues with this command:
* The command line arguments for the secret value were ignored
* If the secret value was piped through stdin, it would still prompt

The second issue prevented users from using multi-line strings because
the prompt reads until end-of-line.

This change adds testing infrastructure for:
* Setting up a workspace focused test (common between many tests)
* Running a snippet of Python through the command execution API

Porting more integration tests to use this infrastructure will be done
in later commits.

## Tests

New integration test passes.

The interactive path cannot be integration tested just yet.
2023-07-05 17:30:54 +02:00
..
overrides.go Fix secrets put-secret command (#545) 2023-07-05 17:30:54 +02:00
secrets.go Fixed ignoring required positional parameters when --json flag is provided (#535) 2023-07-03 13:20:30 +02:00