weizhouapache commented on issue #8931:
URL: https://github.com/apache/cloudstack/issues/8931#issuecomment-2079559208

   I updated the integration test
   ```
   diff --git a/test/integration/smoke/test_events_resource.py 
b/test/integration/smoke/test_events_resource.py
   index 660cbd37bce..4bbab66532f 100644
   --- a/test/integration/smoke/test_events_resource.py
   +++ b/test/integration/smoke/test_events_resource.py
   @@ -16,7 +16,6 @@
    # under the License.
    """ BVT tests for Events Resource
    """
   -import json
    import os
    import tempfile
    import time
   @@ -185,7 +184,7 @@ class TestEventsResource(cloudstackTestCase):
            for event in events:
                if event.type.startswith("VM.") or 
(event.type.startswith("NETWORK.") and not 
event.type.startswith("NETWORK.ELEMENT")) or event.type.startswith("VOLUME.") 
or event.type.startswith("ACCOUNT.") or event.type.startswith("DOMAIN.") or 
event.type.startswith("TEMPLATE."):
                    if event.resourceid is None or event.resourcetype is None:
   -                    self.debug("Failed event:: %s" % json.dumps(event, 
indent=2))
   +                    self.debug("Failed event:: %s" % event)
                        self.fail("resourceid or resourcetype for the event not 
found!")
                    else:
                        self.debug("Event %s at %s:: Resource Type: %s, 
Resource ID: %s" % (event.type, event.created, event.resourcetype, 
event.resourceid))
   ```
   
   and got the following error (`resourceid` is not found)
   `
   test_01_events_resource 
(tests.smoke.test_events_resource.TestEventsResource): DEBUG: Failed event:: 
{id : '4a7bbf38-35ee-42d3-ada6-09ffc20b702c', username : 'admin', type : 
'VOLUME.DESTROY', level : 'INFO', description : 'Successfully completed 
destroying a volume', account : 'admin', domainid : 
'37ff2485-cc1e-11ee-a4eb-1e00db000197', domain : 'ROOT', resourcetype : 
'Volume', created : '2024-04-26T13:24:11+0000', state : 'Completed'}
   `
   
   it looks the error `test_01_events_resource` is caused by #8800  (merged on 
2024-04-12)
   
   cc @vishesh92 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to