Code import - branch 1.3.0
This commit is contained in:
24
e2e/scenario_inputs/core_scouter_aggregation_avg.json
Normal file
24
e2e/scenario_inputs/core_scouter_aggregation_avg.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"metadata": {"metadata": {"model_id": "24", "model_name": "Core Avg", "schedule_name": "core-avg", "workflow_name": "pi_web_api_scouter"}},
|
||||
"workflow_name": "pi_web_api_scouter",
|
||||
"schedule_name": "core-avg",
|
||||
"model_name": "Core Avg",
|
||||
"model_id": "24",
|
||||
"data": [
|
||||
{"timestamp": "2024-01-01 12:00:00+0000", "name": "tag_avg", "value": 10.0, "tag": "w1"},
|
||||
{"timestamp": "2024-01-01 12:01:00+0000", "name": "tag_avg", "value": 20.0, "tag": "w1"},
|
||||
{"timestamp": "2024-01-01 12:02:00+0000", "name": "tag_avg", "value": 30.0, "tag": "w1"}
|
||||
],
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag_avg": {"webid": "w1", "aggr_func": "avg", "data_range": [0, 1000], "frequency": 60000}
|
||||
}
|
||||
},
|
||||
"expected_value": 20.0
|
||||
}
|
||||
24
e2e/scenario_inputs/core_scouter_aggregation_lts.json
Normal file
24
e2e/scenario_inputs/core_scouter_aggregation_lts.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"metadata": {"metadata": {"model_id": "28", "model_name": "Core Lts", "schedule_name": "core-lts", "workflow_name": "pi_web_api_scouter"}},
|
||||
"workflow_name": "pi_web_api_scouter",
|
||||
"schedule_name": "core-lts",
|
||||
"model_name": "Core Lts",
|
||||
"model_id": "28",
|
||||
"data": [
|
||||
{"timestamp": "2024-01-01 12:00:00+0000", "name": "tag_lts", "value": 100.0, "tag": "w1"},
|
||||
{"timestamp": "2024-01-01 12:01:00+0000", "name": "tag_lts", "value": 200.0, "tag": "w1"},
|
||||
{"timestamp": "2024-01-01 12:02:00+0000", "name": "tag_lts", "value": 300.0, "tag": "w1"}
|
||||
],
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag_lts": {"webid": "w1", "aggr_func": "lts", "data_range": [0, 1000], "frequency": 60000}
|
||||
}
|
||||
},
|
||||
"expected_value": 300.0
|
||||
}
|
||||
24
e2e/scenario_inputs/core_scouter_aggregation_max.json
Normal file
24
e2e/scenario_inputs/core_scouter_aggregation_max.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"metadata": {"metadata": {"model_id": "26", "model_name": "Core Max", "schedule_name": "core-max", "workflow_name": "pi_web_api_scouter"}},
|
||||
"workflow_name": "pi_web_api_scouter",
|
||||
"schedule_name": "core-max",
|
||||
"model_name": "Core Max",
|
||||
"model_id": "26",
|
||||
"data": [
|
||||
{"timestamp": "2024-01-01 12:00:00+0000", "name": "tag_max", "value": 5.0, "tag": "w1"},
|
||||
{"timestamp": "2024-01-01 12:01:00+0000", "name": "tag_max", "value": 15.0, "tag": "w1"},
|
||||
{"timestamp": "2024-01-01 12:02:00+0000", "name": "tag_max", "value": 10.0, "tag": "w1"}
|
||||
],
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag_max": {"webid": "w1", "aggr_func": "max", "data_range": [0, 1000], "frequency": 60000}
|
||||
}
|
||||
},
|
||||
"expected_value": 15.0
|
||||
}
|
||||
24
e2e/scenario_inputs/core_scouter_aggregation_mdn.json
Normal file
24
e2e/scenario_inputs/core_scouter_aggregation_mdn.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"metadata": {"metadata": {"model_id": "25", "model_name": "Core Mdn", "schedule_name": "core-mdn", "workflow_name": "pi_web_api_scouter"}},
|
||||
"workflow_name": "pi_web_api_scouter",
|
||||
"schedule_name": "core-mdn",
|
||||
"model_name": "Core Mdn",
|
||||
"model_id": "25",
|
||||
"data": [
|
||||
{"timestamp": "2024-01-01 12:00:00+0000", "name": "tag_mdn", "value": 1.0, "tag": "w1"},
|
||||
{"timestamp": "2024-01-01 12:01:00+0000", "name": "tag_mdn", "value": 9.0, "tag": "w1"},
|
||||
{"timestamp": "2024-01-01 12:02:00+0000", "name": "tag_mdn", "value": 5.0, "tag": "w1"}
|
||||
],
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag_mdn": {"webid": "w1", "aggr_func": "mdn", "data_range": [0, 1000], "frequency": 60000}
|
||||
}
|
||||
},
|
||||
"expected_value": 5.0
|
||||
}
|
||||
24
e2e/scenario_inputs/core_scouter_aggregation_min.json
Normal file
24
e2e/scenario_inputs/core_scouter_aggregation_min.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"metadata": {"metadata": {"model_id": "27", "model_name": "Core Min", "schedule_name": "core-min", "workflow_name": "pi_web_api_scouter"}},
|
||||
"workflow_name": "pi_web_api_scouter",
|
||||
"schedule_name": "core-min",
|
||||
"model_name": "Core Min",
|
||||
"model_id": "27",
|
||||
"data": [
|
||||
{"timestamp": "2024-01-01 12:00:00+0000", "name": "tag_min", "value": 50.0, "tag": "w1"},
|
||||
{"timestamp": "2024-01-01 12:01:00+0000", "name": "tag_min", "value": 30.0, "tag": "w1"},
|
||||
{"timestamp": "2024-01-01 12:02:00+0000", "name": "tag_min", "value": 40.0, "tag": "w1"}
|
||||
],
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag_min": {"webid": "w1", "aggr_func": "min", "data_range": [0, 1000], "frequency": 60000}
|
||||
}
|
||||
},
|
||||
"expected_value": 30.0
|
||||
}
|
||||
22
e2e/scenario_inputs/core_scouter_debug_data_package.json
Normal file
22
e2e/scenario_inputs/core_scouter_debug_data_package.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"metadata": {"metadata": {"model_id": "30", "model_name": "Core Debug", "schedule_name": "core-debug", "workflow_name": "subworkflow.core_scouter"}},
|
||||
"workflow_name": "subworkflow.core_scouter",
|
||||
"schedule_name": "core-debug",
|
||||
"model_name": "Core Debug",
|
||||
"model_id": "30",
|
||||
"data": [
|
||||
{"timestamp": "2024-01-01 12:00:00+0000", "name": "tag1", "value": 11.0, "tag": "webid1"}
|
||||
],
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"debug_data_package": true,
|
||||
"model_tags": {
|
||||
"tag1": {"webid": "webid1", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000}
|
||||
}
|
||||
}
|
||||
}
|
||||
24
e2e/scenario_inputs/core_scouter_empty_after_grouping.json
Normal file
24
e2e/scenario_inputs/core_scouter_empty_after_grouping.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"metadata": {"metadata": {"model_id": "31", "model_name": "Core Empty Group", "schedule_name": "core-empty-group", "workflow_name": "pi_web_api_scouter"}},
|
||||
"workflow_name": "pi_web_api_scouter",
|
||||
"schedule_name": "core-empty-group",
|
||||
"model_name": "Core Empty Group",
|
||||
"model_id": "31",
|
||||
"data": {
|
||||
"timestamp": [],
|
||||
"name": [],
|
||||
"value": [],
|
||||
"tag": []
|
||||
},
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag1": {"webid": "webid1", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000}
|
||||
}
|
||||
}
|
||||
}
|
||||
24
e2e/scenario_inputs/core_scouter_fill_missing_tags.json
Normal file
24
e2e/scenario_inputs/core_scouter_fill_missing_tags.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"metadata": {"metadata": {"model_id": "29", "model_name": "Core Fill Tags", "schedule_name": "core-fill", "workflow_name": "pi_web_api_scouter"}},
|
||||
"workflow_name": "pi_web_api_scouter",
|
||||
"schedule_name": "core-fill",
|
||||
"model_name": "Core Fill Tags",
|
||||
"model_id": "29",
|
||||
"data": [
|
||||
{"timestamp": "2024-01-01 12:00:00+0000", "name": "tag1", "value": 10.0, "tag": "webid1"}
|
||||
],
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": true,
|
||||
"model_tags": {
|
||||
"tag1": {"webid": "webid1", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000},
|
||||
"tag2": {"webid": "webid2", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000},
|
||||
"tag3": {"webid": "webid3", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000}
|
||||
}
|
||||
},
|
||||
"expected_missing_tags": ["tag2", "tag3"]
|
||||
}
|
||||
28
e2e/scenario_inputs/core_scouter_happy_path.json
Normal file
28
e2e/scenario_inputs/core_scouter_happy_path.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"metadata": {
|
||||
"metadata": {
|
||||
"model_id": "20",
|
||||
"model_name": "Core Happy",
|
||||
"schedule_name": "core-happy",
|
||||
"workflow_name": "pi_web_api_scouter"
|
||||
}
|
||||
},
|
||||
"workflow_name": "pi_web_api_scouter",
|
||||
"schedule_name": "core-happy",
|
||||
"model_name": "Core Happy",
|
||||
"model_id": "20",
|
||||
"data": [
|
||||
{"timestamp": "2024-01-01 12:00:00+0000", "name": "tag1", "value": 10.5, "tag": "webid1"}
|
||||
],
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag1": {"webid": "webid1", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000}
|
||||
}
|
||||
}
|
||||
}
|
||||
23
e2e/scenario_inputs/core_scouter_invalid_aggregation.json
Normal file
23
e2e/scenario_inputs/core_scouter_invalid_aggregation.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"metadata": {"metadata": {"model_id": "32", "model_name": "Core Bad Aggr", "schedule_name": "core-bad-aggr", "workflow_name": "pi_web_api_scouter"}},
|
||||
"workflow_name": "pi_web_api_scouter",
|
||||
"schedule_name": "core-bad-aggr",
|
||||
"model_name": "Core Bad Aggr",
|
||||
"model_id": "32",
|
||||
"data": [
|
||||
{"timestamp": "2024-01-01 12:00:00+0000", "name": "tag_ok", "value": 10.0, "tag": "w1"},
|
||||
{"timestamp": "2024-01-01 12:00:00+0000", "name": "tag_bad", "value": 20.0, "tag": "w2"}
|
||||
],
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag_ok": {"webid": "w1", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000},
|
||||
"tag_bad": {"webid": "w2", "aggr_func": "bogus", "data_range": [0, 100], "frequency": 60000}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"metadata": {"metadata": {"model_id": "21", "model_name": "Core Null Discard", "schedule_name": "core-null-discard", "workflow_name": "pi_web_api_scouter"}},
|
||||
"workflow_name": "pi_web_api_scouter",
|
||||
"schedule_name": "core-null-discard",
|
||||
"model_name": "Core Null Discard",
|
||||
"model_id": "21",
|
||||
"data": [
|
||||
{"timestamp": "2024-01-01 12:00:00+0000", "name": "tag1", "value": null, "tag": "webid1"},
|
||||
{"timestamp": "2024-01-01 12:00:00+0000", "name": "tag2", "value": 50.0, "tag": "webid2"}
|
||||
],
|
||||
"trigger_laborious": false,
|
||||
"filters": {"NULL_VALUES_FILTER": {"policy": "DISCARD"}},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag1": {"webid": "webid1", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000},
|
||||
"tag2": {"webid": "webid2", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"metadata": {"metadata": {"model_id": "22", "model_name": "Core Null Warn", "schedule_name": "core-null-warn", "workflow_name": "pi_web_api_scouter"}},
|
||||
"workflow_name": "pi_web_api_scouter",
|
||||
"schedule_name": "core-null-warn",
|
||||
"model_name": "Core Null Warn",
|
||||
"model_id": "22",
|
||||
"data": [
|
||||
{"timestamp": "2024-01-01 12:00:00+0000", "name": "tag1", "value": null, "tag": "webid1"},
|
||||
{"timestamp": "2024-01-01 12:00:00+0000", "name": "tag2", "value": 50.0, "tag": "webid2"}
|
||||
],
|
||||
"trigger_laborious": false,
|
||||
"filters": {"NULL_VALUES_FILTER": {"policy": "WARN"}},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag1": {"webid": "webid1", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000},
|
||||
"tag2": {"webid": "webid2", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"metadata": {"metadata": {"model_id": "23", "model_name": "Core OOB Discard", "schedule_name": "core-oob-discard", "workflow_name": "pi_web_api_scouter"}},
|
||||
"workflow_name": "pi_web_api_scouter",
|
||||
"schedule_name": "core-oob-discard",
|
||||
"model_name": "Core OOB Discard",
|
||||
"model_id": "23",
|
||||
"data": [
|
||||
{"timestamp": "2024-01-01 12:00:00+0000", "name": "tag1", "value": 150.0, "tag": "webid1"},
|
||||
{"timestamp": "2024-01-01 12:00:00+0000", "name": "tag2", "value": 50.0, "tag": "webid2"}
|
||||
],
|
||||
"trigger_laborious": false,
|
||||
"filters": {"OUT_OF_BOUNDS_FILTER": {"policy": "DISCARD"}},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag1": {"webid": "webid1", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000},
|
||||
"tag2": {"webid": "webid2", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"metadata": {"metadata": {"model_id": "33", "model_name": "Core PG Fail", "schedule_name": "core-pg-fail", "workflow_name": "pi_web_api_scouter"}},
|
||||
"workflow_name": "pi_web_api_scouter",
|
||||
"schedule_name": "core-pg-fail",
|
||||
"model_name": "Core PG Fail",
|
||||
"model_id": "33",
|
||||
"data": [
|
||||
{"timestamp": "2024-01-01 12:00:00+0000", "name": "tag1", "value": 10.0, "tag": "webid1"}
|
||||
],
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag1": {"webid": "webid1", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000}
|
||||
}
|
||||
}
|
||||
}
|
||||
23
e2e/scenario_inputs/pi_web_api_scouter_connection_error.json
Normal file
23
e2e/scenario_inputs/pi_web_api_scouter_connection_error.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"model_id": "14",
|
||||
"model_name": "PI Error",
|
||||
"schedule_name": "pi-error",
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag1": {"webid": "webid1", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000}
|
||||
},
|
||||
"pi_web_api_query": {
|
||||
"endpoint": "/streamsets/recorded",
|
||||
"period": "*-1d",
|
||||
"max_count": 1,
|
||||
"api_timeout": 30
|
||||
}
|
||||
},
|
||||
"pi_web_api_server": {"mode": "error"}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"model_id": "12",
|
||||
"model_name": "PI Debug Package",
|
||||
"schedule_name": "pi-debug",
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"debug_data_package": true,
|
||||
"model_tags": {
|
||||
"tag1": {"webid": "webid1", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000}
|
||||
},
|
||||
"pi_web_api_query": {
|
||||
"endpoint": "/streamsets/recorded",
|
||||
"period": "*-1d",
|
||||
"max_count": 5,
|
||||
"api_timeout": 30
|
||||
}
|
||||
},
|
||||
"pi_web_api_server": {
|
||||
"mode": "success",
|
||||
"rows": [
|
||||
{"name": "tag1", "timestamp": "2024-06-01T12:00:00Z", "value": 7.5}
|
||||
]
|
||||
}
|
||||
}
|
||||
23
e2e/scenario_inputs/pi_web_api_scouter_empty_response.json
Normal file
23
e2e/scenario_inputs/pi_web_api_scouter_empty_response.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"model_id": "13",
|
||||
"model_name": "PI Empty",
|
||||
"schedule_name": "pi-empty",
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag1": {"webid": "webid1", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000}
|
||||
},
|
||||
"pi_web_api_query": {
|
||||
"endpoint": "/streamsets/recorded",
|
||||
"period": "*-1d",
|
||||
"max_count": 1,
|
||||
"api_timeout": 30
|
||||
}
|
||||
},
|
||||
"pi_web_api_server": {"mode": "empty"}
|
||||
}
|
||||
30
e2e/scenario_inputs/pi_web_api_scouter_happy_path.json
Normal file
30
e2e/scenario_inputs/pi_web_api_scouter_happy_path.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"model_id": "10",
|
||||
"model_name": "PI Web API Happy",
|
||||
"schedule_name": "pi-happy",
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag1": {"webid": "webid1", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000},
|
||||
"tag2": {"webid": "webid2", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000}
|
||||
},
|
||||
"pi_web_api_query": {
|
||||
"endpoint": "/streamsets/recorded",
|
||||
"period": "*-1d",
|
||||
"max_count": 10,
|
||||
"api_timeout": 30
|
||||
}
|
||||
},
|
||||
"pi_web_api_server": {
|
||||
"mode": "success",
|
||||
"rows": [
|
||||
{"name": "tag1", "timestamp": "2024-06-01T12:00:00Z", "value": 10.5},
|
||||
{"name": "tag2", "timestamp": "2024-06-01T12:00:00Z", "value": 20.3}
|
||||
]
|
||||
}
|
||||
}
|
||||
23
e2e/scenario_inputs/pi_web_api_scouter_invalid_endpoint.json
Normal file
23
e2e/scenario_inputs/pi_web_api_scouter_invalid_endpoint.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"model_id": "16",
|
||||
"model_name": "PI Invalid Endpoint",
|
||||
"schedule_name": "pi-invalid",
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag1": {"webid": "webid1", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000}
|
||||
},
|
||||
"pi_web_api_query": {
|
||||
"endpoint": "/invalid/endpoint",
|
||||
"period": "*-1d",
|
||||
"max_count": 1,
|
||||
"api_timeout": 30
|
||||
}
|
||||
},
|
||||
"pi_web_api_server": {"mode": "success", "rows": []}
|
||||
}
|
||||
53
e2e/scenario_inputs/pi_web_api_scouter_multiple_tags.json
Normal file
53
e2e/scenario_inputs/pi_web_api_scouter_multiple_tags.json
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"model_id": "11",
|
||||
"model_name": "PI Multi Tag",
|
||||
"schedule_name": "pi-multi",
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag_avg": {"webid": "w1", "aggr_func": "avg", "data_range": [0, 1000], "frequency": 60000},
|
||||
"tag_mdn": {"webid": "w2", "aggr_func": "mdn", "data_range": [0, 1000], "frequency": 60000},
|
||||
"tag_max": {"webid": "w3", "aggr_func": "max", "data_range": [0, 1000], "frequency": 60000},
|
||||
"tag_min": {"webid": "w4", "aggr_func": "min", "data_range": [0, 1000], "frequency": 60000},
|
||||
"tag_lts": {"webid": "w5", "aggr_func": "lts", "data_range": [0, 1000], "frequency": 60000}
|
||||
},
|
||||
"pi_web_api_query": {
|
||||
"endpoint": "/streamsets/recorded",
|
||||
"period": "*-1d",
|
||||
"max_count": 3,
|
||||
"api_timeout": 30
|
||||
}
|
||||
},
|
||||
"pi_web_api_server": {
|
||||
"mode": "success",
|
||||
"rows": [
|
||||
{"name": "tag_avg", "timestamp": "2024-06-01T12:00:00Z", "value": 10},
|
||||
{"name": "tag_avg", "timestamp": "2024-06-01T12:01:00Z", "value": 20},
|
||||
{"name": "tag_avg", "timestamp": "2024-06-01T12:02:00Z", "value": 30},
|
||||
{"name": "tag_mdn", "timestamp": "2024-06-01T12:00:00Z", "value": 1},
|
||||
{"name": "tag_mdn", "timestamp": "2024-06-01T12:01:00Z", "value": 9},
|
||||
{"name": "tag_mdn", "timestamp": "2024-06-01T12:02:00Z", "value": 5},
|
||||
{"name": "tag_max", "timestamp": "2024-06-01T12:00:00Z", "value": 5},
|
||||
{"name": "tag_max", "timestamp": "2024-06-01T12:01:00Z", "value": 15},
|
||||
{"name": "tag_max", "timestamp": "2024-06-01T12:02:00Z", "value": 10},
|
||||
{"name": "tag_min", "timestamp": "2024-06-01T12:00:00Z", "value": 50},
|
||||
{"name": "tag_min", "timestamp": "2024-06-01T12:01:00Z", "value": 30},
|
||||
{"name": "tag_min", "timestamp": "2024-06-01T12:02:00Z", "value": 40},
|
||||
{"name": "tag_lts", "timestamp": "2024-06-01T12:00:00Z", "value": 100},
|
||||
{"name": "tag_lts", "timestamp": "2024-06-01T12:01:00Z", "value": 200},
|
||||
{"name": "tag_lts", "timestamp": "2024-06-01T12:02:00Z", "value": 300}
|
||||
]
|
||||
},
|
||||
"expected_values": {
|
||||
"tag_avg": 20.0,
|
||||
"tag_mdn": 5.0,
|
||||
"tag_max": 15.0,
|
||||
"tag_min": 30.0,
|
||||
"tag_lts": 300.0
|
||||
}
|
||||
}
|
||||
23
e2e/scenario_inputs/pi_web_api_scouter_timeout.json
Normal file
23
e2e/scenario_inputs/pi_web_api_scouter_timeout.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"model_id": "15",
|
||||
"model_name": "PI Timeout",
|
||||
"schedule_name": "pi-timeout",
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag1": {"webid": "webid1", "aggr_func": "avg", "data_range": [0, 100], "frequency": 60000}
|
||||
},
|
||||
"pi_web_api_query": {
|
||||
"endpoint": "/streamsets/recorded",
|
||||
"period": "*-1d",
|
||||
"max_count": 1,
|
||||
"api_timeout": 2
|
||||
}
|
||||
},
|
||||
"pi_web_api_server": {"mode": "timeout", "timeout_sleep_seconds": 5}
|
||||
}
|
||||
23
e2e/scenario_inputs/scouter_empty_mongo.json
Normal file
23
e2e/scenario_inputs/scouter_empty_mongo.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"topic": "e2e-topic",
|
||||
"model_id": "3",
|
||||
"model_name": "Scouter Empty Mongo",
|
||||
"schedule_name": "scouter-empty",
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag1": {
|
||||
"webid": "webid1",
|
||||
"aggr_func": "avg",
|
||||
"data_range": [0, 100],
|
||||
"frequency": 60000
|
||||
}
|
||||
}
|
||||
},
|
||||
"raw_documents": []
|
||||
}
|
||||
38
e2e/scenario_inputs/scouter_happy_path.json
Normal file
38
e2e/scenario_inputs/scouter_happy_path.json
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"topic": "e2e-topic",
|
||||
"model_id": "1",
|
||||
"model_name": "Scouter E2E Model",
|
||||
"schedule_name": "scouter-happy",
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag1": {
|
||||
"webid": "webid1",
|
||||
"aggr_func": "avg",
|
||||
"data_range": [0, 100],
|
||||
"frequency": 60000
|
||||
}
|
||||
}
|
||||
},
|
||||
"raw_documents": [
|
||||
{
|
||||
"inserted_at": "2024-06-01 12:00:00.000000+0000",
|
||||
"timestamp": "2024-06-01 12:00:00+0000",
|
||||
"name": "tag1",
|
||||
"value": 10.5,
|
||||
"tag": "webid1"
|
||||
},
|
||||
{
|
||||
"inserted_at": "2024-06-01 12:01:00.000000+0000",
|
||||
"timestamp": "2024-06-01 12:01:00+0000",
|
||||
"name": "tag1",
|
||||
"value": 20.0,
|
||||
"tag": "webid1"
|
||||
}
|
||||
]
|
||||
}
|
||||
43
e2e/scenario_inputs/scouter_incremental_load.json
Normal file
43
e2e/scenario_inputs/scouter_incremental_load.json
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"topic": "e2e-topic",
|
||||
"model_id": "2",
|
||||
"model_name": "Scouter Incremental",
|
||||
"schedule_name": "scouter-incremental",
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag1": {
|
||||
"webid": "webid1",
|
||||
"aggr_func": "avg",
|
||||
"data_range": [0, 100],
|
||||
"frequency": 60000
|
||||
}
|
||||
}
|
||||
},
|
||||
"redis_seed": {
|
||||
"last_data_timestamp": "2024-06-01 10:00:00.000000+0000"
|
||||
},
|
||||
"raw_documents": [
|
||||
{
|
||||
"inserted_at": "2024-06-01 09:00:00.000000+0000",
|
||||
"timestamp": "2024-06-01 09:00:00+0000",
|
||||
"name": "tag1",
|
||||
"value": 1.0,
|
||||
"tag": "webid1"
|
||||
},
|
||||
{
|
||||
"inserted_at": "2024-06-01 11:00:00.000000+0000",
|
||||
"timestamp": "2024-06-01 11:00:00+0000",
|
||||
"name": "tag1",
|
||||
"value": 99.0,
|
||||
"tag": "webid1"
|
||||
}
|
||||
],
|
||||
"expected_newer_count": 1,
|
||||
"expected_last_timestamp": "2024-06-01 11:00:00.000000+0000"
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"workflow_input": {
|
||||
"topic": "e2e-topic",
|
||||
"model_id": "4",
|
||||
"model_name": "Scouter First Run",
|
||||
"schedule_name": "scouter-first-run",
|
||||
"trigger_laborious": false,
|
||||
"filters": {},
|
||||
"schema": "sientia_data",
|
||||
"table_name": "laborious_data",
|
||||
"retention_time": 3600,
|
||||
"fill_missing_tags": false,
|
||||
"model_tags": {
|
||||
"tag1": {
|
||||
"webid": "webid1",
|
||||
"aggr_func": "lts",
|
||||
"data_range": [0, 100],
|
||||
"frequency": 60000
|
||||
}
|
||||
}
|
||||
},
|
||||
"raw_documents": [
|
||||
{
|
||||
"inserted_at": "2024-06-01 08:00:00.000000+0000",
|
||||
"timestamp": "2024-06-01 08:00:00+0000",
|
||||
"name": "tag1",
|
||||
"value": 42.0,
|
||||
"tag": "webid1"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user