Skip to main content
https://badge.fury.io/py/cdn-test.svg https://travis-ci.com/augustoliks/cdn-test.svg?branch=main

cdn-test

CLI tool created to automate tests for verify time cache in web-site delivered by CDN - CloudFront.

How to Install

The cdn-test package is hosted in Python Package Index (PyPI). To install cnd-test, it’s recommend create a virtualenv and install the package using pip. Example:

$ virtualenv --python=$(which python3) venv
$ source venv/bin/activate
$ pip3 install cdn-test

Manual

$ cdn-test -h

usage: cli.py [-h] [--url URL] [--time-step [TIME_STEP]] [--http-verb [HTTP_VERB]] [--header-name [HEADER_NAME]] [--output-file [OUTPUT_FILE]] [--version]

options:
  -h, --help            show this help message and exit
  --url URL, -u URL     URL to verified cache in cloudfront
  --time-step [TIME_STEP], -s [TIME_STEP]
                        time interval between requests
  --http-verb [HTTP_VERB], -x [HTTP_VERB]
                        HTTP verb utilized for requests to URL
  --header-name [HEADER_NAME]
                        response header name that contains "Miss from cloudfront" or "Hit from cloudfront"
  --output-file [OUTPUT_FILE], -f [OUTPUT_FILE]
                        file path to save records
  --version, -v         show cdn-test version

Examples

Each 10 seconds, it will be made a request with GET HTTP verb to web-site hosted by cloudformation with follow URL https://aws.amazon.com/pt/cloudfront/. The request history will be save on ~/cdn-report.json.

$ cdn-test --url=https://aws.amazon.com/pt/cloudfront/ --http-verb=GET --time-step=10s --output-file=~/cdn-report.json

Package Struct

├── src
│   ├── cdn_test            # source code directory
│   ├── __init__.py         # module definition file
│   ├── cli.py              # parser cli parameters
│   └── domain.py           # module composed only domain logics
├── poetry.lock             # poetry dependencies versions
├── pyproject.toml          # poetry package definition file
├── README.rst              # project documentation
└── tests                   # directory composed only with unit tests
    └── ...

Metadata

Release files for cdn-test 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cdn-test 0.1.6
File Size Uploaded Provenance
cdn-test-0.1.6.tar.gz 4.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cdn-test 0.1.6
File Interpreter ABI Platform
cdn_test-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / cdn-test-0.1.6.tar.gz

Download URL cdn-test-0.1.6.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
502280e0c9e3abaffaea963a2e8265fed83ba64ad61b398e58f7463ec008def1
BLAKE2b-256 checksum
How to use checksums
f47f11cf98588198b26d47325103c14e1ec45507b2bc1c7156028708fdbae592
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.7.1 Linux/4.15.0-1098-gcp

Release files / cdn_test-0.1.6-py3-none-any.whl

Download URL cdn_test-0.1.6-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a05f0e90b3cc20cd831c952d0dbaa86a12d739f1a47f6f7a6dcb61d2c8b84e2
BLAKE2b-256 checksum
How to use checksums
98bbdb0575254689a29d339298f2ac78e46c8d93db3243f70c21ebdefd638981
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.7.1 Linux/4.15.0-1098-gcp

Security for cdn-test 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page