telefonicaid / iotagent-node-lib

Module to enable IoT Agent developers to build custom agents for their devices that can easily connect to NGSI Context Brokers
https://iotagent-node-lib.rtfd.io/
GNU Affero General Public License v3.0
58 stars 84 forks source link

More flexible functional test (to cover northbound-only interactions) #1581

Open fgalan opened 4 months ago

fgalan commented 4 months ago

(Comes from https://github.com/telefonicaid/iotagent-node-lib/pull/1579#discussion_r1494482087)

Currently functional test use a script base in three fixed steps:

  1. Group provision
  2. Send measure
  3. Check result at CB

Thus, they doesn't allow steps like this one (involving only northbound interactions), inspired in the PR #1579 functionality

  1. Create device A
  2. Create device B
  3. Create device C
  4. Do POST /iot/op/delete with A, B
  5. Check that only C exist in the IOTA

It would be great to make functional tests more flexible to cover this kind of cases