Keda: MongoDB e2e tests are failing

Created on 18 Jan 2021  Â·  7Comments  Â·  Source: kedacore/keda

MongoDB tests are constantly failing, see the error log:

2021-01-18T01:32:16.5416875Z >>> scalers/mongodb.test.ts.log <<<
2021-01-18T01:32:16.5417242Z 
2021-01-18T01:32:16.5417638Z namespace/mongodb created
2021-01-18T01:32:16.5418208Z deployment.apps/mongodb created
2021-01-18T01:32:16.5418920Z service/mongodb-svc created
2021-01-18T01:32:16.5419360Z 1
2021-01-18T01:32:16.5419672Z 1
...
2021-01-18T01:32:16.5426605Z 1
2021-01-18T01:32:16.5426925Z 1
2021-01-18T01:32:16.5427504Z mongodb-85c4b7f4d9-rd975
2021-01-18T01:32:16.5428050Z MongoDB shell version v4.2.1
2021-01-18T01:32:16.5428923Z connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
2021-01-18T01:32:16.5430148Z Implicit session: session { "id" : UUID("b606fd10-57f9-4119-b0fd-b79ada1b54dc") }
2021-01-18T01:32:16.5430850Z MongoDB server version: 4.2.1
2021-01-18T01:32:16.5431337Z Successfully added user: {
2021-01-18T01:32:16.5445365Z    "user" : "test_user",
2021-01-18T01:32:16.5445768Z    "roles" : [
2021-01-18T01:32:16.5446139Z        {
2021-01-18T01:32:16.5446526Z            "role" : "readWrite",
2021-01-18T01:32:16.5446944Z            "db" : "test"
2021-01-18T01:32:16.5447306Z        }
2021-01-18T01:32:16.5447747Z    ]
2021-01-18T01:32:16.5448071Z }
2021-01-18T01:32:16.5448478Z MongoDB shell version v4.2.1
2021-01-18T01:32:16.5449417Z connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
2021-01-18T01:32:16.5450763Z Implicit session: session { "id" : UUID("3f97ae97-69f3-430f-b732-70237a6d08ac") }
2021-01-18T01:32:16.5451442Z MongoDB server version: 4.2.1
2021-01-18T01:32:16.5451843Z 1
2021-01-18T01:32:16.5452401Z   ✔ Job should have 0 job on start (213ms)
2021-01-18T01:32:16.5453180Z   ✖ Job should scale to 5 then back to 0 Job count should be 0 after 3 minutes
2021-01-18T01:32:16.5453600Z 
2021-01-18T01:32:16.5453946Z   1 test failed
2021-01-18T01:32:16.5454200Z 
2021-01-18T01:32:16.5454600Z   Job should scale to 5 then back to 0
2021-01-18T01:32:16.5454909Z 
2021-01-18T01:32:16.5455400Z   /__w/keda/keda/tests/scalers/mongodb.test.ts:114
2021-01-18T01:32:16.5455786Z 
2021-01-18T01:32:16.5456150Z    113:                                                                 
2021-01-18T01:32:16.5456857Z    114:     t.is('0', jobCount, 'Job count should be 0 after 3 minutes')
2021-01-18T01:32:16.5457398Z    115: })                                                              
2021-01-18T01:32:16.5457663Z 
2021-01-18T01:32:16.5458074Z   Job count should be 0 after 3 minutes
2021-01-18T01:32:16.5458401Z 
2021-01-18T01:32:16.5458759Z   Difference:
2021-01-18T01:32:16.5459022Z 
2021-01-18T01:32:16.5459427Z   - '0'
2021-01-18T01:32:16.5459849Z   + '6'
bug testing

Most helpful comment

@zroubalik Of course, I'm working on fixing it.

All 7 comments

@NUCsimple could you please take a look?

@zroubalik Of course, I'm working on fixing it.

Now it should be OK. I passed the local test. Can you help me test again? @zroubalik
image

@NUCsimple I am ready to help you, how can I do that and where did you do the change?

@zroubalik I just upgraded the image. You don't need to make any changes. You just need to trigger the test again.

@NUCsimple great, seems like the test is stable now. Thanks.

Could you please add the test image sources to this directory https://github.com/kedacore/test-tools/tree/master/e2e/images ?

Thanks!

@zroubalik Okay, I'll add this image later.

Was this page helpful?
0 / 5 - 0 ratings