Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/#2755 signaling the data source that has a problem #2948

Conversation

Patrykb0802
Copy link
Contributor

No description provided.

Limraj and others added 30 commits November 6, 2023 20:16
Created class: DataPointUnreliableUtils;

Signaling added in:
*  Meta Data Source;
*  SNMP;
*  HTTP Retriever;
*  BACnet I/P;
*  DNP3 (IP/Serial);

Signaling use DataPointUnreliableUtils in:
* Modbus IP/Serial;
* Viconics;
* Pachube;
* MQTT/AMQP
- fixed feature refresh point value
- DataPointUnreliableUtilsTest.java;
- use methods returnToNormal and raiseEvent from DataSourceRT;
- added methods: LoggingUtils.info, LoggingUtils.dataPointInfo, LoggingUtils.dataPointRtInfo, PollingDataSource.getDataPoints, EventDataSource.getDataPoints, DataSourceRT.getDataPoints;
- fixed Data Source use serial port - System Exception;
- corrected terminate method for: Alpha2DataSource, Dnp3DataSource, DrStorageHt5bDataSource, IEC101DataSource, OPCDataSource, RadiuinoEventDataSource, RadiuinoPollingDataSource;
- fixed reset unreliable HttpImageDataSourceRT when error retriever;
- refactor DataPointUnreliableUtils;
- fixed RuntimeManager.startDataPoint;
- added tests: InitializeDataSourceRtTest, InitializeWithErrorsDataSourceRtTest;
- corrected test: DataPointUnreliableUtilsTest;
- replacing class CommPortIdentifier from RXTXcomm.jar with a new class ScadaCommPortIdentifier: ASCIISerialDataSource, DrStorageHt5bDataSource, RadiuinoEventDataSource, RadiuinoPollingDataSource;
- corrected signaling errors in: BACnetIPDataSourceRT, HttpReceiverDataSourceRT, ModbusDataSource, NmeaDataSourceRT, PachubeDataSourceRT, PersistentDataSourceRT, SnmpDataSourceRT, ViconicsDataSourceRT;
- try catch Throwable;
- change logging level from WARN to ERROR for dataSourceRtLoggingLevel, dataPointRtLoggingLevel (log4j2.xml);
- refactoring DataPointUnreliableUtils;
- added methods: DataPointRT.isUnreliable, DataPointRT.isSetUnreliable, DataSourceUtils.checkInitialized;
- corrected test: InitializeWithErrorsDataSourceRtTest;
- change type catch from IOException to Throwable;
- corrected test: InitializeWithErrorsDataSourceRtTest for VMStatDataSourceRT - update PrepareForTest annotation, if dataSourceRT instanceof VMStatDataSourceRT, for MessagingDataSourceRT with MQTT throw MessagingServiceException after invoke MessageService.open;
- fixed generate many events by ModbusDataSource;
- corrected test InitializeDataSourceRtTest;
- refactor InitializeDataSourceRtMockUtils;
- added class: RuntimeMockUtils
- fixed generate many events by: Pop3DataSourceRT, PachubeDataSourceRT, NmeaDataSourceRT, HttpRetrieverDataSourceRT, BACnetIPDataSourceRT, change to active events;
- change logging fatal to debug level in methods: MBusDataSourceRT.initialize(), MBusDataSourceRT.terminate();
- fixed DataPointUnreliableUtilsTest, InitializeDataSourceRtTest, InitializeWithErrorsDataSourceRtTest, mocking TimeoutTask;
- corrected terminate method for: Alpha2DataSource, Dnp3DataSource, DrStorageHt5bDataSource, IEC101DataSource, OPCDataSource, RadiuinoEventDataSource, RadiuinoPollingDataSource;
- fixed reset unreliable HttpImageDataSourceRT when error retriever;
- refactor DataPointUnreliableUtils;
- fixed RuntimeManager.startDataPoint;
- added tests: InitializeDataSourceRtTest, InitializeWithErrorsDataSourceRtTest;
- corrected test: DataPointUnreliableUtilsTest;
- replacing class CommPortIdentifier from RXTXcomm.jar with a new class ScadaCommPortIdentifier: ASCIISerialDataSource, DrStorageHt5bDataSource, RadiuinoEventDataSource, RadiuinoPollingDataSource;
- corrected signaling errors in: BACnetIPDataSourceRT, HttpReceiverDataSourceRT, ModbusDataSource, NmeaDataSourceRT, PachubeDataSourceRT, PersistentDataSourceRT, SnmpDataSourceRT, ViconicsDataSourceRT;
- try catch Throwable;
- change logging level from WARN to ERROR for dataSourceRtLoggingLevel, dataPointRtLoggingLevel (log4j2.xml);
- refactoring DataPointUnreliableUtils;
- added methods: DataPointRT.isUnreliable, DataPointRT.isSetUnreliable, DataSourceUtils.checkInitialized;
- corrected test: InitializeWithErrorsDataSourceRtTest;
- change type catch from IOException to Throwable;
- corrected test: InitializeWithErrorsDataSourceRtTest for VMStatDataSourceRT - update PrepareForTest annotation, if dataSourceRT instanceof VMStatDataSourceRT, for MessagingDataSourceRT with MQTT throw MessagingServiceException after invoke MessageService.open;
- fixed generate many events by ModbusDataSource;
- corrected test InitializeDataSourceRtTest;
- refactor InitializeDataSourceRtMockUtils;
- added class: RuntimeMockUtils
- fixed generate many events by: Pop3DataSourceRT, PachubeDataSourceRT, NmeaDataSourceRT, HttpRetrieverDataSourceRT, BACnetIPDataSourceRT, change to active events;
- change logging fatal to debug level in methods: MBusDataSourceRT.initialize(), MBusDataSourceRT.terminate();
- fixed DataPointUnreliableUtilsTest, InitializeDataSourceRtTest, InitializeWithErrorsDataSourceRtTest, mocking TimeoutTask;
- fixed generate many events by SqlDataSourceRT;
- fixed export DrStorageHt5bDataSourceVO by removed @JsonRemoteProperty from validate method;
@Patrykb0802 Patrykb0802 added this to the 2.8.0 milestone Jul 12, 2024
Copy link

github-actions bot commented Jul 12, 2024

Java JUnit Test Results

2 373 tests   2 373 ✅  45s ⏱️
  111 suites      0 💤
  111 files        0 ❌

Results for commit 692dede.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jul 12, 2024

Java Script Mocha Unit Test Results

268 tests   268 ✅  4s ⏱️
 70 suites    0 💤
  1 files      0 ❌

Results for commit 692dede.

♻️ This comment has been updated with latest results.

- fixed updateAttemptsCounters;
- test.failFast, testLogging.exceptionFormat = full;
@Limraj Limraj closed this Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants