diff --git a/src/telemetry_frontend/tests/Messages.py b/src/telemetry_frontend/tests/Messages.py new file mode 100644 index 0000000000000000000000000000000000000000..86b454004870a95639a424d4d9c62dc28daff92b --- /dev/null +++ b/src/telemetry_frontend/tests/Messages.py @@ -0,0 +1,30 @@ +# Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from common.proto import telemetry_frontend_pb2 +# from common.proto.kpi_manager_pb2 import kpi_id +# from common.proto.kpi_sample_types_pb2 import KpiSampleType + +def collector_id(): + _collector_id = telemetry_frontend_pb2.CollectorId() + _collector_id.collector_id.uuid = str(1) + return _collector_id + +def create_collector_request(coll_id_str): + _create_collector_request = telemetry_frontend_pb2.Collector() + _create_collector_request.collector_id.uuid = str(coll_id_str) + _create_collector_request.kpi_id.kpi_uuid.uuid = 'KPIid' + str(coll_id_str) + _create_collector_request.duration_s = float(-1) + _create_collector_request.interval_s = float(-1) + return _create_collector_request