mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-30 18:17:55 +00:00 
			
		
		
		
	Fix tests
This commit is contained in:
		| @@ -196,8 +196,8 @@ func TestSecretsEnableCommand_Run(t *testing.T) { | |||||||
| 			t.Fatal(err) | 			t.Fatal(err) | ||||||
| 		} | 		} | ||||||
| 		for _, p := range plugins { | 		for _, p := range plugins { | ||||||
| 			if p.IsDir() && strings.HasPrefix(p.Name(), "vault-plugin-") && !strings.HasPrefix(p.Name(), "vault-plugin-auth-") { | 			if p.IsDir() && strings.HasPrefix(p.Name(), "vault-plugin-secrets-") { | ||||||
| 				backends = append(backends, strings.TrimPrefix(p.Name(), "vault-plugin-")) | 				backends = append(backends, strings.TrimPrefix(p.Name(), "vault-plugin-secrets-")) | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1419,11 +1419,13 @@ func TestSysTuneMount_passthroughRequestHeaders(t *testing.T) { | |||||||
| 		"data": map[string]interface{}{ | 		"data": map[string]interface{}{ | ||||||
| 			"default_lease_ttl":           json.Number("2764800"), | 			"default_lease_ttl":           json.Number("2764800"), | ||||||
| 			"max_lease_ttl":               json.Number("2764800"), | 			"max_lease_ttl":               json.Number("2764800"), | ||||||
|  | 			"options":                     map[string]interface{}{"versioned": "true"}, | ||||||
| 			"force_no_cache":              false, | 			"force_no_cache":              false, | ||||||
| 			"passthrough_request_headers": []interface{}{"X-Vault-Foo"}, | 			"passthrough_request_headers": []interface{}{"X-Vault-Foo"}, | ||||||
| 		}, | 		}, | ||||||
| 		"default_lease_ttl":           json.Number("2764800"), | 		"default_lease_ttl":           json.Number("2764800"), | ||||||
| 		"max_lease_ttl":               json.Number("2764800"), | 		"max_lease_ttl":               json.Number("2764800"), | ||||||
|  | 		"options":                     map[string]interface{}{"versioned": "true"}, | ||||||
| 		"force_no_cache":              false, | 		"force_no_cache":              false, | ||||||
| 		"passthrough_request_headers": []interface{}{"X-Vault-Foo"}, | 		"passthrough_request_headers": []interface{}{"X-Vault-Foo"}, | ||||||
| 	} | 	} | ||||||
| @@ -1455,10 +1457,12 @@ func TestSysTuneMount_passthroughRequestHeaders(t *testing.T) { | |||||||
| 			"default_lease_ttl": json.Number("2764800"), | 			"default_lease_ttl": json.Number("2764800"), | ||||||
| 			"max_lease_ttl":     json.Number("2764800"), | 			"max_lease_ttl":     json.Number("2764800"), | ||||||
| 			"force_no_cache":    false, | 			"force_no_cache":    false, | ||||||
|  | 			"options":           map[string]interface{}{"versioned": "true"}, | ||||||
| 		}, | 		}, | ||||||
| 		"default_lease_ttl": json.Number("2764800"), | 		"default_lease_ttl": json.Number("2764800"), | ||||||
| 		"max_lease_ttl":     json.Number("2764800"), | 		"max_lease_ttl":     json.Number("2764800"), | ||||||
| 		"force_no_cache":    false, | 		"force_no_cache":    false, | ||||||
|  | 		"options":           map[string]interface{}{"versioned": "true"}, | ||||||
| 	} | 	} | ||||||
| 	testResponseBody(t, resp, &actual) | 	testResponseBody(t, resp, &actual) | ||||||
| 	expected["request_id"] = actual["request_id"] | 	expected["request_id"] = actual["request_id"] | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jeff Mitchell
					Jeff Mitchell