sshfp-records.toml 1.4 KB

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