trafficserver icon indicating copy to clipboard operation
trafficserver copied to clipboard

Tools & Test: Add autest to validate `traffic_ctl config` output and also add a new `--default` option.

Open brbzull0 opened this issue 1 year ago • 0 comments

--default option can be used ues alonside with --records to display the default value alonside the current.

This also includes a few test cases to make sure the output generated by traffic_ctl does not break. This should cover what was added by https://github.com/apache/trafficserver/pull/11650

exmaple:

  $ traffic_ctl config match proxy.config.diags.debug --records --default
  records:
    diags:
      debug:
        client_ip: "null"  # default: null
        enabled: 1  # default: 0
        tags: rpc  # default: http|dns
        throttling_interval_msec: 0  # default: 0

brbzull0 avatar Aug 26 '24 12:08 brbzull0