gpgme/tests/json/t-keylist.out.json
Andre Heinecke dd4b80a5f6
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.
2018-11-14 15:15:21 +01:00

66 lines
2.4 KiB
JSON

{
"keys": [{
"revoked": false,
"expired": false,
"disabled": false,
"invalid": false,
"can_encrypt": true,
"can_sign": true,
"can_certify": true,
"can_authenticate": true,
"secret": false,
"is_qualified": false,
"protocol": "OpenPGP",
"fingerprint": "23FD347A419429BACCD5E72D6BC4778054ACD246",
"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",
"pubkey_algo": 17,
"length": 1024,
"timestamp": 920892875,
"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",
"pubkey_algo": 16,
"length": 1024,
"timestamp": 920892914,
"expires": 0
}],
"userids": [{
"revoked": false,
"invalid": false,
"validity": "unknown",
"uid": "Zulu Test (demo key) <zulu@example.net>",
"name": "Zulu Test",
"email": "zulu@example.net",
"comment": "demo key",
"address": "zulu@example.net"
}]
}]
}