We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35f0ac6 commit 5221000Copy full SHA for 5221000
1 file changed
tests/command.bats
@@ -48,6 +48,22 @@ setup() {
48
unstub docker
49
}
50
51
+
52
+@test "Supports the skip-invalid option" {
53
+ export BUILDKITE_PLUGIN_PLUGIN_LINTER_SKIP_INVALID=true
54
55
+ stub docker \
56
+ "pull buildkite/plugin-linter:latest : echo pulled image" \
57
+ "run -it --rm --volume /plugin:/plugin:ro --env PLUGIN_ID=my-plugin --env PLUGIN_SKIP_INVALID=true buildkite/plugin-linter:latest : echo linted"
58
59
+ run "$PWD"/hooks/command
60
61
+ assert_success
62
+ assert_output --partial "pulled image"
63
+ assert_output --partial "linted"
64
+ unstub docker
65
+}
66
67
@test "Support not specifying a tag" {
68
unset BUILDKITE_PLUGIN_PLUGIN_LINTER_IMAGE_VERSION
69
0 commit comments