GNUnet  0.11.x
Public Member Functions | Data Fields
gnunet_testing.EqualStatisticsCondition Class Reference
Inheritance diagram for gnunet_testing.EqualStatisticsCondition:
[legend]
Collaboration diagram for gnunet_testing.EqualStatisticsCondition:
[legend]

Public Member Functions

def __init__ (self, peer, subsystem, name, peer2, subsystem2, name2)
 
def check (self)
 
def evaluate (self, failed_only)
 
- Public Member Functions inherited from gnunet_testing.Condition
def __init__ (self)
 
def __init__ (self, type)
 
def check (self)
 
def evaluate (self, failed_only)
 

Data Fields

 fulfilled
 
 type
 
 peer
 
 subsystem
 
 name
 
 result
 
 peer2
 
 subsystem2
 
 name2
 
 result2
 
- Data Fields inherited from gnunet_testing.Condition
 fulfilled
 
 type
 

Detailed Description

Definition at line 205 of file gnunet_testing.py.

Constructor & Destructor Documentation

◆ __init__()

def gnunet_testing.EqualStatisticsCondition.__init__ (   self,
  peer,
  subsystem,
  name,
  peer2,
  subsystem2,
  name2 
)

Definition at line 206 of file gnunet_testing.py.

206  def __init__(self, peer, subsystem, name, peer2, subsystem2, name2):
207  self.fulfilled = False
208  self.type = 'equalstatistics'
209  self.peer = peer
210  self.subsystem = subsystem
211  self.name = name
212  self.result = -1
213  self.peer2 = peer2
214  self.subsystem2 = subsystem2
215  self.name2 = name2
216  self.result2 = -1
217 
def __init__(self, test, cfg_file)

Member Function Documentation

◆ check()

def gnunet_testing.EqualStatisticsCondition.check (   self)

Definition at line 218 of file gnunet_testing.py.

References gnunet_testing.Check.fulfilled, gnunet_testing.Condition.fulfilled, GnsRecordInfo.name, GNUNET_IDENTITY_EgoLookup.name, userdata.name, GNUNET_IDENTITY_Ego.name, GNUNET_GNS_LookupWithTldRequest.name, GNUNET_REST_Plugin.name, RequestHandle.name, GNUNET_DNSPARSER_Query.name, GNUNET_GETOPT_CommandLineOption.name, ServiceList.name, GNUNET_RECLAIM_Attribute.name, LocalService.name, gnunet_testing.StatisticsCondition.name, GNUNET_RECLAIM_Credential.name, AuthorityChain.name, AuthorityChain::.name, GNUNET_ARM_ServiceInfo.name, gnunet_testing.EqualStatisticsCondition.name, LoggingHandle.name, Experiment.name, GNUNET_MESSENGER_MessageName.name, name, GNS_ResolverHandle.name, GNUNET_MESSENGER_MessageFile.name, GNUNET_MESSENGER_MessageBody.name, GNUNET_DNSPARSER_Record.name, GNUNET_PQ_PreparedStatement.name, GNUNET_FS_ProgressInfo.name, GNUNET_FS_ProgressInfo::GNUNET_FS_SearchStatusEvent::GNUNET_GS_SearchResultNamespaceEvent.name, gnunet_testing.EqualStatisticsCondition.name2, GNUNET_ATS_ReservationContext.peer, PeerRecord.peer, GNUNET_CADET_ChannelMonitor.peer, Context.peer, CadetPeerPathEntry.peer, RegexAcceptBlock.peer, Session.peer, Location.peer, RequestAddressMessage.peer, GNUNET_CONVERSATION_PhoneRecord.peer, PeerCmdState.peer, GNUNET_CADET_TEST_AdapterContext.peer, GNUNET_CADET_Channel.peer, GNUNET_ATS_AddressListHandle.peer, BenchmarkPeer.peer, ResponseLocSignatureMessage.peer, MigrationReadyPeer.peer, GNUNET_PEERSTORE_Record.peer, AddressAddMessage.peer, GSF_PeerPerformanceData.peer, ConnectNotifyMessage.peer, GSC_KeyExchangeInfo.peer, NotifyTrafficMessage.peer, DisconnectNotifyMessage.peer, gnunet_testing.StatisticsCondition.peer, AddressUpdateMessage.peer, GNUNET_CADET_LocalChannelCreateMessage.peer, AddressDestroyedMessage.peer, SendMessageRequest.peer, ChannelState.peer, LoggingPeer.peer, gnunet_testing.EqualStatisticsCondition.peer, GNUNET_ATS_SessionReleaseMessage.peer, ATS_Address.peer, AddressSuggestionMessage.peer, SendMessageReady.peer, GNUNET_DNS_Advertisement.peer, GNUNET_MESSENGER_MessagePeer.peer, GNUNET_MESSENGER_MessageMiss.peer, GNUNET_CADET_LocalInfo.peer, PreferenceGenerator.peer, SendMessage.peer, PeerInformationMessage.peer, GNUNET_CADET_ChannelInfo.peer, GNUNET_CADET_PeerListEntry.peer, MonitorNotifyMessage.peer, PropertyGenerator.peer, GNUNET_TESTBED_EventInformation.peer, GNUNET_TESTBED_EventInformation::.peer, AddressListRequestMessage.peer, GNUNET_CADET_RequestPathInfoMessage.peer, ReservationRequestMessage.peer, ReservationResultMessage.peer, GNUNET_CADET_PeerPathDetail.peer, GNUNET_MESSENGER_MessageBody.peer, ChangePreferenceMessage.peer, FeedbackPreferenceMessage.peer, RecentRequest.peer, GNUNET_CADET_TunnelDetails.peer, GNUNET_HELLO_Address.peer, GNUNET_TUN_GnsVpnRecord.peer, LocUriAssembly.peer, GNUNET_CONSENSUS_RoundContextMessage.peer2, TaskKey.peer2, GNUNET_CADET_ConnectionBrokenMessage.peer2, gnunet_testing.EqualStatisticsCondition.peer2, GNUNET_TESTBED_EventInformation.peer2, GNUNET_TESTBED_EventInformation::.peer2, GNUNET_ARM_ResultMessage.result, gnunet_testing.StatisticsCondition.result, gnunet_testing.EqualStatisticsCondition.result, GNUNET_ATS_TEST_Topology.result, EqualsContext.result, GNUNET_TESTBED_PeerInformation.result, GNUNET_FS_ProgressInfo.result, GNUNET_FS_ProgressInfo::GNUNET_FS_SearchStatusEvent::GNUNET_FS_SearchResultEvent.result, GNUNET_FS_ProgressInfo::GNUNET_FS_SearchStatusEvent.result, GNUNET_FS_ProgressInfo::GNUNET_FS_SearchStatusEvent::GNUNET_FS_SearchResumeResultEvent.result, gnunet_testing.EqualStatisticsCondition.result2, gnunet_testing.StatisticsCondition.subsystem, gnunet_testing.EqualStatisticsCondition.subsystem, and gnunet_testing.EqualStatisticsCondition.subsystem2.

218  def check(self):
219  if (self.fulfilled == False):
220  self.result = self.peer.get_statistics_value(
221  self.subsystem, self.name
222  )
223  self.result2 = self.peer2.get_statistics_value(
224  self.subsystem2, self.name2
225  )
226  if (self.result == self.result2):
227  self.fulfilled = True
228  return True
229  else:
230  return False
231  else:
232  return True
233 
def get_statistics_value(self, subsystem, name)

◆ evaluate()

def gnunet_testing.EqualStatisticsCondition.evaluate (   self,
  failed_only 
)

Definition at line 234 of file gnunet_testing.py.

References gnunet_testing.Check.fulfilled, gnunet_testing.Condition.fulfilled, GnsRecordInfo.name, GNUNET_IDENTITY_EgoLookup.name, userdata.name, GNUNET_IDENTITY_Ego.name, GNUNET_GNS_LookupWithTldRequest.name, GNUNET_REST_Plugin.name, RequestHandle.name, GNUNET_DNSPARSER_Query.name, GNUNET_GETOPT_CommandLineOption.name, ServiceList.name, GNUNET_RECLAIM_Attribute.name, LocalService.name, gnunet_testing.StatisticsCondition.name, GNUNET_RECLAIM_Credential.name, AuthorityChain.name, AuthorityChain::.name, GNUNET_ARM_ServiceInfo.name, gnunet_testing.EqualStatisticsCondition.name, LoggingHandle.name, Experiment.name, GNUNET_MESSENGER_MessageName.name, name, GNS_ResolverHandle.name, GNUNET_MESSENGER_MessageFile.name, GNUNET_MESSENGER_MessageBody.name, GNUNET_DNSPARSER_Record.name, GNUNET_PQ_PreparedStatement.name, GNUNET_FS_ProgressInfo::GNUNET_FS_SearchStatusEvent::GNUNET_GS_SearchResultNamespaceEvent.name, GNUNET_FS_ProgressInfo.name, gnunet_testing.EqualStatisticsCondition.name2, GNUNET_ATS_ReservationContext.peer, PeerRecord.peer, GNUNET_CADET_ChannelMonitor.peer, Context.peer, CadetPeerPathEntry.peer, RegexAcceptBlock.peer, Session.peer, Location.peer, RequestAddressMessage.peer, GNUNET_CONVERSATION_PhoneRecord.peer, PeerCmdState.peer, GNUNET_CADET_TEST_AdapterContext.peer, GNUNET_ATS_AddressListHandle.peer, GNUNET_CADET_Channel.peer, BenchmarkPeer.peer, ResponseLocSignatureMessage.peer, MigrationReadyPeer.peer, GNUNET_PEERSTORE_Record.peer, AddressAddMessage.peer, GSF_PeerPerformanceData.peer, ConnectNotifyMessage.peer, GSC_KeyExchangeInfo.peer, DisconnectNotifyMessage.peer, NotifyTrafficMessage.peer, gnunet_testing.StatisticsCondition.peer, AddressUpdateMessage.peer, GNUNET_CADET_LocalChannelCreateMessage.peer, AddressDestroyedMessage.peer, SendMessageRequest.peer, ChannelState.peer, LoggingPeer.peer, gnunet_testing.EqualStatisticsCondition.peer, GNUNET_ATS_SessionReleaseMessage.peer, ATS_Address.peer, AddressSuggestionMessage.peer, SendMessageReady.peer, GNUNET_DNS_Advertisement.peer, GNUNET_MESSENGER_MessagePeer.peer, GNUNET_MESSENGER_MessageMiss.peer, GNUNET_CADET_LocalInfo.peer, PreferenceGenerator.peer, SendMessage.peer, PeerInformationMessage.peer, GNUNET_CADET_ChannelInfo.peer, GNUNET_CADET_PeerListEntry.peer, MonitorNotifyMessage.peer, PropertyGenerator.peer, GNUNET_TESTBED_EventInformation.peer, GNUNET_TESTBED_EventInformation::.peer, AddressListRequestMessage.peer, GNUNET_CADET_RequestPathInfoMessage.peer, ReservationRequestMessage.peer, ReservationResultMessage.peer, GNUNET_CADET_PeerPathDetail.peer, GNUNET_MESSENGER_MessageBody.peer, ChangePreferenceMessage.peer, FeedbackPreferenceMessage.peer, RecentRequest.peer, GNUNET_CADET_TunnelDetails.peer, GNUNET_HELLO_Address.peer, GNUNET_TUN_GnsVpnRecord.peer, LocUriAssembly.peer, GNUNET_CONSENSUS_RoundContextMessage.peer2, TaskKey.peer2, GNUNET_CADET_ConnectionBrokenMessage.peer2, gnunet_testing.EqualStatisticsCondition.peer2, GNUNET_TESTBED_EventInformation::.peer2, GNUNET_TESTBED_EventInformation.peer2, GNUNET_ARM_ResultMessage.result, gnunet_testing.StatisticsCondition.result, gnunet_testing.EqualStatisticsCondition.result, GNUNET_ATS_TEST_Topology.result, EqualsContext.result, GNUNET_TESTBED_PeerInformation.result, GNUNET_FS_ProgressInfo.result, GNUNET_FS_ProgressInfo::GNUNET_FS_SearchStatusEvent::GNUNET_FS_SearchResultEvent.result, GNUNET_FS_ProgressInfo::GNUNET_FS_SearchStatusEvent.result, GNUNET_FS_ProgressInfo::GNUNET_FS_SearchStatusEvent::GNUNET_FS_SearchResumeResultEvent.result, gnunet_testing.EqualStatisticsCondition.result2, gnunet_testing.StatisticsCondition.subsystem, gnunet_testing.EqualStatisticsCondition.subsystem, and gnunet_testing.EqualStatisticsCondition.subsystem2.

234  def evaluate(self, failed_only):
235  if (((self.fulfilled == False) and (failed_only == True))
236  or (failed_only == False)):
237  logger.debug(
238  '%s %s %s == %s %s %s %s %s', self.peer.id[:4],
239  self.subsystem.ljust(12), self.name.ljust(30), self.result,
240  self.peer2.id[:4], self.subsystem2.ljust(12),
241  self.name2.ljust(30), self.result2
242  )
243  return self.fulfilled
244 
245 
static void evaluate(struct GNUNET_TIME_Relative duration_total)

Field Documentation

◆ fulfilled

gnunet_testing.EqualStatisticsCondition.fulfilled

Definition at line 207 of file gnunet_testing.py.

◆ type

gnunet_testing.EqualStatisticsCondition.type

Definition at line 208 of file gnunet_testing.py.

◆ peer

gnunet_testing.EqualStatisticsCondition.peer

◆ subsystem

gnunet_testing.EqualStatisticsCondition.subsystem

◆ name

gnunet_testing.EqualStatisticsCondition.name

◆ result

gnunet_testing.EqualStatisticsCondition.result

◆ peer2

gnunet_testing.EqualStatisticsCondition.peer2

◆ subsystem2

gnunet_testing.EqualStatisticsCondition.subsystem2

◆ name2

gnunet_testing.EqualStatisticsCondition.name2

◆ result2

gnunet_testing.EqualStatisticsCondition.result2

The documentation for this class was generated from the following file: