1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- # CAA record successes
- [[cmd]]
- name = "Running with ‘caa.example’ prints the correct CAA record"
- shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA caa.example"
- stdout = { file = "outputs/caa.example.ansitxt" }
- stderr = { empty = true }
- status = 0
- tags = [ "caa", "madns" ]
- [[cmd]]
- name = "Running with ‘critical.caa.example’ prints the correct CAA record with the flag"
- shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA critical.caa.example"
- stdout = { file = "outputs/critical.caa.example.ansitxt" }
- stderr = { empty = true }
- status = 0
- tags = [ "caa", "madns" ]
- [[cmd]]
- name = "Running with ‘others.caa.example’ prints the correct CAA record and ignores the flags"
- shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA others.caa.example"
- stdout = { file = "outputs/others.caa.example.ansitxt" }
- stderr = { empty = true }
- status = 0
- tags = [ "caa", "madns" ]
- # CAA record successes (JSON)
- [[cmd]]
- name = "Running with ‘caa.example --json’ prints the correct CAA record structure"
- shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA caa.example --json | jq"
- stdout = { file = "outputs/caa.example.json" }
- stderr = { empty = true }
- status = 0
- tags = [ "caa", "madns", "json" ]
- [[cmd]]
- name = "Running with ‘critical.caa.example --json’ prints the correct CAA record structurewith the flag"
- shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA critical.caa.example --json | jq"
- stdout = { file = "outputs/critical.caa.example.json" }
- stderr = { empty = true }
- status = 0
- tags = [ "caa", "madns", "json" ]
- [[cmd]]
- name = "Running with ‘others.caa.example --json’ prints the correct CAA record structure and ignores the flags"
- shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA others.caa.example --json | jq"
- stdout = { file = "outputs/others.caa.example.json" }
- stderr = { empty = true }
- status = 0
- tags = [ "caa", "madns", "json" ]
- # CAA record invalid packets
- [[cmd]]
- name = "Running with ‘empty.caa.invalid’ displays a protocol error"
- shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA empty.caa.invalid"
- stdout = { empty = true }
- stderr = { string = "Error [protocol]: Malformed packet: insufficient data" }
- status = 1
- tags = [ "caa", "madns" ]
- [[cmd]]
- name = "Running with ‘incomplete.caa.invalid’ displays a protocol error"
- shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA incomplete.caa.invalid"
- stdout = { empty = true }
- stderr = { string = "Error [protocol]: Malformed packet: insufficient data" }
- status = 1
- tags = [ "caa", "madns" ]
|