12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- # OPT record successes
- [[cmd]]
- name = "Running with ‘opt.example’ prints the correct OPT record"
- shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} A opt.example --edns=show"
- stdout = { file = "outputs/opt.example.ansitxt" }
- stderr = { empty = true }
- status = 0
- tags = [ "opt", "madns" ]
- [[cmd]]
- name = "Running with ‘do-flag.opt.example’ prints the correct OPT record"
- shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} A do-flag.opt.example --edns=show"
- stdout = { file = "outputs/do-flag.opt.example.ansitxt" }
- stderr = { empty = true }
- status = 0
- tags = [ "opt", "madns" ]
- [[cmd]]
- name = "Running with ‘other-flags.opt.example’ prints the correct OPT record"
- shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} A other-flags.opt.example --edns=show"
- stdout = { file = "outputs/other-flags.opt.example.ansitxt" }
- stderr = { empty = true }
- status = 0
- tags = [ "opt", "madns" ]
- [[cmd]]
- name = "Running with ‘named.opt.invalid’ prints the correct OPT record"
- shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} A named.opt.invalid --edns=show"
- stdout = { file = "outputs/named.opt.invalid.ansitxt" }
- stderr = { empty = true }
- status = 0
- tags = [ "opt", "madns" ]
- # OPT record successes (JSON)
- [[cmd]]
- name = "Running with ‘opt.example --json’ prints the correct OPT record structure"
- shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} A opt.example --edns=show --json | jq"
- stdout = { file = "outputs/opt.example.json" }
- stderr = { empty = true }
- status = 0
- tags = [ "opt", "madns", "json" ]
- [[cmd]]
- name = "Running with ‘do-flag.opt.example --json’ prints the correct OPT record structure"
- shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} A do-flag.opt.example --edns=show --json | jq"
- stdout = { file = "outputs/do-flag.opt.example.json" }
- stderr = { empty = true }
- status = 0
- tags = [ "opt", "madns", "json" ]
- [[cmd]]
- name = "Running with ‘other-flags.opt.example --json’ prints the correct OPT record structure"
- shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} A other-flags.opt.example --edns=show --json | jq"
- stdout = { file = "outputs/other-flags.opt.example.json" }
- stderr = { empty = true }
- status = 0
- tags = [ "opt", "madns", "json" ]
- [[cmd]]
- name = "Running with ‘named.opt.invalid --json’ prints the correct OPT record structure"
- shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} A named.opt.invalid --edns=show --json | jq"
- stdout = { file = "outputs/named.opt.invalid.json" }
- stderr = { empty = true }
- status = 0
- tags = [ "opt", "madns", "json" ]
- # OPT record invalid packets
- [[cmd]]
- name = "Running with ‘incomplete.opt.invalid’ displays a record length error"
- shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} A incomplete.opt.invalid"
- stdout = { empty = true }
- stderr = { string = "Error [protocol]: Malformed packet: insufficient data" }
- status = 1
- tags = [ "opt", "madns" ]
|