SoftwareAG / apama-eplapps-tools

Tooling for uploading apps and testing apps within Apama EPL Apps
Apache License 2.0
5 stars 7 forks source link

Cleanup PYSYS test devices also on startup #8

Open haraldmeyer opened 1 month ago

haraldmeyer commented 1 month ago

It looks like it is very common, that test devices are not properly cleaned up on shutdown especially if the test does not terminate properly. In my case, I have 1500 test devices after a couple of days of test development. It would be good if the test framework deleted all PYSYS devices on startup.

skom-sag commented 1 month ago

https://github.com/SoftwareAG/apama-eplapps-tools/blob/c6ed29ebdb153ecde696d39a488c6a4e3e1d4ecf/testframework/apamax/eplapplications/basetest.py#L188 is supposed to achieve the exact same behavior, are you saying that its not working as expected ?

Also to note is that the DELETE of managedObjects is asynchronous, so it might take sometime for devices to be completely cleaned up.

haraldmeyer commented 1 month ago

I think I know what the issue is, we are using the base class "ApamaC8YBaseTest" for our test but _deleteTestDevices() is only called by the derived "SimpleTest" classes.