-
Notifications
You must be signed in to change notification settings - Fork 30
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
Remove legacy NGSIv1 code - discover function #256
Comments
IoT Agents should never make direct NGSI requests, that is the job of iotagent-node-lib. |
Is lightweightm2m-iotagent the only one in this situation? Is there a |
It is the only one of the Telefónica IoT Agents with |
This IoTA or, at least, these tests, are a bit different compared with the other IoTAS. In the other IoTAS, the tests are executed without the need of having a CB running, verifying the requests that the IoTA makes with the mock server. In this case the agent is connected to a real CB, and what is checked is that the action has had an effect on the CB itself. Moving |
PR #257 |
After merging PR #257, this issue can be now closed. Some bits moved to #235 (comment) |
Some legacy NGSIv1 requests remain in the codebase after merging #253
This function returns the registrations for a given entity.
lightweightm2m-iotagent/lib/ngsiUtils.js
Lines 128 to 149 in c072213
Having in mind the NGSIv2 spec does not allow to query for a specific entity, there is not a direct equivalent. But this function is only used at test/unit/ngsiv2/registration-test.js
lightweightm2m-iotagent/test/unit/ngsiv2/registration-test.js
Line 98 in c072213
Since the purpose of the function is just to check if the registration was created properly (and used just for testing), making the request GET v2/registrations in this case have the same effect (since the DB is cleaned between tests)
It was discovered here
The text was updated successfully, but these errors were encountered: