Support Webauthn
Compare changes
- ale authored
Resolves potential conflict when tests are run in parallel.
+ 48
− 53
@@ -15,35 +15,32 @@ import (
@@ -15,35 +15,32 @@ import (
@@ -54,16 +51,16 @@ func startServer(t testing.TB) (func(), as.Backend) {
@@ -54,16 +51,16 @@ func startServer(t testing.TB) (func(), as.Backend) {
b, err := NewLDAPBackend(testLDAPAddr, "cn=manager,dc=example,dc=com", "password", "dc=example,dc=com")
func startServerAndGetUserWithName(t testing.TB, username string) (func(), as.Backend, *as.RawUser) {
@@ -74,12 +71,12 @@ func startServerAndGetUserWithName(t testing.TB, username string) (func(), as.Ba
@@ -74,12 +71,12 @@ func startServerAndGetUserWithName(t testing.TB, username string) (func(), as.Ba
@@ -92,8 +89,8 @@ func TestModel_GetUser_NotFound(t *testing.T) {
@@ -92,8 +89,8 @@ func TestModel_GetUser_NotFound(t *testing.T) {
@@ -127,8 +124,8 @@ func TestModel_GetUser(t *testing.T) {
@@ -127,8 +124,8 @@ func TestModel_GetUser(t *testing.T) {
@@ -136,8 +133,8 @@ func TestModel_GetUser_HasEncryptionKeys(t *testing.T) {
@@ -136,8 +133,8 @@ func TestModel_GetUser_HasEncryptionKeys(t *testing.T) {
@@ -145,8 +142,8 @@ func TestModel_GetUser_Has2FA(t *testing.T) {
@@ -145,8 +142,8 @@ func TestModel_GetUser_Has2FA(t *testing.T) {
@@ -163,8 +160,8 @@ func TestModel_GetUser_HasU2FRegistrations(t *testing.T) {
@@ -163,8 +160,8 @@ func TestModel_GetUser_HasU2FRegistrations(t *testing.T) {
@@ -195,8 +192,8 @@ func TestModel_GetUser_Resources(t *testing.T) {
@@ -195,8 +192,8 @@ func TestModel_GetUser_Resources(t *testing.T) {
@@ -213,8 +210,8 @@ func TestModel_GetUser_MailingListsAndNewsletters(t *testing.T) {
@@ -213,8 +210,8 @@ func TestModel_GetUser_MailingListsAndNewsletters(t *testing.T) {
@@ -229,15 +226,14 @@ func TestModel_SearchUser(t *testing.T) {
@@ -229,15 +226,14 @@ func TestModel_SearchUser(t *testing.T) {
b, err := NewLDAPBackend(testLDAPAddr, "cn=manager,dc=example,dc=com", "password", "dc=example,dc=com")
@@ -262,15 +258,14 @@ func TestModel_SetResourceStatus(t *testing.T) {
@@ -262,15 +258,14 @@ func TestModel_SetResourceStatus(t *testing.T) {
b, err := NewLDAPBackend(testLDAPAddr, "cn=manager,dc=example,dc=com", "password", "dc=example,dc=com")
@@ -302,8 +297,8 @@ func TestModel_HasAnyResource(t *testing.T) {
@@ -302,8 +297,8 @@ func TestModel_HasAnyResource(t *testing.T) {
@@ -321,8 +316,8 @@ func TestModel_SearchResource(t *testing.T) {
@@ -321,8 +316,8 @@ func TestModel_SearchResource(t *testing.T) {
@@ -352,8 +347,8 @@ func TestModel_SetUserPassword(t *testing.T) {
@@ -352,8 +347,8 @@ func TestModel_SetUserPassword(t *testing.T) {
@@ -371,8 +366,8 @@ func TestModel_SetUserEncryptionKeys_Add(t *testing.T) {
@@ -371,8 +366,8 @@ func TestModel_SetUserEncryptionKeys_Add(t *testing.T) {
@@ -390,8 +385,8 @@ func TestModel_SetUserEncryptionKeys_Replace(t *testing.T) {
@@ -390,8 +385,8 @@ func TestModel_SetUserEncryptionKeys_Replace(t *testing.T) {