Skip to content

Commit

Permalink
.......... [ZBXNEXT-686] fixed maintenance.craete() API calls in the …
Browse files Browse the repository at this point in the history
…integration tests
  • Loading branch information
alexv123456 committed Jan 7, 2022
1 parent fd8308b commit 6dbe69d
Showing 1 changed file with 12 additions and 33 deletions.
45 changes: 12 additions & 33 deletions ui/tests/integration/testEscalations.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,18 +236,11 @@ public function testEscalations_checkScenario1() {
'hostids' => [self::$hostid],
'active_since' => self::$maint_start_tm,
'active_till' => $maint_end_tm,
'tags_evaltype' => 0,
'tags_evaltype' => MAINTENANCE_TAG_EVAL_TYPE_AND_OR,
'timeperiods' => [
[
'day' => '1',
'dayofweek' => '0',
'every' => '1',
'month' => '0',
'period' => '300',
'start_date' => self::$maint_start_tm,
'start_time' => '0',
'timeperiod_type' => '0'
]
'timeperiod_type' => TIMEPERIOD_TYPE_ONETIME,
'period' => 300,
'start_date' => self::$maint_start_tm
]
]);
$this->assertArrayHasKey('maintenanceids', $response['result']);
Expand Down Expand Up @@ -302,18 +295,11 @@ public function testEscalations_checkScenario2() {
'hostids' => [self::$hostid],
'active_since' => self::$maint_start_tm,
'active_till' => $maint_end_tm,
'tags_evaltype' => 0,
'tags_evaltype' => MAINTENANCE_TAG_EVAL_TYPE_AND_OR,
'timeperiods' => [
[
'day' => '1',
'dayofweek' => '0',
'every' => '1',
'month' => '0',
'period' => '300',
'start_date' => self::$maint_start_tm,
'start_time' => '0',
'timeperiod_type' => '0'
]
'timeperiod_type' => TIMEPERIOD_TYPE_ONETIME,
'period' => 300,
'start_date' => self::$maint_start_tm
]
]);
$this->assertArrayHasKey('maintenanceids', $response['result']);
Expand Down Expand Up @@ -372,18 +358,11 @@ public function testEscalations_checkScenario3() {
'hostids' => [self::$hostid],
'active_since' => self::$maint_start_tm,
'active_till' => $maint_end_tm,
'tags_evaltype' => 0,
'tags_evaltype' => MAINTENANCE_TAG_EVAL_TYPE_AND_OR,
'timeperiods' => [
[
'day' => '1',
'dayofweek' => '0',
'every' => '1',
'month' => '0',
'period' => '300',
'start_date' => self::$maint_start_tm,
'start_time' => '0',
'timeperiod_type' => '0'
]
'timeperiod_type' => TIMEPERIOD_TYPE_ONETIME,
'period' => 300,
'start_date' => self::$maint_start_tm
]
]);
$this->assertArrayHasKey('maintenanceids', $response['result']);
Expand Down

0 comments on commit 6dbe69d

Please sign in to comment.