Example #1
0
    def testStartScheduledFlowsSucceedsWithoutScheduledFlows(self):
        client_id = self.SetupClient(0)
        username = self.SetupUser("u0")

        flow.StartScheduledFlows(client_id, username)
Example #2
0
    def testStartScheduledFlowsFailsForUnknownClient(self):
        self.SetupClient(0)
        username = self.SetupUser("u0")

        with self.assertRaises(db.UnknownClientError):
            flow.StartScheduledFlows("C.1234123412341234", username)
Example #3
0
    def testStartScheduledFlowsFailsForUnknownUser(self):
        client_id = self.SetupClient(0)
        self.SetupUser("u0")

        with self.assertRaises(db.UnknownGRRUserError):
            flow.StartScheduledFlows(client_id, "nonexistent")