mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			347 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			347 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package command
 | |
| 
 | |
| import (
 | |
| 	"path/filepath"
 | |
| 	"reflect"
 | |
| 	"testing"
 | |
| )
 | |
| 
 | |
| func TestLoadConfig(t *testing.T) {
 | |
| 	config, err := LoadConfig(filepath.Join(FixturePath, "config.hcl"))
 | |
| 	if err != nil {
 | |
| 		t.Fatalf("err: %s", err)
 | |
| 	}
 | |
| 
 | |
| 	expected := &Config{
 | |
| 		TokenHelper: "foo",
 | |
| 	}
 | |
| 	if !reflect.DeepEqual(expected, config) {
 | |
| 		t.Fatalf("bad: %#v", config)
 | |
| 	}
 | |
| }
 | 
