tests,json: Add more tests
* t-config-opt.in.json, t-config-opt.out.json, t-import.in.json, t-import.out.json, t-sign.in.json, t-sign.out.json: New. -- These should actually have been in a previous commit as they are already registered.
This commit is contained in:
parent
88b7221eb7
commit
d0087d45f0
5
tests/json/t-config-opt.in.json
Normal file
5
tests/json/t-config-opt.in.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"op": "config_opt",
|
||||||
|
"component": "gpg",
|
||||||
|
"option": "default-key"
|
||||||
|
}
|
6
tests/json/t-config-opt.out.json
Normal file
6
tests/json/t-config-opt.out.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"option": {
|
||||||
|
"name": "default-key",
|
||||||
|
"argname": "NAME"
|
||||||
|
}
|
||||||
|
}
|
4
tests/json/t-import.in.json
Normal file
4
tests/json/t-import.in.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"op": "import",
|
||||||
|
"data": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQGiBDbjs5oRBACjAxqGzA6j190iiN/1vJvS5jYLQ1H3xxhzXdZ6ZxjPJkslX1ox\nFqBINhjzBJnV9/7b1FFe5089NiCcGUVZa2xD3Vu+niLTAGNTQeNy6Y0E6wEfvplQ\nLJbpVGOmuVeZyShHNCKjrsZFtS1mr7o19SUb5QWS3gZHabFTbmhibcFBXwCg36qG\nVAnGcZzvnUTGpRy3xjp+zuED/2qTJNpnPhicKSksVwb6EJFXH7mQSZlyblAnOAVF\nMx19GUijW4MWP5FUdcTd5KzIDgkenRLBrpCLIFVkQ4/baP/hOiCLOmCoRu3xnFyo\nRPM/Jn94Qy3Jo2wigwkhQU+zyOU5C85QBD9ctkbYp/0mu9bpxmYTchHwD1v3dXUX\nEVajA/9lnEz1GiI0bwKpm8VKXp0YYP5hea8Jh5fNVb1QW2QqGd+XNHnRGSqX5smG\nyrs+xoYxD8+jv1FhmGaSv+6+n+JBVK4TuWrQpZ0cgZL5jZnX27TOYXeY4d5YKgE+\n7ZO57TwCIfF/P6puflGm+t5GcFwj4kkfohMEaeNhm1S+xf29q7QrVmljdG9yIFRl\nc3QgKGRlbW8ga2V5KSA8dmljdG9yQGV4YW1wbGUub3JnPohVBBMRAgAVBQI247Oa\nAwsKAwMVAwIDFgIBAheAAAoJEEevS2lh8EeEzEkAoMA+KfY9bA8EdfvWwa8zUM1S\nMs5rAKDS+6X3HVuCaLtVxzXOob+DKbB7b7kBDQQ247O+EAQAh5FAgdvaTJL3jBGc\njYiiJosxeTWf3L/dUY99fZN8R39DSVoUKf9Rt/EsS5DywXVnKAeJiUTYw8lbMRVF\n70VhSDHpMC9KtbB0lk3CcAqULPiyirT5g9ywN24W7k0naWIJisttUh+Hqbm6gc5P\nz9Nfd5ll8x4Ehi3lKE6Nze3gUNMAAwUD/AtUN1hqwWTTphVZctHq3JaUEb9agmu/\nOcsf24/bq9i8R8FaMwBF4fI5qIimcqAM+2BZ6dvZEdqrVaZR9aHjzchcHmaiI7Zm\nW4gmk+LHFFWf9y7mG8YDKFBXkaBuJpxFb1FIfJpmaLzJmRa76dLqI3A7H2E8dFQa\n/MGsYCa4NmILiEUEGBECAAYFAjbjs74ACgkQR69LaWHwR4RT3QCgnMlRAiGtvL5l\nD4Gdo5F0KEP5zZEAlA6Ri9WmZ9Xiqw5R3Bsg+As8sJ4=\n=FRd4\n-----END PGP PUBLIC KEY BLOCK-----\n"
|
||||||
|
}
|
22
tests/json/t-import.out.json
Normal file
22
tests/json/t-import.out.json
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"result": {
|
||||||
|
"considered": 1,
|
||||||
|
"no_user_id": 0,
|
||||||
|
"imported_rsa": 0,
|
||||||
|
"new_user_ids": 0,
|
||||||
|
"new_sub_keys": 0,
|
||||||
|
"new_signatures": 0,
|
||||||
|
"new_revocations": 0,
|
||||||
|
"secret_read": 0,
|
||||||
|
"secret_imported": 0,
|
||||||
|
"secret_unchanged": 0,
|
||||||
|
"skipped_new_keys": 0,
|
||||||
|
"not_imported": 0,
|
||||||
|
"skipped_v3_keys": 0,
|
||||||
|
"imports": [{
|
||||||
|
"fingerprint": "E8143C489C8D41124DC40D0B47AF4B6961F04784",
|
||||||
|
"error_string": "Success",
|
||||||
|
"status": 1
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}
|
8
tests/json/t-sign.in.json
Normal file
8
tests/json/t-sign.in.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"op": "sign",
|
||||||
|
"keys": "A0FF4590BB6122EDEF6E3C542D727CC768697734",
|
||||||
|
"sender": "alpha@example.net",
|
||||||
|
"data": "Hello world",
|
||||||
|
"armor": true,
|
||||||
|
"base64": false
|
||||||
|
}
|
5
tests/json/t-sign.out.json
Normal file
5
tests/json/t-sign.out.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"type": "signature",
|
||||||
|
"base64": false,
|
||||||
|
"data": "*"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user