1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- # NAPTR record successes
- [[cmd]]
- name = "Running with ‘naptr.example’ prints the correct NAPTR record"
- shell = "dog --colour=always --tcp @madns.binarystar.systems:5301 NAPTR naptr.example"
- stdout = { file = "outputs/naptr.example.ansitxt" }
- stderr = { empty = true }
- status = 0
- tags = [ "naptr", "madns" ]
- [[cmd]]
- name = "Running with ‘bad-regex.naptr.example’ still prints the correct NAPTR record"
- shell = "dog --colour=always --tcp @madns.binarystar.systems:5301 NAPTR bad-regex.naptr.example"
- stdout = { file = "outputs/bad-regex.naptr.example.ansitxt" }
- stderr = { empty = true }
- status = 0
- tags = [ "naptr", "madns" ]
- # NAPTR record successes (JSON)
- [[cmd]]
- name = "Running with ‘naptr.example’ prints the correct NAPTR record structure"
- shell = "dog --colour=always --tcp @madns.binarystar.systems:5301 NAPTR naptr.example --json | jq"
- stdout = { file = "outputs/naptr.example.json" }
- stderr = { empty = true }
- status = 0
- tags = [ "naptr", "madns", "json" ]
- # NAPTR record invalid packets
- [[cmd]]
- name = "Running with ‘empty.naptr.invalid’ displays a protocol error"
- shell = "dog --colour=always --tcp @madns.binarystar.systems:5301 NAPTR empty.naptr.invalid"
- stdout = { empty = true }
- stderr = { string = "Error [protocol]: Malformed packet: insufficient data" }
- status = 1
- tags = [ "naptr", "madns" ]
- [[cmd]]
- name = "Running with ‘incomplete.naptr.invalid’ displays a protocol error"
- shell = "dog --colour=always --tcp @madns.binarystar.systems:5301 NAPTR incomplete.naptr.invalid"
- stdout = { empty = true }
- stderr = { string = "Error [protocol]: Malformed packet: insufficient data" }
- status = 1
- tags = [ "naptr", "madns" ]
|