[Test] e2e test fails if a Config DB is pre-initialized on the test bed #1508
Comments
I'd suggest to add some bootstrapping logic before running any tests:
This way the test should fail gracefully instead of reporting some very confusing error messages. |
I will take care of this. |
Do we also know what is the error, is it a bug vs. a test code issue. Can a customer hit such a problem with a config DB? Just asking as we don't have the logs for the error. |
it is a test issue. in customer environment it's perfectly fine to have the DB and the CLI is supposed to handle it all |
@govint Copy the error from PR #1464: FAIL: basic_test.go:159: BasicTestSuite.TestVmGroupVolumeIsolation basic_test.go:164: |
A quick fix would be to improve the current ConfigInit util function: check if the DB is already initialized - if it's already initialized, just remove it. I can send a quick fix for above solution. However, to make the whole end-to-end test more robust, I think we should do what I suggested above. @govint Do you have any concern for my suggestion above, especially, cleaning up the Config DB if it already exists before each test group? |
The subject says it all. The test fail. They should try to remove the config DB first (and ignore rm failures) and then proceed
//CC @pshahzeb @shuklanirdesh82
The text was updated successfully, but these errors were encountered: