]> eyrie.org Git - kerberos/krb5-strength.git/blob - tests/data/passwords/history.c
New upstream version 3.1
[kerberos/krb5-strength.git] / tests / data / passwords / history.c
1 /*
2  * Automatically generated -- do not edit!
3  *
4  * This file was automatically generated from the original JSON source file
5  * for the use in C test programs.  To make changes, modify the original
6  * JSON source or (more rarely) the make-c-data script and run it again.
7  *
8  * Copyright 2013
9  *     The Board of Trustees of the Leland Stanford Junior University
10  *
11  * See LICENSE for licensing terms.
12  */
13
14 #include <tests/data/passwords/tests.h>
15
16 const struct password_test history_tests[] = {
17     {
18
19         "valid simple password",
20         "someuser@EXAMPLE.ORG",
21         "password",
22         0,
23         NULL,
24     },
25     {
26
27         "repeating the same password",
28         "someuser@EXAMPLE.ORG",
29         "password",
30         0,
31         "Password was previously used",
32     },
33     {
34
35         "different password works",
36         "someuser@EXAMPLE.ORG",
37         "password2",
38         0,
39         NULL,
40     },
41     {
42
43         "now that one fails",
44         "someuser@EXAMPLE.ORG",
45         "password2",
46         0,
47         "Password was previously used",
48     },
49     {
50
51         "previous password still fails",
52         "someuser@EXAMPLE.ORG",
53         "password",
54         0,
55         "Password was previously used",
56     },
57     {
58
59         "succeeds for different user",
60         "test@EXAMPLE.ORG",
61         "password",
62         0,
63         NULL,
64     },
65     {
66
67         "based on principal",
68         "someuser@EXAMPLE.ORG",
69         "someuser",
70         0,
71         "Password based on username or principal",
72     },
73 };