예제 #1
0
def handler(event, context):
    """ The lambda function entry point

    :param event:
        Dictionary containing parameters related to the function call
    :param context:
        Runtime execution and environmental information for this event
    """

    results = hello_lambda.run(event)

    print('\n'.join([ '{}'.format(r[0]) for r in results[:20] ]))
    return 'Jargon Count: {}'.format(len(results))
예제 #2
0
 def test_run(self):
     """ doc... """
     result = hello_lambda.run({'repo':'ansible/ansible'})
     print(result)
     self.assertTrue(len(result) > 0)