grr/server/grr_response_server/flows/cron/system_test.py
def _CheckGRRVersionBreakDown(self):
    """Checks the result of the GRRVersionBreakDown cron job."""
    # All machines should be in All once. Windows machines should be in Label1
    # and Label2. There should be no stats for UserLabel.
    report_type = rdf_stats.ClientGraphSeries.ReportType.GRR_VERSION
    self._CheckVersionStats(u"All", report_type, [2, 2, 22, 22])
    self._CheckVersionStats(u"Label1", report_type, [0, 0, 10, 10])
    self._CheckVersionStats(u"Label2", report_type, [0, 0, 10, 10])
Checks the result of the GRRVersionBreakDown cron job.
Checks the result of the GRRVersionBreakDown cron job.
Checks the result of the GRRVersionBreakDown cron job .
def _CheckGRRVersionBreakDown(self):
    report_type = rdf_stats.ClientGraphSeries.ReportType.GRR_VERSION
    self._CheckVersionStats(u"All", report_type, [2, 2, 22, 22])
    self._CheckVersionStats(u"Label1", report_type, [0, 0, 10, 10])
    self._CheckVersionStats(u"Label2", report_type, [0, 0, 10, 10])
def _CheckGRRVersionBreakDown ( self ) : report_type = rdf_stats . ClientGraphSeries . ReportType . GRR_VERSION self . _CheckVersionStats ( u"All" , report_type , [ 2 , 2 , 22 , 22 ] ) self . _CheckVersionStats ( u"Label1" , report_type , [ 0 , 0 , 10 , 10 ] ) self . _CheckVersionStats ( u"Label2" , report_type , [ 0 , 0 , 10 , 10 ] )
Checks the result of the GRRVersionBreakDown cron job.
Checks the result of the GRRVersionBreakDown cron job .
"""Checks the result of the GRRVersionBreakDown cron job.""" # All machines should be in All once. Windows machines should be in Label1 # and Label2. There should be no stats for UserLabel.
self