mirror of
https://github.com/inspec/inspec
synced 2024-12-18 09:03:12 +00:00
b2e031c056
This project is inspired by Serverspec and all the wonderful contributions that went into it. Thank you all so much! We have used Serverspec as our audit base and have now a slightly different perspective. We hope to continue the spirit on this path. Hopefully both projects will find their way together. Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
50 lines
861 B
Ruby
50 lines
861 B
Ruby
# Copyright 2014 Dominik Richter. All rights reserved.
|
|
# Spec file for Vulcano specs
|
|
|
|
# Get types
|
|
module DummyTestTypes
|
|
# a few commands with special handling
|
|
def describe *args; end
|
|
def context *args; end
|
|
|
|
def os
|
|
{}
|
|
end
|
|
|
|
def command sth
|
|
res = OpenStruct.new
|
|
res.stdout = ""
|
|
res.stderr = ""
|
|
res
|
|
end
|
|
end
|
|
|
|
module DummyVulcanoTypes
|
|
%w(
|
|
attributes registry_key
|
|
).each do |name|
|
|
define_method name do |*arg|
|
|
end
|
|
end
|
|
|
|
def processes *args; [] end
|
|
def start_postgres_session *args; Describer.new end
|
|
def start_mysql_session *args; Describer.new end
|
|
|
|
class Describer
|
|
def describe *args
|
|
end
|
|
end
|
|
end
|
|
|
|
class SshConf
|
|
def initialize *args; end
|
|
end
|
|
class PostgresConf
|
|
def initialize *args; end
|
|
def params *a, &b; {} end
|
|
end
|
|
class MysqlConf
|
|
def initialize *args; end
|
|
def params *a, &b; {} end
|
|
end
|