File tree Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 32
32
cd metering
33
33
cp tests/alembic.ini .
34
34
cp tests/test-settings.py settings.py
35
- sudo pip install alembic
36
- sudo pip install pymysql
37
- sudo pip install cryptography
35
+ sudo pip install alembic pymysql cryptography
38
36
PYTHONPATH=$PWD
39
37
alembic upgrade head
40
38
- run :
48
46
name : run tests for metering
49
47
command : |
50
48
cd metering
51
- PYTHONPATH=$PWD python tests/test_total_calls.py
49
+ sudo pip install coverage coveralls pytest
50
+ rm tests/__init__.py
51
+ PYTHONPATH=$PWD coverage run -m pytest tests/test_total_calls.py
52
+ coverage report -m
53
+ mkdir ../test-reports
54
+ coverage html -d ../test-reports
55
+ COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN} coveralls
56
+ - store_test_results :
57
+ path : test-reports
52
58
- store_artifacts :
53
59
path : test-reports
54
- destination : test-reports
60
+ # destination: test-reports
Original file line number Diff line number Diff line change 1
1
# Snet-Platform-Usage
2
2
[ ![ CircleCI] ( https://circleci.com/gh/singnet/snet-platform-usage.svg?style=svg )] ( https://circleci.com/gh/singnet/snet-platform-usage )
3
+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/singnet/snet-platform-usage/badge.svg?branch=master )] ( https://coveralls.io/github/singnet/snet-platform-usage?branch=master )
Original file line number Diff line number Diff line change @@ -82,11 +82,10 @@ functions:
82
82
- http :
83
83
path : /usage/freecalls
84
84
method : get
85
- # authorizer:
86
- # name: user-authorizer
87
- # type: COGNITO_USER_POOLS
88
- # arn: ${file(./config.${self:provider.stage}.json):AUTHORIZER}
89
- # identitySource: method.request.header.Authorization
85
+ authorizer :
86
+ type : request
87
+ arn : ${file(./config.${self:provider.stage}.json):SIGN_AUTHORIZER}
88
+ identitySource : ${file(./config.${self:provider.stage}.json):SIGN_HEADERS}
90
89
cors :
91
90
origin : ${self:custom.origin.${self:provider.stage}}
92
91
headers :
You can’t perform that action at this time.
0 commit comments