Skip to content
/ thd Public

Two Headed Dog - Diff tool to find regressions between json over http endpoints

License

Notifications You must be signed in to change notification settings

ViaEuropa/thd

Repository files navigation

Two Headed Dog - thd

Build GitHub Release NuGet version License

Getting started

Installation

dotnet tool install --global thd

thd -h

Basic Compare

Create a CSV file named requests.csv

  • The last columns are considered as paths to be appended to the base URL.
  • All other columns are considered as variables to be used in the base URL template and will be referenced as column_1, column_2, etc.
id,subdomain,path
1,foo,/endpoint1
2,bar,/version
 export THD_EXPECTED_AUTHORIZATION_HEADER="Bearer TokenForTheExpectedService"
 export THD_REQUEST_ACTUAL_AUTHORIZATION_HEADER="Bearer TokenForTheActualService"
 
thd compare requests.csv \
  --expected-base-url "https://{{ column_2 }}.api.localhost:9094" \
  --actual-base-url "https://{{ column_2 }}.api.localhost:9094/v2"

About

Two Headed Dog - Diff tool to find regressions between json over http endpoints

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages