Ejemplo n.º 1
0
    def testStartScheduledFlowsSucceedsWithoutScheduledFlows(self):
        client_id = self.SetupClient(0)
        username = self.SetupUser("u0")

        flow.StartScheduledFlows(client_id, username)
Ejemplo n.º 2
0
    def testStartScheduledFlowsFailsForUnknownClient(self):
        self.SetupClient(0)
        username = self.SetupUser("u0")

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

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