openpgpkey-records.toml 1.1 KB

12345678910111213141516171819202122232425262728
  1. # OPENPGPKEY record successes
  2. [[cmd]]
  3. name = "Running with ‘openpgpkey.example’ prints the correct OPENPGPKEY record"
  4. shell = "dog --colour=always --tcp @madns.binarystar.systems:5301 OPENPGPKEY openpgpkey.example"
  5. stdout = { file = "outputs/openpgpkey.example.ansitxt" }
  6. stderr = { empty = true }
  7. status = 0
  8. tags = [ "openpgpkey", "madns" ]
  9. # OPENPGPKEY record invalid packets
  10. [[cmd]]
  11. name = "Running with ‘empty.openpgpkey.invalid’ displays a record length error"
  12. shell = "dog --colour=always --tcp @madns.binarystar.systems:5301 OPENPGPKEY empty.openpgpkey.invalid"
  13. stdout = { empty = true }
  14. stderr = { string = "Error [protocol]: Malformed packet: record length should be at least 1, got 0" }
  15. status = 1
  16. tags = [ "openpgpkey", "madns" ]
  17. [[cmd]]
  18. name = "Running with ‘incomplete.openpgpkey.invalid’ displays a protocol error"
  19. shell = "dog --colour=always --tcp @madns.binarystar.systems:5301 OPENPGPKEY incomplete.openpgpkey.invalid"
  20. stdout = { empty = true }
  21. stderr = { string = "Error [protocol]: Malformed packet: insufficient data" }
  22. status = 1
  23. tags = [ "openpgpkey", "madns" ]