PlatformResources Controller Refactor with Integration Testing for OpenTSDB#312
Conversation
e4419b0 to
dd0a7e4
Compare
|
Requires method implementations in Toolkit that can be found here: adamkorynta/opendcs#7 |
|
Retrieval bug under investigation. Unable to retrieve stored data, objects come back with a valid DBKey but no other data populated. NetlistResources is currently experiencing the same bug, it is unclear if they are related. |
|
Bugs cleared up, requires changes in Toolkit including changes to testing harness. |
976db78 to
0dba73e
Compare
0dba73e to
be17a24
Compare
be17a24 to
7666abd
Compare
| ret.setAgency(platform.getAgency()); | ||
| ret.setDescription(platform.getDescription()); | ||
| ret.setPlatformDesignator(platform.getDesignator()); | ||
| ret.lastModifyTime = Objects.requireNonNull(platform.getLastModified()); |
There was a problem hiding this comment.
This will throw a null pointer exception, which is an error code 500 internal error rather than specifying a client error. I don't see the pre-existing logic performing this validation. In the old dao, the last modified is getting set to current and then returned to the client.
There was a problem hiding this comment.
I reverted it to use the current date. This field was causing a silent exception within the Toolkit when null. I'll likely make a PR with a fix for that next week.
|
…enTSDB (#312) Refactored PlatformResources Controller, added OpenTSDB integration testing
…enTSDB (#312) Refactored PlatformResources Controller, added OpenTSDB integration testing



Problem Description
Fixes #240.
Solution
Implements integration testing against OpenTSDB.
how you tested the change
Integration testing included.
Where the following done:
(Formerly called regression tests.)
If you aren't sure leave unchecked and we will help guide you to want needs changing where.