openpgpkey-records.toml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # OPENPGPKEY record successes
  2. [[cmd]]
  3. name = "Running with ‘openpgpkey.example’ prints the correct OPENPGPKEY record"
  4. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} OPENPGPKEY openpgpkey.example"
  5. stdout = { file = "outputs/openpgpkey.example.ansitxt" }
  6. stderr = { empty = true }
  7. status = 0
  8. tags = [ "openpgpkey", "madns" ]
  9. # OPENPGPKEY record successes (JSON)
  10. [[cmd]]
  11. name = "Running with ‘openpgpkey.example --json’ prints the correct OPENPGPKEY record structure"
  12. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} OPENPGPKEY openpgpkey.example --json | jq"
  13. stdout = { file = "outputs/openpgpkey.example.json" }
  14. stderr = { empty = true }
  15. status = 0
  16. tags = [ "openpgpkey", "madns", "json" ]
  17. # OPENPGPKEY record invalid packets
  18. [[cmd]]
  19. name = "Running with ‘empty.openpgpkey.invalid’ displays a record length error"
  20. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} OPENPGPKEY empty.openpgpkey.invalid"
  21. stdout = { empty = true }
  22. stderr = { string = "Error [protocol]: Malformed packet: record length should be at least 1, got 0" }
  23. status = 1
  24. tags = [ "openpgpkey", "madns" ]
  25. [[cmd]]
  26. name = "Running with ‘incomplete.openpgpkey.invalid’ displays a protocol error"
  27. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} OPENPGPKEY incomplete.openpgpkey.invalid"
  28. stdout = { empty = true }
  29. stderr = { string = "Error [protocol]: Malformed packet: insufficient data" }
  30. status = 1
  31. tags = [ "openpgpkey", "madns" ]