Skip to content

Commit

Permalink
preparing v1.3.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mschuchard committed May 3, 2024
1 parent 4c39b9e commit c6b68ab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### 1.3.0 (Next)
### 1.3.0
- Support changing into other directory for test execution.
- Support optional Pytest verbose output instead of former mandatory.
- Support becoming different user after elevated permissions.
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This plugin requires Packer version `>= 1.7.0` due to the modern SDK usage. A si
packer {
required_plugins {
testinfra = {
version = "~> 1.2.0"
version = "~> 1.3.0"
source = "github.com/mschuchard/testinfra"
}
}
Expand All @@ -22,7 +22,7 @@ Afterwards, `packer init` can automatically manage your plugin as per normal. No

### Basic Example

A basic example for usage of this plugin with common optional arguments follows below:
A basic example for usage of this plugin with selected optional arguments follows below:

```hcl
build {
Expand All @@ -39,14 +39,17 @@ build {

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| **chdir** | Change into this directory before executing `pytest`. Unsupported with `local` test execution. | string | `cwd` | no |
| **install_cmd** | Command to execute on the instance used for building the machine image artifact; can be used to install and configure Testinfra prior to a `local` test execution. | list(string) | [] | no |
| **keyword** | PyTest keyword substring expression for selective test execution. | string | "" | no |
| **local** | Execute Testinfra tests locally on the instance used for building the machine image artifact. Most plugin validation is skipped with this option. | bool | false | no |
| **marker** | PyTest marker expression for selective test execution. | string | "" | no |
| **processes** | The number of parallel processes for Testinfra test execution. This parameter requires installation of the [pytest-xdist](https://pypi.org/project/pytest-xdist/) plugin. | number | 0 | no |
| **pytest_path** | The path to the installed `py.test` executable for initiating the Testinfra tests. | string | "py.test" | no |
| **sudo** | Whether or not to execute the tests with `sudo` elevated permissions. | bool | false | no |
| **sudo_user** | User to become when executing the tests. Mutually exclusive with `sudo`, and therefore ignored when `sudo` is input as `true`. | string | "" | no |
| **test_files** | The paths to the files containing the Testinfra tests for execution and validation of the machine image artifact. The default empty value will execute default PyTest behavior of all test files prefixed with `test_` recursively discovered from the current working directory. | list(string) | [] | no |
| **verbose** | Whether or not to execute the tests with Pytest verbosity enabled. | bool | false | no |

### Communicators

Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "github.com/hashicorp/packer-plugin-sdk/version"

const (
// Version is the main version number that is being run at the moment.
Version = "1.2.3"
Version = "1.3.0"

// VersionPrerelease is A pre-release marker for the Version. If this is ""
// (empty string) then it means that it is a final release. Otherwise, this
Expand Down

0 comments on commit c6b68ab

Please sign in to comment.