@@ -231,7 +231,7 @@ func TestAudit_FilterByStatus(t *testing.T) {
231231
232232 // Filter by success status
233233 params := url.Values {}
234- params .Add ("transaction_status " , "SUCCESS " )
234+ params .Add ("status " , "success " )
235235 resp , err = http .Get (auditBaseURL + "/api/data-exchange-events?" + params .Encode ())
236236 require .NoError (t , err )
237237 defer resp .Body .Close ()
@@ -461,13 +461,19 @@ func TestAudit_DatabaseVerification(t *testing.T) {
461461func TestAudit_CreateManagementEvent (t * testing.T ) {
462462 timestamp := time .Now ().UTC ().Format (time .RFC3339 )
463463 createReq := map [string ]interface {}{
464- "timestamp" : timestamp ,
465- "eventType" : "schema_created" ,
466- "userId" : "test-user-123" ,
467- "resourceType" : "schema" ,
468- "resourceId" : "test-schema-123" ,
469- "action" : "create" ,
470- "details" : map [string ]interface {}{
464+ "timestamp" : timestamp ,
465+ "eventType" : "CREATE" ,
466+ "status" : "success" ,
467+ "actor" : map [string ]interface {}{
468+ "type" : "USER" ,
469+ "id" : "test-user-123" ,
470+ "role" : "ADMIN" ,
471+ },
472+ "target" : map [string ]interface {}{
473+ "resource" : "SCHEMAS" ,
474+ "resourceId" : "test-schema-123" ,
475+ },
476+ "metadata" : map [string ]interface {}{
471477 "schemaName" : "Test Schema" ,
472478 },
473479 }
0 commit comments