mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
webui OTP token test data added
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
parent
86ff28fac8
commit
1ef91701e9
43
install/ui/test/data/otptoken_add.json
Normal file
43
install/ui/test/data/otptoken_add.json
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"error": null,
|
||||
"id": null,
|
||||
"result": {
|
||||
"result": {
|
||||
"dn": "ipatokenuniqueid=10bd43b5-3204-4695-9225-91064f6c77b3,cn=otp,dc=example,dc=com",
|
||||
"ipatokenmodel": [
|
||||
"totp"
|
||||
],
|
||||
"ipatokenotpalgorithm": [
|
||||
"sha1"
|
||||
],
|
||||
"ipatokenotpdigits": [
|
||||
"6"
|
||||
],
|
||||
"ipatokenotpkey": [
|
||||
{
|
||||
"__base64__": "2TUYXOVTaZf/Og=="
|
||||
}
|
||||
],
|
||||
"ipatokentotpclockoffset": [
|
||||
"0"
|
||||
],
|
||||
"ipatokentotptimestep": [
|
||||
"30"
|
||||
],
|
||||
"ipatokenuniqueid": [
|
||||
"footoken"
|
||||
],
|
||||
"ipatokenvendor": [
|
||||
"FreeIPA"
|
||||
],
|
||||
"objectclass": [
|
||||
"top",
|
||||
"ipatokentotp",
|
||||
"ipatoken"
|
||||
],
|
||||
"uri": "otpauth://totp/EXAMPLE.COM:10bd43b5-3204-4695-9225-91064f6c77b3?digits=6&secret=3E2RQXHFKNUZP7Z2&period=30&algorithm=sha1&issuer=EXAMPLE.COM"
|
||||
},
|
||||
"summary": "Added OTP token \"10bd43b5-3204-4695-9225-91064f6c77b3\"",
|
||||
"value": "10bd43b5-3204-4695-9225-91064f6c77b3"
|
||||
}
|
||||
}
|
27
install/ui/test/data/otptoken_batch_del.json
Normal file
27
install/ui/test/data/otptoken_batch_del.json
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"error": null,
|
||||
"id": null,
|
||||
"result": {
|
||||
"count": 1,
|
||||
"messages": [
|
||||
{
|
||||
"code": 13001,
|
||||
"message": "API Version number was not sent, forward compatibility not guaranteed. Assuming server's API version, 2.83",
|
||||
"name": "VersionMissing",
|
||||
"type": "warning"
|
||||
}
|
||||
],
|
||||
"results": [
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"failed": []
|
||||
},
|
||||
"summary": "Deleted OTP token \"10bd43b5-3204-4695-9225-91064f6c77b3\"",
|
||||
"value": [
|
||||
"10bd43b5-3204-4695-9225-91064f6c77b3"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
34
install/ui/test/data/otptoken_batch_mod.json
Normal file
34
install/ui/test/data/otptoken_batch_mod.json
Normal file
@ -0,0 +1,34 @@
|
||||
{
|
||||
"error": null,
|
||||
"id": null,
|
||||
"result": {
|
||||
"count": 1,
|
||||
"results": [
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"description": [
|
||||
"Description"
|
||||
],
|
||||
"ipatokendisabled": [
|
||||
"FALSE"
|
||||
],
|
||||
"ipatokenmodel": [
|
||||
"totp"
|
||||
],
|
||||
"ipatokenowner": [
|
||||
"admin"
|
||||
],
|
||||
"ipatokenuniqueid": [
|
||||
"10bd43b5-3204-4695-9225-91064f6c77b3"
|
||||
],
|
||||
"ipatokenvendor": [
|
||||
"FreeIPA"
|
||||
]
|
||||
},
|
||||
"summary": "Modified OTP token \"10bd43b5-3204-4695-9225-91064f6c77b3\"",
|
||||
"value": "10bd43b5-3204-4695-9225-91064f6c77b3"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
17
install/ui/test/data/otptoken_find_pkeys.json
Normal file
17
install/ui/test/data/otptoken_find_pkeys.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"error": null,
|
||||
"id": null,
|
||||
"result": {
|
||||
"count": 1,
|
||||
"result": [
|
||||
{
|
||||
"dn": "ipatokenuniqueid=10bd43b5-3204-4695-9225-91064f6c77b3,cn=otp,dc=example,dc=com",
|
||||
"ipatokenuniqueid": [
|
||||
"10bd43b5-3204-4695-9225-91064f6c77b3"
|
||||
]
|
||||
}
|
||||
],
|
||||
"summary": "1 OTP token matched",
|
||||
"truncated": false
|
||||
}
|
||||
}
|
57
install/ui/test/data/otptoken_get_records.json
Normal file
57
install/ui/test/data/otptoken_get_records.json
Normal file
@ -0,0 +1,57 @@
|
||||
{
|
||||
"error": null,
|
||||
"id": null,
|
||||
"result": {
|
||||
"count": 1,
|
||||
"results": [
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"description": [
|
||||
"Description"
|
||||
],
|
||||
"dn": "ipatokenuniqueid=10bd43b5-3204-4695-9225-91064f6c77b3,cn=otp,dc=example,dc=com",
|
||||
"ipatokendisabled": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipatokenmodel": [
|
||||
"totp"
|
||||
],
|
||||
"ipatokenotpalgorithm": [
|
||||
"sha1"
|
||||
],
|
||||
"ipatokenotpdigits": [
|
||||
"6"
|
||||
],
|
||||
"ipatokenotpkey": [
|
||||
{
|
||||
"__base64__": "++R6gVcVPHzz3Q=="
|
||||
}
|
||||
],
|
||||
"ipatokenowner": [
|
||||
"admin"
|
||||
],
|
||||
"ipatokentotpclockoffset": [
|
||||
"0"
|
||||
],
|
||||
"ipatokentotptimestep": [
|
||||
"30"
|
||||
],
|
||||
"ipatokenuniqueid": [
|
||||
"10bd43b5-3204-4695-9225-91064f6c77b3"
|
||||
],
|
||||
"ipatokenvendor": [
|
||||
"FreeIPA"
|
||||
],
|
||||
"objectclass": [
|
||||
"top",
|
||||
"ipatokentotp",
|
||||
"ipatoken"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "10bd43b5-3204-4695-9225-91064f6c77b3"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
72
install/ui/test/data/otptoken_mod.json
Normal file
72
install/ui/test/data/otptoken_mod.json
Normal file
@ -0,0 +1,72 @@
|
||||
{
|
||||
"error": null,
|
||||
"id": null,
|
||||
"result": {
|
||||
"messages": [
|
||||
{
|
||||
"code": 13001,
|
||||
"message": "API Version number was not sent, forward compatibility not guaranteed. Assuming server's API version, 2.83",
|
||||
"name": "VersionMissing",
|
||||
"type": "warning"
|
||||
}
|
||||
],
|
||||
"result": {
|
||||
"attributelevelrights": {
|
||||
"aci": "rscwo",
|
||||
"description": "rscwo",
|
||||
"ipatokendisabled": "rscwo",
|
||||
"ipatokenmodel": "rscwo",
|
||||
"ipatokennotafter": "rscwo",
|
||||
"ipatokennotbefore": "rscwo",
|
||||
"ipatokenotpalgorithm": "rscwo",
|
||||
"ipatokenotpdigits": "rscwo",
|
||||
"ipatokenotpkey": "rscwo",
|
||||
"ipatokenowner": "rscwo",
|
||||
"ipatokenserial": "rscwo",
|
||||
"ipatokentotpclockoffset": "rscwo",
|
||||
"ipatokentotptimestep": "rscwo",
|
||||
"ipatokenuniqueid": "rscwo",
|
||||
"ipatokenvendor": "rscwo",
|
||||
"nsaccountlock": "rscwo",
|
||||
"objectclass": "rscwo"
|
||||
},
|
||||
"description": [
|
||||
"a"
|
||||
],
|
||||
"dn": "ipatokenuniqueid=10bd43b5-3204-4695-9225-91064f6c77b3,cn=otp,dc=example,dc=com",
|
||||
"ipatokenmodel": [
|
||||
"totp"
|
||||
],
|
||||
"ipatokenotpalgorithm": [
|
||||
"sha1"
|
||||
],
|
||||
"ipatokenotpdigits": [
|
||||
"6"
|
||||
],
|
||||
"ipatokenotpkey": [
|
||||
{
|
||||
"__base64__": "zxQLlzbl+khKOw=="
|
||||
}
|
||||
],
|
||||
"ipatokentotpclockoffset": [
|
||||
"0"
|
||||
],
|
||||
"ipatokentotptimestep": [
|
||||
"30"
|
||||
],
|
||||
"ipatokenuniqueid": [
|
||||
"10bd43b5-3204-4695-9225-91064f6c77b3"
|
||||
],
|
||||
"ipatokenvendor": [
|
||||
"FreeIPA"
|
||||
],
|
||||
"objectclass": [
|
||||
"top",
|
||||
"ipatokentotp",
|
||||
"ipatoken"
|
||||
]
|
||||
},
|
||||
"summary": "Modified OTP token \"10bd43b5-3204-4695-9225-91064f6c77b3\"",
|
||||
"value": "10bd43b5-3204-4695-9225-91064f6c77b3"
|
||||
}
|
||||
}
|
51
install/ui/test/data/otptoken_show.json
Normal file
51
install/ui/test/data/otptoken_show.json
Normal file
@ -0,0 +1,51 @@
|
||||
{
|
||||
"error": null,
|
||||
"id": null,
|
||||
"result": {
|
||||
"result": {
|
||||
"description": [
|
||||
"Description"
|
||||
],
|
||||
"dn": "ipatokenuniqueid=10bd43b5-3204-4695-9225-91064f6c77b3,cn=otp,dc=example,dc=com",
|
||||
"ipatokendisabled": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipatokenmodel": [
|
||||
"totp"
|
||||
],
|
||||
"ipatokenotpalgorithm": [
|
||||
"sha1"
|
||||
],
|
||||
"ipatokenotpdigits": [
|
||||
"6"
|
||||
],
|
||||
"ipatokenotpkey": [
|
||||
{
|
||||
"__base64__": "++R6gVcVPHzz3Q=="
|
||||
}
|
||||
],
|
||||
"ipatokenowner": [
|
||||
"admin"
|
||||
],
|
||||
"ipatokentotpclockoffset": [
|
||||
"0"
|
||||
],
|
||||
"ipatokentotptimestep": [
|
||||
"30"
|
||||
],
|
||||
"ipatokenuniqueid": [
|
||||
"10bd43b5-3204-4695-9225-91064f6c77b3"
|
||||
],
|
||||
"ipatokenvendor": [
|
||||
"FreeIPA"
|
||||
],
|
||||
"objectclass": [
|
||||
"top",
|
||||
"ipatokentotp",
|
||||
"ipatoken"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "10bd43b5-3204-4695-9225-91064f6c77b3"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user