mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-30 18:17:55 +00:00 
			
		
		
		
	Add context-aware functions to vault/api (#14388)
This commit is contained in:
		 Anton Averchenkov
					Anton Averchenkov
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							fea828993c
						
					
				
				
					commit
					8234a663e7
				
			| @@ -1,6 +1,7 @@ | ||||
| package command | ||||
|  | ||||
| import ( | ||||
| 	"context" | ||||
| 	"strings" | ||||
| 	"testing" | ||||
|  | ||||
| @@ -22,7 +23,7 @@ func testUnwrapCommand(tb testing.TB) (*cli.MockUi, *UnwrapCommand) { | ||||
| func testUnwrapWrappedToken(tb testing.TB, client *api.Client, data map[string]interface{}) string { | ||||
| 	tb.Helper() | ||||
|  | ||||
| 	wrapped, err := client.Logical().Write("sys/wrapping/wrap", data) | ||||
| 	wrapped, err := client.Logical().WriteWithContext(context.Background(), "sys/wrapping/wrap", data) | ||||
| 	if err != nil { | ||||
| 		tb.Fatal(err) | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user