summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <[email protected]>2023-09-19 18:17:54 +0200
committerMarco Trevisan (Treviño) <[email protected]>2023-09-19 18:17:54 +0200
commitd0c0c8bf18fb416e2b76ee4b29c1644d34fb3746 (patch)
tree53d3d6ac661699613d08b61a30ee62ec109f2d9f
parent5253f659f39e53933241047250d12d92aa173192 (diff)
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.
-rw-r--r--test-services/permit-service (renamed from my-service)0
-rw-r--r--transaction_test.go1
2 files changed, 1 insertions, 0 deletions
diff --git a/my-service b/test-services/permit-service
index 2dfbc5a..2dfbc5a 100644
--- a/my-service
+++ b/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)