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:
@@ -176,6 +176,7 @@ func TestPAM_ConfDir(t *testing.T) {
|
|||||||
Password: "wrongsecret",
|
Password: "wrongsecret",
|
||||||
}
|
}
|
||||||
tx, err := StartConfDir("my-service", "test", c, ".")
|
tx, err := StartConfDir("my-service", "test", c, ".")
|
||||||
|
tx, err := StartConfDir("permit-service", u.Username, c, "test-services")
|
||||||
if !CheckPamHasStartConfdir() {
|
if !CheckPamHasStartConfdir() {
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Fatalf("start should have errored out as pam_start_confdir is not available: %v", err)
|
t.Fatalf("start should have errored out as pam_start_confdir is not available: %v", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user