Stewart Henderson
bb3b1e1887
Remove AWS Xray
2020-04-29 09:26:04 -05:00
Marty Ballard
0456b4771d
Arch 2.0
...
- Remove Sub component
- Remove Users record
- Update Hub per approved changes
2020-02-10 09:47:57 -06:00
Stewart Henderson
94666de0a9
Merged pytest.ini into tox.ini
2019-12-19 10:23:48 -06:00
Marty Ballard
ed8459f556
Added term-missing to code coverage to show line numbers that are not covered by tests.
2019-11-19 10:42:55 -06:00
Stewart Henderson
4d9f512e27
Resolve test coverage reporting
2019-11-14 08:59:54 -06:00
Stewart Henderson
23a54e1b98
Initial dynalite removal
2019-10-30 16:28:46 -05:00
Marty Ballard
28bdde6d3f
Resolve COPS-772
...
- Handle FxA deleted account
- Cancel subscriptions individually
- Send cancellation to FxA for any subscriptions
- Split log statements in hub abstract and catch errors
- Log Firefox payload
- Update gitignore to ignore Vagrant and NR
2019-10-14 16:32:24 -05:00
Scott Idler
4680d55f71
quieted logging output during tests via --capture=sys
2019-10-02 14:08:12 -05:00
Stewart Henderson
85500e185b
Codecov support
2019-09-29 22:57:55 -07:00
Scott Idler
a6c573fa9b
moved .coveragerc to src/ and fixed pathing to it in tox.ini
2019-09-19 11:26:04 -07:00
Stewart Henderson
d52e6c10f4
refactor sub and hub to be separate code and aws functions
2019-09-11 17:53:03 -07:00
Scott Idler
cd301b60e5
renamed some top level folders, fixed refs
...
- webhook -> hub
- api -> sub
2019-07-25 12:00:37 -07:00
Stewart Henderson
9e0482ce0f
requirements file extraction and version pinning
2019-07-10 13:20:06 -07:00
Scott Idler
262760bc76
Standardize (Refactor) Logging SS-271
...
Many issues were solved in this commit.
- moved venv out of suhub so that zips are smaller, faster
- added --aws-s3-accelerator so that deploys are faster
- using structlog
- using pythonjsonlogging
- rewrote subhub/log.py based on:
https://gist.github.com/impredicative/ed475ccdcf7759ea8db155f31b41b993
- resolved TravisCI issue, BlockingIOError:
https://github.com/travis-ci/travis-ci/issues/8982
- unified import of get_logger in all files
- removed all f-strings on objects|dicts; passed as keyword args instead
- added ability to pass APP_LOG_LEVEL as env var
- APP_LOG_LEVEL automatically defaults (if not set) to:
-- WARNING for prod
-- INFO for stage|qa
-- DEBUG for dev
2019-06-14 09:03:45 -07:00
Jorge Spiropulo
3eb4e79cde
SS-167 Build Webhook proccess for Stripe events
...
- Allow for sending events to Basket
- Allow for sending events to AWS SQS Queue
- Send only selected events
- added EVENT_TABLE default in cfg
2019-05-23 14:47:36 -07:00
Scott Idler
70fd0daee5
add task to run locally
2019-05-17 15:53:20 -05:00
Scott Idler
d81f31849f
consolidated test requirements
2019-05-08 17:25:21 -05:00
Scott Idler
afdb55601d
removed unneccessary cat
2019-05-07 16:08:50 -07:00
Ben Bangert
f9aad19376
fix: patch env vars and use absolute path for dynalite
2019-05-02 10:14:22 -07:00
Scott Idler
223432e901
some changes for fixing test deps
2019-04-30 14:19:46 -07:00
Marty Ballard
c8e4bcb644
dynamodb setup complete
2019-04-26 15:25:32 -05:00
Marty Ballard
267746d6f7
all tests running, update payment and fxa_cust_update remaining
2019-04-22 22:23:48 -05:00
Marty Ballard
a0d22e1881
Reformated serverless.yaml
...
- add dynamodb table
- remove Subhub role
- added AWS secrets
2019-04-18 15:41:38 -05:00
Scott Idler
f2f7c0e63c
The following is a annotated tree listing:
...
.
├ conftest.py #for pytest
├ dodo.py #for automating things (think Make in python)
├ LICENSE
├ package.json #for installing serverless cli
├ README.md
├ services #multiple services (lambda) can be listed here
│ └ subhub #currently we only have one, until we need another
│ ├ handler.py #thin shim that just calls subhub.app
│ ├ serverless.yml #serverless config file, db, src, roles, etc
│ └ subhub -> ../../subhub #symlink pointing at subhub src
├ setup.cfg #config file for setup.py
├ setup.py #packaging file, works with tox
├ subhub #src path
│ ├ app.py
│ ├ auth_validation.py
│ ├ cfg.py
│ ├ Dockerfile
│ ├ __init__.py
│ ├ log.py
│ ├ README.md
│ ├ requirements.txt #list of deps for subhub
│ ├ stripe_calls.py
│ ├ subhub_api.yaml
│ └ tests #test folder
│ ├ functional
│ │ └ __init__.py
│ ├ __init__.py
│ ├ pylint.rc #configuration file for pylint
│ ├ pytest.ini #configuration file for pytest
│ ├ requirements.txt #requirements for tests
│ ├ test_subhub.py
│ └ unit
│ ├ __init__.py
│ └ test_stripe_calls.py
└ tox.ini #configuration file for tox
2019-04-15 23:37:18 -07:00