Skip to content

Commit

Permalink
Fix tests (#1243)
Browse files Browse the repository at this point in the history
Fixes #

## Proposed Changes

*

## Docs and Tests

* [x] Tests added
* [ ] Updated documentation
  • Loading branch information
ademariag authored Sep 25, 2024
1 parent 593e5f9 commit b4523a4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
1 change: 0 additions & 1 deletion kapitan/inventory/model/input_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class KapitanInputTypeBaseConfig(BaseModel):

class KapitanInputTypeJsonnetConfig(KapitanInputTypeBaseConfig):
input_type: Literal[InputTypes.JSONNET] = InputTypes.JSONNET
output_type: OutputType = OutputType.JSON
input_paths: List[str]
prune: bool = False

Expand Down
4 changes: 3 additions & 1 deletion kapitan/refs/cmd_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ def ref_write(args, ref_controller):

type_name, token_path = token_name.split(":")

if type_name not in KapitanReferencesTypes:
try:
type_name = KapitanReferencesTypes(type_name)
except ValueError:
raise KapitanError(
f"Invalid token type: {type_name}. Try using gpg/gkms/awskms/azkms/vaultkv/vaulttransit/base64/plain/env"
)
Expand Down
28 changes: 14 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b4523a4

Please sign in to comment.