No project description provided
Project description
Plastic Yellow Bird (aka "PyB"): a Test and Observability Driven Development Framework for AWS CDK
plastic-yellow-bird
is a test framework that introduces a whole new approach to monitoring, observability, and infrastructure development. It lets you to accomplish one thing as simply as possible: use the same code you write to verify your infrastructure as your monitoring and
alerting stack in production.
By using plastic-yellow-bird
, your team can:
- develop a planned production monitoring scheme from the project's outset
- harvest the effort spent writing automated functional tests as zero-cost, thoughtful baseline production monitoring
import plastic_yellow_bird as pyb
import requests
@pyb.canary
def test_api_endpoint_returns_200_with_get(cdk_app):
response = requests.get(cdk_app.api_stack.api.url)
assert response.status_code == 200
Imagine you create the above test file in a CDK project directory that
contains an Amazon API Gateway CDK app. By using plastic-yellow-bird
, which
is based on pytest
, simply running pytest
, plastic-yellow-bird
would
deploy your CDK app and launch the test_api_endpoint_returns_200_with_get
code
as an AWS Synthetics Canary in the same account, then wait for the Canary to
run and report a status. plastic-yellow-bird
would then report this test's Pass
or Fail
state just like any other pytest
test result, based on the status of
the Canary. In other words, if the Canary launched by plastic-yellow-bird
succeeded, your test would be reported as passing, and if the Canary failed, the
test would be reported as failing.
Of course, the above is a really simple demonstration, but the consequences of using
plastic-yellow-bird
are huge:
- your team gets meaningful application health checks from the normal process of development
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file plastic-yellow-bird-0.1.dev0.tar.gz
.
File metadata
- Download URL: plastic-yellow-bird-0.1.dev0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd3a75c043f8259aa2c19d770a01adf3027c12b6f962808f907954ae64fcd4ea |
|
MD5 | 98eca66764fcd8fb4332f94de4bb04e3 |
|
BLAKE2b-256 | d284440de292843098f8adb945f61ebe97f346e6aa717057263cc57d43a30137 |
File details
Details for the file plastic_yellow_bird-0.1.dev0-py3-none-any.whl
.
File metadata
- Download URL: plastic_yellow_bird-0.1.dev0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62b2474e741d05f1563a51c99a550bb4bdbaed5ffe43c47d11918d58ec390efa |
|
MD5 | 08d8a15d63be37035aae3ae9b11729a4 |
|
BLAKE2b-256 | 2f51de5226e392b14547c3f82981de7ee287af069bf55e273f5574a476f3f4e8 |