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
60 stars 85 forks source link

MongoDB authSource is not using it #1526

Closed cblanco-libelium closed 8 months ago

cblanco-libelium commented 8 months ago

IoT Agent Node Lib version the issue has been seen with

master

Bound or port used (API interaction)

Other

NGSI version

Other

Are you running a container?

None

Image type

None

Expected behaviour you didn't see

When setting the IOTA_MONGO_AUTH_SOURCE it should be build the option on the connection string of mongo

Unexpected behaviour you saw

It doesnt appear in the url, also tests are not correct because the expecting behaviour when using authSource is not concatening in the string connection

I'll post a PR now with the fix.

Steps to reproduce the problem

No response

Configs

No response

Log output

No response

cblanco-libelium commented 8 months ago

My changes proposal are in PRR