Skip to content

Instantly share code, notes, and snippets.

@farrukhnajmi
Created March 20, 2017 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save farrukhnajmi/cef9ee14a26406468c37ec4b14b7f3ec to your computer and use it in GitHub Desktop.
Save farrukhnajmi/cef9ee14a26406468c37ec4b14b7f3ec to your computer and use it in GitHub Desktop.
Test kitchen failure
#Following is my git_installed.bats
#!/usr/bin/env bats
@test "git binary is found in PATH" {
run which git
[ "$status" -eq 0 ]
}
#Folowing is my gradle_installed.bats
#!/usr/bin/env bats
@test "gradle binary is found in PATH" {
run which gradle
[ "$status" -eq 0 ]
}
#Following is mout output from kitchet verify
$ kitchen verify default-ubuntu-1604
-----> Starting Kitchen (v1.7.3)
-----> Verifying <default-ubuntu-1604>...
Preparing files for transfer
-----> Busser installation detected (busser)
Installing Busser plugins: busser-bats busser-serverspec
Plugin bats already installed
Plugin serverspec already installed
Removing /tmp/verifier/suites/serverspec
Removing /tmp/verifier/suites/bats
Transferring files to <default-ubuntu-1604>
-----> Running bats test suite
✓ git binary is found in PATH
✗ gradle binary is found in PATH
(in test file /tmp/verifier/suites/bats/gradle_installed.bats, line 5)
`[ "$status" -eq 0 ]' failed
✗ JDK 8 binary is found in PATH
(in test file /tmp/verifier/suites/bats/java_installed.bats, line 5)
`[ "$output" = "1" ]' failed
0
✓ psql binary is found in PATH
4 tests, 2 failures
!!!!!! Command [/tmp/verifier/vendor/bats/bin/bats /tmp/verifier/suites/bats] exit code was 1
>>>>>> Verify failed on instance <default-ubuntu-1604>.
>>>>>> Please see .kitchen/logs/default-ubuntu-1604.log for more details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: SSH exited (1) for command: [sh -c '
BUSSER_ROOT="/tmp/verifier"; export BUSSER_ROOT
GEM_HOME="/tmp/verifier/gems"; export GEM_HOME
GEM_PATH="/tmp/verifier/gems"; export GEM_PATH
GEM_CACHE="/tmp/verifier/gems/cache"; export GEM_CACHE
sudo -E /tmp/verifier/bin/busser test
']
>>>>>> ----------------------
zlib(finalizer): the stream was freed prematurely.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment