-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add Mongodb test example #2903
Add Mongodb test example #2903
Conversation
examples/mongodb/locustfile.py
Outdated
|
||
|
||
class MongoDBUser(MongoDBUser): | ||
conn_string = os.getenv("MONGODB_URI") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe leave this as a hardcoded string? reading from env isn't really key to this example :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah good call😊
locust/contrib/mongodb.py
Outdated
@@ -0,0 +1,45 @@ | |||
from gevent import monkey | |||
|
|||
_ = monkey.patch_all() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
importing locust should run patching? No need to do it yourself...
Ignore the build error, its a github thing and I have fixed it in master... |
thx! |
This is a resubmission/continuation of #2882.
Additions:
Updates: