Skip to content

qxf2/qxf2-lambdas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A collection of lambdas used at Qxf2

AWS lambda function used by Qxf2 will live in this repo. Each lambda will have it's own directory. Optionally, each lambda might have one GitHub Action related to it's deploy.

Context

We are really not sure how to distribute code among repos when maintaining a microservices style of architecture. We use a few AWS lambda functions within Qxf2. As of July 2020, they were in the repos that needed them. We moved all the lambdas into one repo to try out how this style of distributing code would work out for us.

Prerequisite for running Unit tests and End to End tests

1.Please make sure that you have setup aws credentials of the test account such as Region, Access Key and Secret access key in the ~/.aws/credentials folder 2.Create sqs queue which is subscribed to qxf2-skype-listner SNS topic. 3.Mention the sqs name in the sqs_utilities_conf.py file in the QUEUE_URL_LIST. 4.Minimum Python version requirement is 3.7+

How to run End to End tests

Please run the test using command python -m pytest tests/test_end_to_end_employee_skype_message.py -sv

How to run Unit test?

You can run test using command coverage run -m pytest tests/test_integration_daily_messages_lambda.py. Before running test please ensure that you have setup with aws_access_key_id, aws_secret_access_key and region in the credentials file located under .aws folder. In case this folder is not available then please create a folder in the root directory and add credentials file there.

About

A collection of different Qxf2 lambdas

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages