mongodb-labs / drivers-atlas-testing

Drivers Atlas Testing
Apache License 2.0
8 stars 27 forks source link

DRIVERS-2363 Mark all Atlas test setup exceptions as 'cloud-failure'. #148

Closed matthewdale closed 2 years ago

matthewdale commented 2 years ago

DRIVERS-2363

Currently, some exceptions that can happen during the Atlas test environment setup are not marked as a setup failure and instead show up as a test failure. The cause is that the SingleTestRunner constructor performs a bunch of Atlas cluster provisioning work as well as the run() method, but the constructor has no exception handling. To resolve that, move all Atlas "run-one" exception handling and "status" file writing into cli.py, and add exception handling to calling the SingleTestRunner constructor.

Changes:

Tested in this patch and seems successful.