Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup(pam/integration-tests/cli): Do not build the module and pam clients for each test #409

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pam/integration-tests/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ func TestCLIAuthenticate(t *testing.T) {
currentDir, err := os.Getwd()
require.NoError(t, err, "Setup: Could not get current directory for the tests")

clientPath := t.TempDir()
cliEnv := prepareClientTest(t, clientPath)

tests := map[string]struct {
tape string

Expand Down Expand Up @@ -71,8 +74,10 @@ func TestCLIAuthenticate(t *testing.T) {
t.Parallel()

outDir := t.TempDir()
err := os.Symlink(filepath.Join(clientPath, "pam_authd"),
filepath.Join(outDir, "pam_authd"))
require.NoError(t, err, "Setup: symlinking the pam client")

cliEnv := prepareClientTest(t, outDir)
cliLog := prepareCLILogging(t)
t.Cleanup(func() {
saveArtifactsForDebug(t, []string{
Expand Down
Loading