{"id":19769328,"url":"https://github.com/abiydv/fastly-bdd-tests","last_synced_at":"2026-06-08T13:32:03.867Z","repository":{"id":50160883,"uuid":"277363951","full_name":"abiydv/fastly-bdd-tests","owner":"abiydv","description":"BDD Testing example for CDN(Fastly) using Python Behave","archived":false,"fork":false,"pushed_at":"2026-06-02T21:06:00.000Z","size":18,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-06-02T23:07:14.838Z","etag":null,"topics":["bdd-tests","behave-examples","fastly","fastly-api","fastly-service","python-behave","terraform-fastly","terraform-modules"],"latest_commit_sha":null,"homepage":"","language":"Gherkin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abiydv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-05T18:50:47.000Z","updated_at":"2026-06-02T21:04:27.000Z","dependencies_parsed_at":"2023-12-08T16:28:45.288Z","dependency_job_id":"163954c7-c3f9-44cb-b38d-96df459a634c","html_url":"https://github.com/abiydv/fastly-bdd-tests","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abiydv/fastly-bdd-tests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiydv%2Ffastly-bdd-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiydv%2Ffastly-bdd-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiydv%2Ffastly-bdd-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiydv%2Ffastly-bdd-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abiydv","download_url":"https://codeload.github.com/abiydv/fastly-bdd-tests/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiydv%2Ffastly-bdd-tests/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34065349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bdd-tests","behave-examples","fastly","fastly-api","fastly-service","python-behave","terraform-fastly","terraform-modules"],"created_at":"2024-11-12T04:42:24.857Z","updated_at":"2026-06-08T13:32:03.848Z","avatar_url":"https://github.com/abiydv.png","language":"Gherkin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fastly BDD Tests\n\nFastly offers a huge opportunity of customizing user journeys using the VCL conditionals/flows. More details here - https://abiydv.github.io/posts/fastly-bdd/\n\n## What is where?\n* [terraform](terraform) - Terraform configs to create a sample Fastly service\n* [vcl](vcl) - The VCL snippets\n* [tests](tests) - Feature files and tests implementation\n\n## Pre-requisites\n\n* Sign-up for a *limited* free Fastly account\n* Terraform 12 or above\n\n## Deploy Fastly service and VCLs\n\n1. Export `FASTLY_API_KEY`\n   ```\n   export FASTLY_API_KEY=aabbccdd_01234\n   ````\n\n1. Switch to `terraform` directory, initialize `terraform` and check plan\n   ```\n   cd terraform\n   terraform plan\n   ````\n\n1. Apply plan to create the Fastly service\n   ```\n   terraform apply\n\n   $ Apply complete! Resources: 3 added, 0 changed, 0 destroyed.\n   ````\n\n## Run Tests\n\n1. Switch to `tests` directory and create a virtual py environment\n   ```\n   cd tests\n   python3 -m venv env\n   ````\n\n1. Activate the py virtual environment and install dependencies \n   ```\n   source env/bin/activate\n   (env) pip3 install -r requirements.txt\n   ````\n\n1. Execute `behave` tests \n   ```\n   behave\n   .\n   .\n   1 feature passed, 0 failed, 0 skipped\n   1 scenario passed, 0 failed, 0 skipped\n   6 steps passed, 0 failed, 0 skipped, 0 undefined\n   Took 0m0.051s\n   ````\n\n## Cleanup\n\n1. Export `FASTLY_API_KEY`\n   ```\n   export FASTLY_API_KEY=aabbccdd_01234\n   ````\n\n1. Switch to `terraform` directory\n   ```\n   cd terraform\n   terraform plan\n   ````\n\n1. Delete the Fastly service\n   ```\n   terraform destroy\n\n   $ Apply complete! Resources: 0 added, 0 changed, 3 destroyed.\n   ````\n\n## Note\nThis is a test/proof-of-concept. There are some configs to make it quick, which should be removed before actual implementation.\n\n1. `verify=False` flag in `requests.get()` call. File [steps.py](tests/features/steps/steps.py).  \nThis is necessary because the Fastly shared certs will not have the test domain created (fastly-bdd-example.com) as part of this example. Without this flag the call will fail.\n\n1. Adding the Fastly shared domain fastly-bdd-example.com.global.prod.fastly.net in [feature files](tests/featues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabiydv%2Ffastly-bdd-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabiydv%2Ffastly-bdd-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabiydv%2Ffastly-bdd-tests/lists"}