Skip to content

Commit

Permalink
Fix return type of kv1 list methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kdubb committed Jan 3, 2024
1 parent f28c7d3 commit 3a976e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion client/src/main/specs/secrets/kv1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ operations:
type: String
result:
kind: leased
unwrapData: true
unwrapUsing: r.getData().getKeys()
unwrappedType: java.util.List<String>
data:
- name: keys
type: java.util.List<String>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ void testList(VaultClient client, @Random String path) {
.await().indefinitely();

assertThat(data)
.isNotNull();
assertThat(data.getKeys())
.isNotNull()
.contains("test1", "test2");
}

Expand Down

0 comments on commit 3a976e2

Please sign in to comment.