tree: 82540649ddde74b7246a9742d3ef309ddc97bbb3 [path history] [tgz]
  1. cfg_test.pl
  2. Readme.md
  3. test.config
test/traffic_ops_cfg/Readme.md

Traffic Ops Config File / Snapshot Compare

This test allows you to compare all generated config files (from a sample of caches across all profiles) and CDN snapshots (CRConfig.json) from 2 instances of Traffic Ops. For example, you could compare config files / snapshots between 2 versions of Traffic Ops.

Prerequisites

  1. Make sure the data in your 2 Traffic Ops databases are synced to avoid getting false positives.
  2. Modify test.config with proper settings. Set perform_snapshot=1 if you want to force a snapshot in both Traffic Ops instances.

Running the Test

  1. ./cfg_test.pl getref test.config - files from Traffic Ops #1 go into /tmp/files/ref
  2. ./cfg_test.pl getnew test.config - files from Traffic Ops #2 go into /tmp/files/new
  3. ./cfg_test.pl compare test.config - all not ok lines should be explained.

It will compare all config files for all profiles, including the CRConfig.json.