Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/tests/selenium/testFormItemPrototype.php')
-rw-r--r--frontends/php/tests/selenium/testFormItemPrototype.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/frontends/php/tests/selenium/testFormItemPrototype.php b/frontends/php/tests/selenium/testFormItemPrototype.php
index 87238d64c48..1c5f38c7297 100644
--- a/frontends/php/tests/selenium/testFormItemPrototype.php
+++ b/frontends/php/tests/selenium/testFormItemPrototype.php
@@ -1258,7 +1258,14 @@ class testFormItemPrototype extends CLegacyWebTest {
$dbResult = DBselect('SELECT * FROM item_preproc WHERE itemid='.$itemid);
$itemsPreproc = DBfetchArray($dbResult);
foreach ($itemsPreproc as $itemPreproc) {
- $preprocessing_type = get_preprocessing_types($itemPreproc['type']);
+ // The array of allowed types must be synced with CItemPrototype::$supported_preprocessing_types.
+ $preprocessing_type = get_preprocessing_types($itemPreproc['type'], false, [ZBX_PREPROC_REGSUB,
+ ZBX_PREPROC_TRIM, ZBX_PREPROC_RTRIM, ZBX_PREPROC_LTRIM, ZBX_PREPROC_XPATH, ZBX_PREPROC_JSONPATH,
+ ZBX_PREPROC_MULTIPLIER, ZBX_PREPROC_DELTA_VALUE, ZBX_PREPROC_DELTA_SPEED, ZBX_PREPROC_BOOL2DEC,
+ ZBX_PREPROC_OCT2DEC, ZBX_PREPROC_HEX2DEC, ZBX_PREPROC_VALIDATE_RANGE, ZBX_PREPROC_VALIDATE_REGEX,
+ ZBX_PREPROC_VALIDATE_NOT_REGEX, ZBX_PREPROC_ERROR_FIELD_JSON, ZBX_PREPROC_ERROR_FIELD_XML,
+ ZBX_PREPROC_ERROR_FIELD_REGEX, ZBX_PREPROC_THROTTLE_VALUE, ZBX_PREPROC_THROTTLE_TIMED_VALUE
+ ]);
$this->zbxTestAssertAttribute("//input[@id='preprocessing_".($itemPreproc['step']-1)."_type_name']", 'readonly');
$this->zbxTestAssertElementValue("preprocessing_".($itemPreproc['step']-1)."_type_name", $preprocessing_type);
if ((1 <= $itemPreproc['type']) && ($itemPreproc['type'] <= 4)) {