@@ -38,16 +38,20 @@ def test_record_custom_event_returns_falsy_if_event_was_dropped
3838
3939 def test_record_custom_event_accepts_valid_event_types
4040 NewRelic ::Agent . record_custom_event ( 'ValidEvent' , { } )
41- NewRelic ::Agent . record_custom_event ( 'Valid_Event' , { } )
42- NewRelic ::Agent . record_custom_event ( 'Valid:Event' , { } )
43- NewRelic ::Agent . record_custom_event ( 'Valid Event' , { } )
41+ NewRelic ::Agent . record_custom_event ( 'valid_Event_underscore' , { } )
42+ NewRelic ::Agent . record_custom_event ( 'Valid:Event:Colon' , { } )
43+ NewRelic ::Agent . record_custom_event ( 'Valid Event Space' , { } )
44+ NewRelic ::Agent . record_custom_event ( 'Valid.Event.Period' , { } )
45+ NewRelic ::Agent . record_custom_event ( 'Valid/Event/ForwardSlash' , { } )
46+ NewRelic ::Agent . record_custom_event ( 'Valid123Event456Numbers' , { } )
47+ NewRelic ::Agent . record_custom_event ( 'valideventlowercase' , { } )
4448 NewRelic ::Agent . record_custom_event ( :ValidSymbol , { } )
45- NewRelic ::Agent . record_custom_event ( :Valid_Symbol , { } )
49+ NewRelic ::Agent . record_custom_event ( :Valid_Symbol_Underscore , { } )
4650
4751 NewRelic ::Agent . agent . send ( :harvest_and_send_custom_event_data )
4852 events = last_posted_events
4953
50- assert_equal ( 6 , events . size )
54+ assert_equal ( 10 , events . size )
5155 end
5256
5357 def test_record_custom_event_raises_on_invalid_event_types
0 commit comments