mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
VAULT-19237 Add mount_type to secret response (#23047)
* VAULT-19237 Add mount_type to secret response * VAULT-19237 changelog * VAULT-19237 make MountType generic * VAULT-19237 clean up comment * VAULT-19237 update changelog * VAULT-19237 update test, remove mounttype from wrapped responses * VAULT-19237 fix a lot of tests * VAULT-19237 standby test
This commit is contained in:
@@ -31,6 +31,7 @@ func TestSysAuth(t *testing.T) {
|
||||
"renewable": false,
|
||||
"lease_duration": json.Number("0"),
|
||||
"wrap_info": nil,
|
||||
"mount_type": "system",
|
||||
"warnings": nil,
|
||||
"auth": nil,
|
||||
"data": map[string]interface{}{
|
||||
@@ -115,6 +116,7 @@ func TestSysEnableAuth(t *testing.T) {
|
||||
"wrap_info": nil,
|
||||
"warnings": nil,
|
||||
"auth": nil,
|
||||
"mount_type": "system",
|
||||
"data": map[string]interface{}{
|
||||
"foo/": map[string]interface{}{
|
||||
"description": "foo",
|
||||
@@ -236,6 +238,7 @@ func TestSysDisableAuth(t *testing.T) {
|
||||
"wrap_info": nil,
|
||||
"warnings": nil,
|
||||
"auth": nil,
|
||||
"mount_type": "system",
|
||||
"data": map[string]interface{}{
|
||||
"token/": map[string]interface{}{
|
||||
"config": map[string]interface{}{
|
||||
@@ -326,6 +329,7 @@ func TestSysTuneAuth_nonHMACKeys(t *testing.T) {
|
||||
"wrap_info": nil,
|
||||
"warnings": nil,
|
||||
"auth": nil,
|
||||
"mount_type": "system",
|
||||
"data": map[string]interface{}{
|
||||
"description": "token based credentials",
|
||||
"default_lease_ttl": json.Number("2764800"),
|
||||
@@ -371,6 +375,7 @@ func TestSysTuneAuth_nonHMACKeys(t *testing.T) {
|
||||
"wrap_info": nil,
|
||||
"warnings": nil,
|
||||
"auth": nil,
|
||||
"mount_type": "system",
|
||||
"data": map[string]interface{}{
|
||||
"description": "token based credentials",
|
||||
"default_lease_ttl": json.Number("2764800"),
|
||||
@@ -409,6 +414,7 @@ func TestSysTuneAuth_showUIMount(t *testing.T) {
|
||||
"wrap_info": nil,
|
||||
"warnings": nil,
|
||||
"auth": nil,
|
||||
"mount_type": "system",
|
||||
"data": map[string]interface{}{
|
||||
"description": "token based credentials",
|
||||
"default_lease_ttl": json.Number("2764800"),
|
||||
@@ -447,6 +453,7 @@ func TestSysTuneAuth_showUIMount(t *testing.T) {
|
||||
"wrap_info": nil,
|
||||
"warnings": nil,
|
||||
"auth": nil,
|
||||
"mount_type": "system",
|
||||
"data": map[string]interface{}{
|
||||
"description": "token based credentials",
|
||||
"default_lease_ttl": json.Number("2764800"),
|
||||
@@ -513,6 +520,7 @@ func TestSysRemountAuth(t *testing.T) {
|
||||
"wrap_info": nil,
|
||||
"warnings": nil,
|
||||
"auth": nil,
|
||||
"mount_type": "system",
|
||||
"data": map[string]interface{}{
|
||||
"bar/": map[string]interface{}{
|
||||
"description": "foo",
|
||||
|
||||
Reference in New Issue
Block a user