canonical / cassandra-k8s-operator

Apache License 2.0
1 stars 4 forks source link

Fix event definition in harness tests #28

Closed rbarry82 closed 3 years ago

rbarry82 commented 3 years ago

Since define_event operates directly on a class, and the consumer library was previously taking on from ConsumerEvents, re-define it here. This is ok at runtime, but confuses Harness with multiple runs, since the class definition is repeatedly modified, and all attempts to setattr after the first test case fail