This became a larger PR than originally envisioned as there were a number of things which went into it at once. The primary goal was to simplify test configuration so that developers can simply do
$ rebar3 proper
to run the PropEr tests against an actual Bitbucket server, without having to set any environment variables.
Various other things which ended up here:
Documented how to run these tests against an existing Bitbucket Server (e.g. Klarna's internal staging server)
When cloning a repo in order to do first-time initialization of a repo during test setup, fetch the clone URL using the rest api instead of trying to reconstruct it from the rest api url itself.
Try to validate the license, so when using a time-bomb license, tests will fail with a clear reason instead of weird failures inside PropEr.
This became a larger PR than originally envisioned as there were a number of things which went into it at once. The primary goal was to simplify test configuration so that developers can simply do
to run the PropEr tests against an actual Bitbucket server, without having to set any environment variables.
Various other things which ended up here:
BB_STAGING_*
->BITBUCKET_*
.