mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-21 11:18:06 +00:00
more port check tests...
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
require_relative '../../../../../lib/post_provision_test'
|
||||
|
||||
class MySQLStretchTest < PostProvisionTest
|
||||
def initialize
|
||||
self.module_name = 'mysql_stretch_compatible'
|
||||
self.module_path = get_module_path(__FILE__)
|
||||
super
|
||||
self.port = 3306
|
||||
end
|
||||
|
||||
def test_module
|
||||
super
|
||||
test_service_up
|
||||
end
|
||||
end
|
||||
|
||||
MySQLStretchTest.new.run
|
||||
@@ -0,0 +1,17 @@
|
||||
require_relative '../../../../../lib/post_provision_test'
|
||||
|
||||
class MySQLWheezyTest < PostProvisionTest
|
||||
def initialize
|
||||
self.module_name = 'mysql_wheezy_compatible'
|
||||
self.module_path = get_module_path(__FILE__)
|
||||
super
|
||||
self.port = 3306
|
||||
end
|
||||
|
||||
def test_module
|
||||
super
|
||||
test_service_up
|
||||
end
|
||||
end
|
||||
|
||||
MySQLWheezyTest.new.run
|
||||
@@ -14,6 +14,10 @@
|
||||
<reference>https://httpd.apache.org/</reference>
|
||||
<software_license>Apache v2</software_license>
|
||||
|
||||
<conflict>
|
||||
<type>webapp</type>
|
||||
</conflict>
|
||||
|
||||
<requires>
|
||||
<module_path>.*apache</module_path>
|
||||
<type>httpd</type>
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
require_relative '../../../../../lib/post_provision_test'
|
||||
|
||||
class ApacheBashCGITest < PostProvisionTest
|
||||
def initialize
|
||||
self.module_name = 'apache_bash_cgi'
|
||||
self.module_path = get_module_path(__FILE__)
|
||||
super
|
||||
self.port = 80
|
||||
end
|
||||
|
||||
def test_module
|
||||
super
|
||||
test_service_up
|
||||
end
|
||||
end
|
||||
|
||||
ApacheBashCGITest.new.run
|
||||
17
modules/services/unix/irc/irc2/secgen_test/irc2.rb
Normal file
17
modules/services/unix/irc/irc2/secgen_test/irc2.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
require_relative '../../../../../lib/post_provision_test'
|
||||
|
||||
class IRC2Test < PostProvisionTest
|
||||
def initialize
|
||||
self.module_name = 'irc2'
|
||||
self.module_path = get_module_path(__FILE__)
|
||||
super
|
||||
self.port = 6667
|
||||
end
|
||||
|
||||
def test_module
|
||||
super
|
||||
test_service_up
|
||||
end
|
||||
end
|
||||
|
||||
IRC2Test.new.run
|
||||
@@ -0,0 +1,17 @@
|
||||
require_relative '../../../../../lib/post_provision_test'
|
||||
|
||||
class DistCCExecTest < PostProvisionTest
|
||||
def initialize
|
||||
self.module_name = 'distcc_exec'
|
||||
self.module_path = get_module_path(__FILE__)
|
||||
super
|
||||
self.port = 3632
|
||||
end
|
||||
|
||||
def test_module
|
||||
super
|
||||
test_service_up
|
||||
end
|
||||
end
|
||||
|
||||
DistCCExecTest.new.run
|
||||
Reference in New Issue
Block a user