workloads / nomad-pack-registry

Nomad Pack Registry
https://github.com/workloads/nomad-pack-registry
2 stars 0 forks source link

add support for running `make test` from URL #22

Open ksatirli opened 7 months ago

ksatirli commented 7 months ago

Currently, running make test invokes newman with a predefined, Pack-specific path:

newman run "$(DIR_PACKS)/$(strip $(pack))/tests/newman.json" \

While this works for a file-system based Postman Collection, it makes it more cumbersome to collaborate with other contributors to a Postman Collection, as the process currently is:

1.) Update Postman Collection 2.) Export Postman Collection to packs/<Pack name>/tests/newman.json 3.) Commit new / changed file

By adding support for URL, and defining a check (if URL is set, default to that, else use file-system, with an override of e.g. POSTMAN_LOCAL_ONLY), we can depend on Postman Collections that are stored remotely.