From d0c0c8bf18fb416e2b76ee4b29c1644d34fb3746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 19 Sep 2023 18:17:54 +0200 Subject: [PATCH] tests: Move services to a subdirectory It makes it cleaner to handle, plus it allows adding more. Also rename the `my-service` to something more self-explanatory. --- my-service => test-services/permit-service | 0 transaction_test.go | 1 + 2 files changed, 1 insertion(+) rename my-service => test-services/permit-service (100%) diff --git a/my-service b/test-services/permit-service similarity index 100% rename from my-service rename to test-services/permit-service diff --git a/transaction_test.go b/transaction_test.go index c56edf2..2d24a37 100644 --- a/transaction_test.go +++ b/transaction_test.go @@ -176,6 +176,7 @@ func TestPAM_ConfDir(t *testing.T) { Password: "wrongsecret", } tx, err := StartConfDir("my-service", "test", c, ".") + tx, err := StartConfDir("permit-service", u.Username, c, "test-services") if !CheckPamHasStartConfdir() { if err == nil { t.Fatalf("start should have errored out as pam_start_confdir is not available: %v", err)