Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
maddieford committed Oct 6, 2023
1 parent e776787 commit 41f5c4a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/ga/test_send_telemetry_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,13 +368,13 @@ def test_it_should_enqueue_and_send_events_properly(self, mock_lib_dir, *_):
'<Param Name="EventTid" Value="{4}" T="mt:uint64" />' \
'<Param Name="EventPid" Value="{5}" T="mt:uint64" />' \
'<Param Name="TaskName" Value="{6}" T="mt:wstr" />' \
'<Param Name="KeywordName" Value=\'{7}\' T="mt:wstr" />' \
'<Param Name="ExtensionType" Value="json" T="mt:wstr" />' \
'<Param Name="IsInternal" Value="False" T="mt:bool" />' \
'<Param Name="OSVersion" Value="{8}" T="mt:wstr" />' \
'<Param Name="OSVersion" Value="{7}" T="mt:wstr" />' \
'<Param Name="ExecutionMode" Value="IAAS" T="mt:wstr" />' \
'<Param Name="RAM" Value="{9}" T="mt:uint64" />' \
'<Param Name="Processors" Value="{10}" T="mt:uint64" />' \
'<Param Name="RAM" Value="{8}" T="mt:uint64" />' \
'<Param Name="Processors" Value="{9}" T="mt:uint64" />' \
'<Param Name="KeywordName" Value=\'{10}\' T="mt:wstr" />' \
'<Param Name="TenantName" Value="db00a7755a5e4e8a8fe4b19bc3b330c3" T="mt:wstr" />' \
'<Param Name="RoleName" Value="MachineRole" T="mt:wstr" />' \
'<Param Name="RoleInstanceName" Value="b61f93d0-e1ed-40b2-b067-22c243233448.MachineRole_IN_0" T="mt:wstr" />' \
Expand All @@ -384,8 +384,8 @@ def test_it_should_enqueue_and_send_events_properly(self, mock_lib_dir, *_):
'<Param Name="VMId" Value="99999999-8888-7777-6666-555555555555" T="mt:wstr" />' \
'<Param Name="ImageOrigin" Value="2468" T="mt:uint64" />' \
']]></Event>'.format(AGENT_VERSION, TestSendTelemetryEventsHandler._TEST_EVENT_OPERATION, CURRENT_AGENT, test_opcodename, test_eventtid,
test_eventpid, test_taskname, json.dumps({"CpuArchitecture": platform.machine()}), osversion, int(osutil.get_total_mem()),
osutil.get_processor_cores()).encode('utf-8')
test_eventpid, test_taskname, osversion, int(osutil.get_total_mem()),
osutil.get_processor_cores(), json.dumps({"CpuArchitecture": platform.machine()})).encode('utf-8')

self.assertIn(sample_message, collected_event)

Expand Down

0 comments on commit 41f5c4a

Please sign in to comment.