diff --git a/tests/json/t-config-opt.in.json b/tests/json/t-config-opt.in.json new file mode 100644 index 00000000..b9498039 --- /dev/null +++ b/tests/json/t-config-opt.in.json @@ -0,0 +1,5 @@ +{ + "op": "config_opt", + "component": "gpg", + "option": "default-key" +} diff --git a/tests/json/t-config-opt.out.json b/tests/json/t-config-opt.out.json new file mode 100644 index 00000000..57f11588 --- /dev/null +++ b/tests/json/t-config-opt.out.json @@ -0,0 +1,6 @@ +{ + "option": { + "name": "default-key", + "argname": "NAME" + } +} diff --git a/tests/json/t-import.in.json b/tests/json/t-import.in.json new file mode 100644 index 00000000..20b94f06 --- /dev/null +++ b/tests/json/t-import.in.json @@ -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" +} diff --git a/tests/json/t-import.out.json b/tests/json/t-import.out.json new file mode 100644 index 00000000..1f029af5 --- /dev/null +++ b/tests/json/t-import.out.json @@ -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 + }] + } +} diff --git a/tests/json/t-sign.in.json b/tests/json/t-sign.in.json new file mode 100644 index 00000000..9e04442f --- /dev/null +++ b/tests/json/t-sign.in.json @@ -0,0 +1,8 @@ +{ + "op": "sign", + "keys": "A0FF4590BB6122EDEF6E3C542D727CC768697734", + "sender": "alpha@example.net", + "data": "Hello world", + "armor": true, + "base64": false +} diff --git a/tests/json/t-sign.out.json b/tests/json/t-sign.out.json new file mode 100644 index 00000000..37d7f68d --- /dev/null +++ b/tests/json/t-sign.out.json @@ -0,0 +1,5 @@ +{ + "type": "signature", + "base64": false, + "data": "*" +}