Open gnuoy opened 1 year ago
Are you able to reproduce this issue with other custom events? (e.g. tls_certificates lib or cos_agent lib)
Are you able to reproduce this issue with other custom events? (e.g. tls_certificates lib or cos_agent lib)
tbh I'm testing with lots of interfaces which define their own events without issue but the difference seems to be that none of them do it dynamically. I'm really suspicious of the call to self.on.define_event and neither of those libs have a call to that. Either way, I gave it a try with tls_certificates
and it worked fine https://paste.ubuntu.com/p/MXxM7SdC88/
When using the
relation_aliases
option dynamic events are created. For some reason unlike other events these seem to persist across test invocations and cause event type duplication errors. I'm raising this against this interface as it's the only place I see this issue but it's possible the root cause of the bug is in ops.Steps to reproduce
Run a ops.scenario (or ops.testing)
pytest
test which usesDatabaseRequires
with therelations_aliases
option. For example:Expected behavior
Actual behavior
Versions