diff --git a/examplebroker/broker.go b/examplebroker/broker.go index 9592c50ed..b6280e51a 100644 --- a/examplebroker/broker.go +++ b/examplebroker/broker.go @@ -896,9 +896,6 @@ func userInfoFromName(name string) string { case "user-sudo": user.Groups = append(user.Groups, groupJSONInfo{Name: "sudo", UGID: ""}, groupJSONInfo{Name: "admin", UGID: ""}) - - case "user-mismatching-name": - user.Name = "mismatching-username" } // only used for tests, we can ignore the template execution error as the returned data will be failing. diff --git a/pam/integration-tests/testdata/tapes/cli/mismatch_username.tape b/pam/integration-tests/testdata/tapes/cli/mismatch_username.tape deleted file mode 100644 index 03f5a219e..000000000 --- a/pam/integration-tests/testdata/tapes/cli/mismatch_username.tape +++ /dev/null @@ -1,30 +0,0 @@ -Hide -Type "${AUTHD_TEST_TAPE_COMMAND}" -Enter -Sleep ${AUTHD_SLEEP_COMMAND} -Show - -Hide -Escape -Backspace -Type "user-mismatching-name" -Sleep ${AUTHD_SLEEP_DEFAULT} -Show - -Hide -Enter -Sleep ${AUTHD_SLEEP_DEFAULT} -Show - -Hide -Type "2" -Sleep ${AUTHD_SLEEP_DEFAULT} -Show - -Hide -Type "goodpass" -Enter -Sleep ${AUTHD_SLEEP_LONG} * 2 -Show - -Sleep ${AUTHD_SLEEP_DEFAULT} diff --git a/pam/integration-tests/testdata/tapes/native/mismatch_username.tape b/pam/integration-tests/testdata/tapes/native/mismatch_username.tape deleted file mode 100644 index 7d0635df0..000000000 --- a/pam/integration-tests/testdata/tapes/native/mismatch_username.tape +++ /dev/null @@ -1,29 +0,0 @@ -Hide -Type "${AUTHD_TEST_TAPE_COMMAND}" -Enter -Sleep ${AUTHD_SLEEP_COMMAND} -Show - -Hide -Type "user-mismatching-name" -Sleep ${AUTHD_SLEEP_DEFAULT} -Show - -Hide -Enter -Sleep ${AUTHD_SLEEP_DEFAULT} -Show - -Hide -Type "2" -Enter -Sleep ${AUTHD_SLEEP_LONG} / 2 -Show - -Hide -Type "goodpass" -Enter -Sleep ${AUTHD_SLEEP_LONG} * 2 -Show - -Sleep ${AUTHD_SLEEP_DEFAULT}