Authenticate with username and password in mongodb with Roboframework.

229 views
Skip to first unread message

Dhiraj Hadkar

unread,
Jun 16, 2017, 7:57:29 AM6/16/17
to robotframework-users
How do i authenticate with username and password with robot frame work.

Connect To MongoDB Server with credentials is my keyword.
and i am trying to extend

Connect To Server | Server | port | database

with "Connect To Server | Server | port | database | username | password"

Jerry Schneider

unread,
Jun 16, 2017, 9:11:51 AM6/16/17
to robotframe...@googlegroups.com
Not sure which MongoDB RF library you are using.  The one from iPlantCollaborative/CyVerse (https://github.com/iPlantCollaborativeOpenSource/Robotframework-MongoDB-Library) will accept the following although I have not used it in several years now.

Connect to MongoDB    dbHost=<username>:<password>@hostname.domain.org dbPort=27017

The above is shown in the keyword documentation.

Hope that helps

If you are still having problems, you might try contacting the folks at iPlantCollaborative/CyVerse for assistance, I am not longer working there or with MongoDB.

Jerry S
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

-- 
http://www.linkedin.com/in/jerryschneider
Linux registered user #475536
Ubuntu registered user #28583
Reply all
Reply to author
Forward
0 new messages