Skip to content

Commit

Permalink
Merge pull request #4 from buildkite-plugins/toote_update_tester
Browse files Browse the repository at this point in the history
Update tester image
  • Loading branch information
pzeballos committed May 30, 2023
2 parents a3df5c1 + b1d2ebc commit 99a1c22
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Whether to force pulling the image before running or not. Default: `false`.

#### `version` (string)

The version of the [plugin tester docker image](https://github.com/buildkite-plugins/buildkite-plugin-tester) to run. Default: `v4.0.0`.
The version of the [plugin tester docker image](https://github.com/buildkite-plugins/buildkite-plugin-tester) to run. Default: `v4.1.0`.

## Examples

Expand All @@ -32,7 +32,7 @@ The version of the [plugin tester docker image](https://github.com/buildkite-plu
steps:
- label: "🔨 Tests"
plugins:
- plugin-tester#v1.0.0: ~
- plugin-tester#v1.1.0: ~
```

## Multiple folders
Expand All @@ -43,7 +43,7 @@ If you have a sub-folder with tests, you will need to specify both folders (unfo
steps:
- label: "🔨 Running tests"
plugins:
- plugin-tester#v1.0.0:
- plugin-tester#v1.1.0:
folders:
- tests
- tests/v2
Expand Down
2 changes: 1 addition & 1 deletion hooks/command
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
. "$DIR/../lib/plugin.bash"


IMAGE_TAG=$(plugin_read_config VERSION 'v4.0.0')
IMAGE_TAG=$(plugin_read_config VERSION 'v4.1.0')

DOCKER_CMD=(
docker run --rm -ti
Expand Down
7 changes: 5 additions & 2 deletions tests/command.bats
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ setup() {

# to make all tests have a stable value
export BUILDKITE_PLUGIN_PLUGIN_TESTER_VERSION='latest'

# to make version updates easier
export LATEST_VERSION='v4.1.0'
}

@test "Normal basic operations" {
Expand All @@ -20,7 +23,7 @@ setup() {
assert_success
assert_output --partial 'docker ran with'
assert_output --partial " -v $PWD:/plugin "
assert_output --partial ' buildkite/plugin-tester:v4.0.0 bats tests'
assert_output --partial " buildkite/plugin-tester:${LATEST_VERSION} bats tests"

unstub docker
}
Expand All @@ -33,7 +36,7 @@ setup() {
assert_success
assert_output --partial 'docker ran with'
assert_output --partial ' buildkite/plugin-tester:latest'
refute_output --partial ' buildkite/plugin-tester:v4.0.0'
refute_output --partial " buildkite/plugin-tester:${LATEST_VERSION}"

unstub docker
}
Expand Down

0 comments on commit 99a1c22

Please sign in to comment.