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 1 commit
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
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,18 @@ Prior to running the tests locally, ensure you have the following environmental
- `JUJU_PASSWORD`
- `JUJU_CA_CERT`

### 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.

### Testing
anvial marked this conversation as resolved.
Show resolved Hide resolved

```shell

For example, here they are set using the currently active controller:

```shell
Expand Down