File tree Expand file tree Collapse file tree 4 files changed +8
-9
lines changed
loggroup-lambda-connector Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,8 @@ before_install:
2222- cd $FUNCTION_DIR
2323- sudo pip install -r requirements.txt
2424script :
25- - if [ $FUNCTION_DIR == 'loggroup-lambda-connector/test' ]; then
26- cd .. && npm run build && cd test/ && python $TEST_FILE;
27- else
28- npm run build && python $TEST_FILE;
29- fi
25+ - npm run build
26+ - python $TEST_FILE
3027env :
3128 global :
3229 - secure : iGATK/X1PfH8FCJlUpBbJ//mQ57QBQT0jETyDDH2r+GxZxXPnFS46ugPGsWTX0IDDEGjXE+/P6wnm0ORo7aa3yp7DZnfWFDyrgFchgUo1p3unt5sQcHg/9mitkQF7lHFlnAqM1D69AEGP5WU63m/9xQoj0BVYCVb2eUEqatV1AU8lpvRAkFc2juumy1ba4skoDFLOtrsaO2k+SCCBfMKq2SOJkcPnfMZGTOT7niaNnNAZSDYDovAlMYaLDOR10EMUAyklnmmAADyDxNRwSSAG8JKJMmfxSqIe4+s7xjqztjtkApWmEAjevDLpc62v1TWe0O2zCxnb4E4EBN6A31R1XJha4i/IKSeVL99J9X8aV1wIb9feV85qmZmlxVL2EU7/CcFGTdKeAak3qQWHZ1C6X32TBB6x5C0qASSC/x5pwDDJIOyeZr0Z93+dDhnBLNmzz8sA3h7AyzQZfhTqG/f4/SOgxTf7aF13X8BKuoM8BaGfXjy0keaVb0xbTjtDvi9F21EymWPdwNlQHsKca+EcTT2KE3mwFNrHAsTeNhGzMbrzmbZzvNHlmIwjB1C5l9h4GpUkxNb/mqi9SBTx9YfDIgz0bDOds1T92tGIAcBaHfJLTjc2JIgxwgdL13X3cL8GJBiFFwiJqiKJCSz4SxhWqsrrbsGSQBUqN5UoSsyKco=
Original file line number Diff line number Diff line change 88 },
99 "devDependencies" : {},
1010 "scripts" : {
11- "test" : " echo \" Error: no test specified\" && exit 1"
11+ "test" : " echo \" Error: no test specified\" && exit 1" ,
12+ "build" : " echo `pwd` && rm -f test/loggroup-lambda-connector.zip && zip -r test/loggroup-lambda-connector.zip src/loggroup-lambda-connector.js package.json" ,
13+ "prod_deploy" : " python -c 'from test.test_loggroup_lambda_connector import prod_deploy;prod_deploy()'"
1214 },
1315 "keywords" : [
1416 " AWS"
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class TestLambda(unittest.TestCase):
1616 success case testlggrp
1717 already exists subscription filter idempotent
1818 '''
19-
19+ ZIP_FILE = 'loggroup-lambda-connector.zip'
2020 AWS_REGION = os .environ .get ("AWS_DEFAULT_REGION" , "us-east-1" )
2121 FILTER_NAME = 'SumoLGLBDFilter'
2222
@@ -49,7 +49,7 @@ def tearDown(self):
4949 self .delete_log_group (self .LOG_GROUP_NAME )
5050
5151 def test_lambda (self ):
52- # upload_code_in_S3(self.config['AWS_REGION_NAME'])
52+ upload_code_in_S3 (self .config ['AWS_REGION_NAME' ])
5353 self .create_stack ()
5454 print ("Testing Stack Creation" )
5555 self .assertTrue (self .stack_exists (self .stack_name ))
@@ -58,7 +58,7 @@ def test_lambda(self):
5858 self .LOG_GROUP_NAME , self .FILTER_NAME ))
5959
6060 def test_existing_logs (self ):
61- # upload_code_in_S3(self.config['AWS_REGION_NAME'])
61+ upload_code_in_S3 (self .config ['AWS_REGION_NAME' ])
6262 self .template_data = self .template_data .replace ("false" , "true" , 1 )
6363 self .create_stack ()
6464 print ("Testing Stack Creation" )
You can’t perform that action at this time.
0 commit comments