mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-06-05 20:55:28 +02:00
13 lines
479 B
Ruby
13 lines
479 B
Ruby
control "openjdk6" do
|
|
title "Check OpenJDK 6"
|
|
desc "Checks for the installation of OpenJDK 6. Setup file available at /scripts/installs/setup_openjdk6.bat"
|
|
|
|
describe file('C:\\openjdk6\\openjdk-1.6.0-unofficial-b28-windows-amd64-installer') do
|
|
it { should exist }
|
|
end
|
|
|
|
describe command('C:\openjdk6\openjdk-1.6.0-unofficial-b28-windows-amd64-installer\jre\bin\java.exe -version') do
|
|
its('stdout') { should match "openjdk version \"1.6.0-unofficial\"" }
|
|
end
|
|
end
|