diff options
| author | Joe Richey <joerichey@google.com> | 2017-08-30 18:00:04 -0700 |
|---|---|---|
| committer | Joe Richey <joerichey@google.com> | 2017-08-30 18:00:04 -0700 |
| commit | dad0a047cefc79cbe664afc07d69db6b8bf123bd (patch) | |
| tree | 8b6e477667e5200d7da6d1ad541f29a37b65611c /actions/context_test.go | |
| parent | d685f6b232485a0dc0cc8b915561b9be37d32722 (diff) | |
actions: context now hold a target user.User
This user is used with policies to interface with the keryings and with
protectors to indicate which user's login passphrase should be used to
protectors of type pam_passphrase.
Diffstat (limited to 'actions/context_test.go')
| -rw-r--r-- | actions/context_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/context_test.go b/actions/context_test.go index 4b38a33..593518f 100644 --- a/actions/context_test.go +++ b/actions/context_test.go @@ -47,7 +47,7 @@ func setupContext() (ctx *Context, err error) { ConfigFileLocation = filepath.Join(mountpoint, "test.conf") // Should not be able to setup without a config file - if badCtx, badCtxErr := NewContextFromMountpoint(mountpoint); badCtxErr == nil { + if badCtx, badCtxErr := NewContextFromMountpoint(mountpoint, nil); badCtxErr == nil { badCtx.Mount.RemoveAllMetadata() return nil, fmt.Errorf("created context at %q without config file", badCtx.Mount.Path) } @@ -61,7 +61,7 @@ func setupContext() (ctx *Context, err error) { } }() - ctx, err = NewContextFromMountpoint(mountpoint) + ctx, err = NewContextFromMountpoint(mountpoint, nil) if err != nil { return nil, err } |