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.
This commit is contained in:
Marco Trevisan (Treviño)
2023-09-19 18:17:54 +02:00
parent 5253f659f3
commit d0c0c8bf18
2 changed files with 1 additions and 0 deletions

View File

@@ -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)