api-diff icon indicating copy to clipboard operation
api-diff copied to clipboard

Compare against basline not working

Open Kuhlig opened this issue 3 years ago • 0 comments

HI

Thanks for this tool . I almost got it to work but the compare with baseline won't do it.

These 2 Commands ARE working, so I'm pretty sure the config.hjson is correct ..

API_DIFF_CONFIG=config.hjson api-diff \
  --old.dev \
  --old.key NOOONNNNNNNNOOO=\
  --new.dev \
  --new.key NOOONNNNNNNNOOO=\
  --input_queries sqmsII.txt
  API_DIFF_CONFIG=config.hjson api-diff generate-baseline \
  --old.dev \
  --old.key NOOONNNNNNNNOOO=\
  --input_queries sqmsII.txt \
   > addresses-baseline.json 

But both of these commands give me an error

API_DIFF_CONFIG=config.hjson api-diff \
  --new.dev \
  --new.key NOOONNNNNNNNOOO=\
  --input_json_baseline addresses-baseline.json

PROCESS FAILED Could not find host via arguments specified { "extra_params": [], "key_type": "test" }

API_DIFF_CONFIG=config.hjson api-diff \
  --new.host https://XXX.bpmspace.net \
  --new.key NOOONNNNNNNNOOO=\
  --input_json_baseline addresses-baseline.json

PROCESS FAILED Could not find host via arguments specified { "extra_params": [], "key_type": "test" }

Also Without Config file I get an error (sliltly different)

api-diff \
  --new.host https://XXX.bpmspace.net \
  --new.key NOOONNNNNNNNOOO=\
  --input_json_baseline addresses-baseline.json

PROCESS FAILED Could not find host via arguments specified { "extra_params": [] }

Can you please help me? thanks rob

Kuhlig avatar Feb 05 '22 09:02 Kuhlig