aboutsummaryrefslogtreecommitdiffstats
path: root/tests/json/t-keylist-secret.out.json
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2018-11-14 14:15:21 +0000
committerAndre Heinecke <[email protected]>2018-11-14 14:15:21 +0000
commitdd4b80a5f640232bb44eb825ff5a74ec295fad10 (patch)
treebc0be5ea4e6064aecea3070841b3d1345bb42814 /tests/json/t-keylist-secret.out.json
parenttests,json: Add wildcard string matching (diff)
downloadgpgme-dd4b80a5f640232bb44eb825ff5a74ec295fad10.tar.gz
gpgme-dd4b80a5f640232bb44eb825ff5a74ec295fad10.zip
tests,json: Add the bulk of tests
* t-json.c (tests): Register new tests. * t-createkey.in.json, t-createkey.out.json, t-decrypt-verify.in.json, t-decrypt-verify.out.json, t-decrypt.in.json, t-decrypt.out.json, t-delete.in.json, t-delete.out.json, t-encrypt-sign.in.json, t-encrypt-sign.out.json, t-encrypt.in.json, t-encrypt.out.json, t-export-secret-info.in.json, t-export-secret-info.out.json, t-export.in.json, t-export.out.json, t-json.c, t-keylist-secret.in.json, t-keylist-secret.out.json, t-keylist.in.json, t-keylist.out.json, t-verify.in.json, t-verify.out.json, t-version.in.json, t-version.out.json: New. -- Except for help and getmore there is now a test for each command.
Diffstat (limited to 'tests/json/t-keylist-secret.out.json')
-rw-r--r--tests/json/t-keylist-secret.out.json163
1 files changed, 163 insertions, 0 deletions
diff --git a/tests/json/t-keylist-secret.out.json b/tests/json/t-keylist-secret.out.json
new file mode 100644
index 00000000..5da20dbe
--- /dev/null
+++ b/tests/json/t-keylist-secret.out.json
@@ -0,0 +1,163 @@
+{
+ "keys": [{
+ "revoked": false,
+ "expired": false,
+ "disabled": false,
+ "invalid": false,
+ "can_encrypt": true,
+ "can_sign": true,
+ "can_certify": true,
+ "can_authenticate": true,
+ "secret": true,
+ "is_qualified": false,
+ "protocol": "OpenPGP",
+ "fingerprint": "A0FF4590BB6122EDEF6E3C542D727CC768697734",
+ "subkeys": [{
+ "revoked": false,
+ "expired": false,
+ "disabled": false,
+ "invalid": false,
+ "can_encrypt": false,
+ "can_sign": true,
+ "can_certify": true,
+ "can_authenticate": true,
+ "is_qualified": false,
+ "is_cardkey": false,
+ "is_de_vs": false,
+ "pubkey_algo_name": "DSA",
+ "pubkey_algo_string": "dsa1024",
+ "keyid": "2D727CC768697734",
+ "keygrip": "76F7E2B35832976B50A27A282D9B87E44577EB66",
+ "pubkey_algo": 17,
+ "length": 1024,
+ "timestamp": 920882846,
+ "expires": 0
+ }, {
+ "revoked": false,
+ "expired": false,
+ "disabled": false,
+ "invalid": false,
+ "can_encrypt": true,
+ "can_sign": false,
+ "can_certify": false,
+ "can_authenticate": false,
+ "is_qualified": false,
+ "is_cardkey": false,
+ "is_de_vs": false,
+ "pubkey_algo_name": "ELG-E",
+ "pubkey_algo_string": "elg1024",
+ "keyid": "6AE6D7EE46A871F8",
+ "keygrip": "A0747D5F9425E6664F4FFBEED20FBCA79FDED2BD",
+ "pubkey_algo": 16,
+ "length": 1024,
+ "timestamp": 920882959,
+ "expires": 0
+ }],
+ "userids": [{
+ "revoked": false,
+ "invalid": false,
+ "validity": "unknown",
+ "uid": "Alfa Test (demo key) <[email protected]>",
+ "name": "Alfa Test",
+ "email": "[email protected]",
+ "comment": "demo key",
+ "address": "[email protected]"
+ }, {
+ "revoked": false,
+ "invalid": false,
+ "validity": "unknown",
+ "uid": "Alpha Test (demo key) <[email protected]>",
+ "name": "Alpha Test",
+ "email": "[email protected]",
+ "comment": "demo key",
+ "address": "[email protected]"
+ }, {
+ "revoked": false,
+ "invalid": false,
+ "validity": "unknown",
+ "uid": "Alice (demo key)",
+ "name": "Alice",
+ "email": "",
+ "comment": "demo key",
+ "origin": 0,
+ "last_update": 0
+ }]
+ }, {
+ "revoked": false,
+ "expired": false,
+ "disabled": false,
+ "invalid": false,
+ "can_encrypt": true,
+ "can_sign": true,
+ "can_certify": true,
+ "can_authenticate": true,
+ "secret": true,
+ "is_qualified": false,
+ "protocol": "OpenPGP",
+ "fingerprint": "D695676BDCEDCC2CDD6152BCFE180B1DA9E3B0B2",
+ "owner_trust": "unknown",
+ "origin": 0,
+ "last_update": 0,
+ "subkeys": [{
+ "revoked": false,
+ "expired": false,
+ "disabled": false,
+ "invalid": false,
+ "can_encrypt": false,
+ "can_sign": true,
+ "can_certify": true,
+ "can_authenticate": true,
+ "secret": false,
+ "is_qualified": false,
+ "is_cardkey": false,
+ "is_de_vs": false,
+ "pubkey_algo_name": "DSA",
+ "pubkey_algo_string": "dsa1024",
+ "keyid": "FE180B1DA9E3B0B2",
+ "keygrip": "6D62909991D2331E5F4F605BC4DD738F30E6D26B",
+ "pubkey_algo": 17,
+ "length": 1024,
+ "timestamp": 920888034,
+ "expires": 0
+ }, {
+ "revoked": false,
+ "expired": false,
+ "disabled": false,
+ "invalid": false,
+ "can_encrypt": true,
+ "can_sign": false,
+ "can_certify": false,
+ "can_authenticate": false,
+ "secret": false,
+ "is_qualified": false,
+ "is_cardkey": false,
+ "is_de_vs": false,
+ "pubkey_algo_name": "ELG-E",
+ "pubkey_algo_string": "elg1024",
+ "keyid": "5381EA4EE29BA37F",
+ "keygrip": "6BBF325FADDC1109AE36CD535CA77AB9CFADD1F2",
+ "pubkey_algo": 16,
+ "length": 1024,
+ "timestamp": 920888071,
+ "expires": 0
+ }],
+ "userids": [{
+ "revoked": false,
+ "invalid": false,
+ "validity": "unknown",
+ "uid": "Bob (demo key)",
+ "name": "Bob",
+ "email": "",
+ "comment": "demo key"
+ }, {
+ "revoked": false,
+ "invalid": false,
+ "validity": "unknown",
+ "uid": "Bravo Test (demo key) <[email protected]>",
+ "name": "Bravo Test",
+ "email": "[email protected]",
+ "comment": "demo key",
+ "address": "[email protected]"
+ }]
+ }]
+}