~lightdm-team/lightdm/1.4

« back to all changes in this revision

Viewing changes to tests/src/test-runner.c

  • Committer: Robert Ancell
  • Date: 2012-02-28 05:34:07 UTC
  • Revision ID: robert.ancell@canonical.com-20120228053407-pft2iyx3ru79pfoo
Add tests for autologin when accounts are denied or expired

Show diffs side-by-side

added added

removed removed

Lines of Context:
1303
1303
        gint uid;
1304
1304
    } users[] =
1305
1305
    {
1306
 
        {"root",    "",         TRUE,  "root",       NULL,          NULL, NULL,          NULL,             0},
1307
 
        {"lightdm", "",         TRUE,  "",           NULL,          NULL, NULL,          NULL,           100},
1308
 
        {"alice",   "password", TRUE,  "Alice User", NULL,          NULL, NULL,          NULL,          1000},
1309
 
        {"bob",     "",         TRUE,  "Bob User",   NULL,          "us", NULL,          "en_AU.utf8",  1001},
1310
 
        {"carol",   "",         TRUE,  "Carol User", "alternative", "ru", "fr\toss;ru;", "fr_FR.UTF-8", 1002},
1311
 
        {"dave",    "",         FALSE, "Dave User",  NULL,          NULL, NULL,          NULL,          1003},
 
1306
        {"root",             "",         TRUE,  "root",       NULL,          NULL, NULL,          NULL,             0},
 
1307
        {"lightdm",          "",         TRUE,  "",           NULL,          NULL, NULL,          NULL,           100},
 
1308
        {"alice",            "password", TRUE,  "Alice User", NULL,          NULL, NULL,          NULL,          1000},
 
1309
        {"bob",              "",         TRUE,  "Bob User",   NULL,          "us", NULL,          "en_AU.utf8",  1001},
 
1310
        {"carol",            "",         TRUE,  "Carol User", "alternative", "ru", "fr\toss;ru;", "fr_FR.UTF-8", 1002},
 
1311
        {"dave",             "",         FALSE, "Dave User",  NULL,          NULL, NULL,          NULL,          1003},
 
1312
        /* This account is denied access */
 
1313
        {"denied",           "",         TRUE,  "Denied User", NULL,         NULL, NULL,          NULL,          1004},
 
1314
        /* This account has expired */
 
1315
        {"expired",          "",         TRUE,  "Expired User", NULL,        NULL, NULL,          NULL,          1005},
 
1316
        /* This account needs a password change */
 
1317
        {"new-authtok",      "",         TRUE,  "New Token User", NULL,      NULL, NULL,          NULL,          1006},
1312
1318
        /* user0 is switched to user1 when authentication succeeds */
1313
 
        {"user0",   "",         TRUE,  "User 0",     NULL,          NULL, NULL,          NULL,          1004},
1314
 
        {"user1",   "",         TRUE,  "User 1",     NULL,          NULL, NULL,          NULL,          1005},
 
1319
        {"user0",            "",         TRUE,  "User 0",     NULL,          NULL, NULL,          NULL,          1007},
 
1320
        {"user1",            "",         TRUE,  "User 1",     NULL,          NULL, NULL,          NULL,          1008},
1315
1321
        /* rename-user-invalid switches to invalid-user when authentication succeeds */
1316
 
        {"rename-user-invalid",   "",         TRUE,  "User 1",     NULL,          NULL, NULL,          NULL,          1006},
1317
 
        {NULL,      NULL,       FALSE, NULL,         NULL,          NULL, NULL,          NULL,             0}
 
1322
        {"rename-user-invalid",   "",    TRUE,  "User 1",     NULL,          NULL, NULL,          NULL,          1009},
 
1323
        {NULL,               NULL,       FALSE, NULL,         NULL,          NULL, NULL,          NULL,             0}
1318
1324
    };
1319
1325
    passwd_data = g_string_new ("");
1320
1326
    int i;