Skip to content

Commit

Permalink
Adds info about plangenerator to README.
Browse files Browse the repository at this point in the history
  • Loading branch information
anvial committed Mar 7, 2024
1 parent fa7ad64 commit dc718ec
Showing 1 changed file with 12 additions and 0 deletions.
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
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
```shell
For example, here they are set using the currently active controller:
```shell
Expand Down

0 comments on commit dc718ec

Please sign in to comment.