Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add info about plangenerator to README. #429

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@ If you wish to work on the provider, you'll first need [Go](http://www.golang.or

See also [Building The Provider](#building-the-provider)

### Writing Acceptance Tests
anvial marked this conversation as resolved.
Show resolved Hide resolved

Acceptance tests usually require Terraform plans to be included to the various steps of the test.
This plans can be generated with help of `testing/plangenerator` package. You may use `GetStringFromTemplateWithData`
function to generate a plan from a template. This function will replace the placeholders in the template with the data.

The example can be found in the comments to `GetStringFromTemplateWithData` function.

### Running Acceptance Tests

Prior to running the tests locally, ensure you have the following environmental variables set:

- `JUJU_CONTROLLER_ADDRESSES`
Expand Down