Skip to content

Commit

Permalink
master: test-auth-master - Add passdb lookup reconnect test.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanbosch committed Mar 8, 2019
1 parent 8f99c53 commit 9090681
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/master/test-auth-master.c
Expand Up @@ -432,6 +432,19 @@ test_client_passdb_disconnect(void)
return FALSE;
}

static bool
test_client_passdb_reconnect(void)
{
const char *error;
int ret;

ret = test_client_passdb_lookup_simple("hendrik", TRUE, &error);
test_out("run (ret == -1)", ret == -1);
test_assert(error == NULL);

return FALSE;
}

/* test */

static void test_passdb_fail(void)
Expand All @@ -457,6 +470,12 @@ static void test_passdb_fail(void)
test_run_client_server(test_client_passdb_disconnect,
test_server_passdb_fail);
test_end();

test_begin("passdb reconnect");
test_expect_errors(2);
test_run_client_server(test_client_passdb_reconnect,
test_server_passdb_fail);
test_end();
}

/*
Expand Down

0 comments on commit 9090681

Please sign in to comment.