Remove unnecessary imports from unit test config

refs #12575
This commit is contained in:
Gunnar Beutner 2016-08-28 10:41:01 +02:00
parent 78cd56e277
commit 4876a78ab5
9 changed files with 5 additions and 16 deletions

View File

@ -20,11 +20,11 @@
System.assert(Internal.run_with_activation_context(function() {
var _Internal = Internal.clone()
template CheckCommand "ido-check-command" {
template CheckCommand "ido-check-command" use (_Internal) {
execute = _Internal.IdoCheck
}
object CheckCommand "ido" use (_Internal) {
object CheckCommand "ido" {
import "ido-check-command"
}
}))

View File

@ -1,6 +1,5 @@
object CheckCommand "2742-macro-command" {
import "plugin-check-command"
command = "echo UPTIME: $icinga.uptime$ SERVICES warn: $icinga.num_services_warning$ crit: $icinga.num_services_critical$ unknown: $icinga.num_services_unknown$ ackd: $icinga.num_services_acknowledged$ HOST: down: $icinga.num_hosts_down$ unreachable: $icinga.num_hosts_unreachable$"
}

View File

@ -1,7 +1,6 @@
object CheckCommand "5926-macro-test" {
import "plugin-check-command"
command = "echo \"address: $address$ address_service: $service.vars.address$ foo: $foo$ keks: $keks$ god: $god$\""
//command = "echo \"address: $address$ address_service: $service.vars.address$\""
}

View File

@ -1,11 +1,9 @@
object EventCommand "5927-handle" {
import "plugin-event-command"
command = "echo \"event handler triggered.\""
}
object NotificationCommand "5927-notification" {
import "plugin-notification-command"
command = "echo \"notification triggered.\""
}

View File

@ -1,11 +1,9 @@
object EventCommand "6479-handle" {
import "plugin-event-command"
command = "echo \"event handler triggered.\""
}
object NotificationCommand "6479-notification" {
import "plugin-notification-command"
command = "echo \"notification triggered.\""
}

View File

@ -12,9 +12,8 @@ object Service "6968-test" {
}
object CheckCommand "6968-check_vmware" {
import "plugin-check-command"
command = [ PluginDir + "/check_vmware.pl" ]
arguments = {
"--server" = "$address$"
"--username" = "***"

View File

@ -1,6 +1,4 @@
object CheckCommand "8063-my-disk" {
import "plugin-check-command"
command = [ PluginDir + "/check_disk" ]
arguments = {

View File

@ -65,9 +65,8 @@ object UserGroup "test-icingaadmins" {
/* timeperiods */
object TimePeriod "test-24x7" {
import "legacy-timeperiod"
display_name = "Test Icinga 2 24x7 TimePeriod"
ranges = {
"monday" = "00:00-24:00"
"tuesday" = "00:00-24:00"

View File

@ -53,7 +53,6 @@ struct LivestatusFixture
{
String config = R"CONFIG(
object CheckCommand "dummy" {
import "plugin-check-command"
command = "/bin/echo"
}
@ -67,7 +66,7 @@ object Host "test-02" {
check_command = "dummy"
}
apply Service "livestatus"{
apply Service "livestatus" {
check_command = "dummy"
notes = "test livestatus"
assign where match("test-*", host.name)