functional test fail due to pymongo library version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MongoDB Charm |
Fix Released
|
High
|
Aymen Frikha |
Bug Description
Functional test is failing with this error:
2021-12-01 09:13:49 [INFO] Traceback (most recent call last):
2021-12-01 09:13:49 [INFO] File "./tests/
2021-12-01 09:13:49 [INFO] insert_id = test_db.
2021-12-01 09:13:49 [INFO] File "/home/
2021-12-01 09:13:49 [INFO] self.__
2021-12-01 09:13:49 [INFO] TypeError: 'Collection' object is not callable. If you meant to call the 'insert' method on a 'Collection' object it is failing because no such method exists.
tests/functiona
Related branches
- 🤖 prod-jenkaas-bootstack (community): Approve (continuous-integration)
- Xav Paice (community): Approve
- BootStack Reviewers: Pending requested
-
Diff: 151 lines (+15/-33)5 files modifieddev/null (+0/-8)
hooks/hooks.py (+14/-18)
metadata.yaml (+0/-1)
tests/functional/requirements.txt (+1/-1)
tests/functional/tests/tests.yaml (+0/-5)
Changed in charm-mongodb: | |
status: | Confirmed → Fix Released |
assignee: | nobody → Aymen Frikha (aym-frikha) |
I'm wondering what is the best approach here, is it fixing the pymongo version in the requirement file or changing the functional test script by using insert_on or insert_many methods ?