Skip to content

Commit

Permalink
Merge pull request juju#16373 from barrettj12/test-env-bootstrap
Browse files Browse the repository at this point in the history
juju#16373

The distinction between `BOOTSTRAP_CLOUD` and `BOOTSTRAP_PROVIDER` can be quite confusing (I hope I've got it right!), so worth documenting what these mean.

Sorry about the diff.
  • Loading branch information
jujubot authored Oct 4, 2023
2 parents 2ce7644 + 1803277 commit ad91d61
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions tests/ENV.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ The following is a list of environment variables that are used to control
behaviour in the Bash tests. This list may not be complete, and as always, the
definitive source is the code.

| Variable name | Description |
|-----------------------------|-------------------------------------------------------------------------------|
| `BOOTSTRAP_ADDITIONAL_ARGS` | Additional arguments passed to `juju bootstrap`. |
| `BOOTSTRAP_ARCH` | Architecture to bootstrap on - passed to `--bootstrap-constraints`. |
| `BOOTSTRAP_REUSE` | Reuse an existing controller when asked to bootstrap (true/false). |
| `BOOTSTRAP_REUSE_LOCAL` | The name of a local controller to reuse for testing. Set using the `-l` flag. |
| `BOOTSTRAP_SERIES` | Series to use for the controller. Set using the `-S` flag. |
| `KILL_CONTROLLER` | If `'true'`, controllers will be forcibly killed during teardown. |
| `MODEL_ARCH` | Will be set as a model constraint on newly added models. |
| `OPERATOR_IMAGE_ACCOUNT` | Passed as the value of `--config caas-image-repo` when bootstrapping. |
| `TEST_INSPECT` | If set, pause before teardown to allow inspection of the controller. |
| Variable name | Description |
|-----------------------------|------------------------------------------------------------------------------------|
| `BOOTSTRAP_ADDITIONAL_ARGS` | Additional arguments passed to `juju bootstrap`. |
| `BOOTSTRAP_ARCH` | Architecture to bootstrap on - passed to `--bootstrap-constraints`. |
| `BOOTSTRAP_CLOUD` | The cloud to use when bootstrapping (i.e. the first argument to `juju bootstrap`). |
| `BOOTSTRAP_PROVIDER` | The provider to use when bootstrapping (see the `provider` package). |
| `BOOTSTRAP_REUSE` | Reuse an existing controller when asked to bootstrap (true/false). |
| `BOOTSTRAP_REUSE_LOCAL` | The name of a local controller to reuse for testing. Set using the `-l` flag. |
| `BOOTSTRAP_SERIES` | Series to use for the controller. Set using the `-S` flag. |
| `KILL_CONTROLLER` | If `'true'`, controllers will be forcibly killed during teardown. |
| `MODEL_ARCH` | Will be set as a model constraint on newly added models. |
| `OPERATOR_IMAGE_ACCOUNT` | Passed as the value of `--config caas-image-repo` when bootstrapping. |
| `TEST_INSPECT` | If set, pause before teardown to allow inspection of the controller. |

0 comments on commit ad91d61

Please sign in to comment.