1a324cf347
Functionality is split into ExternalTokenHelper, which is used if a path is given in a configuration file, and InternalTokenHelper which is used otherwise. The internal helper no longer shells out to the same Vault binary, instead performing the same actions with internal code. This avoids problems using dev mode when there are spaces in paths or when the binary is built in a container without a shell. Fixes #850 among others
12 lines
214 B
Go
12 lines
214 B
Go
package token
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
// TestCommand re-uses the existing Test function to ensure proper behavior of
|
|
// the internal token helper
|
|
func TestCommand(t *testing.T) {
|
|
Test(t, &InternalTokenHelper{})
|
|
}
|