Skip to content

Commit 1d5cb1f

Browse files
JackPlowmanrohith1122Corbisced-sparkesmik3ola
authored
Release 2.0.0 into Live (#440)
* Add orgtype info to event replay logs (#269) * DI-410 Generify given for properties (#281) * DI-406 Edge cases for dentist ods (#264) * Added some new functionality to verify no logs * Streamlined the tests slightly * Removed the kit flags that were unnecessary * Added scenario outlines for two features * Removed reference to splunk from feature * Added new generic given step * Removed unnecessary test steps * Added some more improvements to tests * Further updates to test steps * Further removal of steps * Removed more steps to be generified * Further updates to test suites * Resolving rebasing issues with steps * Fixed a couple more issues * Added the pharmacy to F004S009 * Removed kit flag that was left present * DI-237 Update the ADR and associated diagrams (#293) * Update all the diagrams * Update the adr * Update the adr * Refine the diagrams and ADR * More funky changes * More changes yah * More changes yah * Add Event Replay feature in * Add splunk dashboards to solution architecture * Add a security view * Fix a few typos * DI-434 Change perf to use mock api (#298) * Change perf to use mock api * Change perf to use mock api * DI-430 Automate odscode selection with contact (#292) * Sql querry added to db checker handler * Update db checker handler query * Update db checker handler query * Update db checker handler queries * Update db checker handler query syntax * Modify dos data for test with a given step * Update code layout * Add unique corr id for data lignment run * Update unit test * Update to single service odscodes (#299) * DI-407 Gitflow release pipelines (#263) * Add Release Pipelines * Refactored F002 and F004 features and steps * Test cases are now all functioning Start Release Pipeline Single deploy codebuild Update codepipeline to build release pipelines Start release pipeline Start check if environment is deployed Add wait for log groups to create Start terraform to delete release environments and pipelines Delete based on branch name Add terraform debugging Move Performance Pipeline to mgmt account Continue moving performance pipelines to mgmt Move to codebuild for performance tests Upgrade Release pipeline for new S3 module Fix demo deployment codebuild stage Use development pipeline outputs Update to deploy pipeline before running pipeline Remove github auth in delete release environment Don't change release pipeline if not required Fix build branch Refactor Terraform Update buildspec to clean terraform modules Upgrade provider version * Remove unexpected changes * Add missing environment variable * Re add master to Github Workflow * Fix deployment bug (#301) * Fix incorrect variable in codepipeline (#302) * Renaming and redeploy performance-pipelines to perf-test-tools (#305) * DI-434 Pipeline to deploy Perf env with DoS API Mock (#303) * Swap perf and p2 environments * Add perf to delete api mock * Use correct database credentials * DI-443 Fix Delete Task Environments (#306) * Add github workflow diagram (#307) * DI-435 Performance Environment setup and change make targets (#304) * Swap perf and p2 environments * Add switch between perf and p2 profiles * Update Readme documentation * Fix rebase issue * DI-216 Batch Dentist Reporting (#297) * Initial commit * Fixed import error * removed testing print * Fixed open times reports * stuff * makefile addition * Commit * Added to gitignore * Fixed column heading mistake * Edited makefile paramters * Edited makefile paramters * Edited makefile paramters * Update p2 profile to perf-to-dos (#309) * DI-428 Add logging for change requests created (#310) * Add Dependabot config script (#312) * DI-446 Dependabot experiment to be recursive (#313) * DI-446 Add all Dependabot folder paths (#315) * DI-466 Add Dependabot branch naming pattern (#317) * DI-446 Remove AWS Public ECR from Dependabot (#318) * Bump actions/checkout from 2 to 3 (#314) Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * DI-451 Update Sonarcloud to include Serverless Framework and Terraform (#319) Attempt to update Sonarcloud to include SF and TF * DI-451 Fix coverage in Sonarcloud (#320) Fix coverage in sonarcloud * Fix coverage for Sonarcloud (#322) * Fix coverage for sonarcloud * Revert sonarcloud options change * Fix Unit Tests codebuild stage (#323) Update unit tests to work * DI-374 Triggering a Jenkins deploy from AWS Codebuild (#311) * Add a make target to trigger a Jenkins Job Add new codebuild stage security group Add codebuild stage for setting up integration test Use variable for mgmt vpc Add debug settings for make target Remove debug message and update version * Update release pipeline * Remove s3 module version * DI-445 Autodetect active organisation type flag (#308) * Update db checker sql query for single service pha * Update unit test * Build make target to autodetect active flag * Update terraform for pipeline modification * Add query for services count * Update relaease pipeline * Update unit test make target on pipeline buildspec * Update db checker handler unit test * Reformat unformatted python files (#321) Reduce duplications and code smells Experiment with test folder in sonarcloud Fix broken patch Fix coverage reports * DI-452 Add tfsec to security workflow (#324) * Add tfsec to security workflow * Add tfsec make target * Start TFSec security recommendations * More TFSec configuration * Set versions for terraform modules and more TFSec recommendations * Upgrade Terraform version to 1.2 * Revert Detect Changes change * Fix missing Dependabot dependency * DI-421 Updated readme and devops diagram (#295) * Updated readme * Add files via upload * Added instructions for DI-219 * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * WIP updating Readme & diagrams with pipeline and automations changes * Updating Diagrams with pipeline and automations changes * After review devops diagrams and readme changes * Change Artefact to UK English spelling Co-authored-by: Matthew Begley <matthewbegley@nhs.net> * DI-447 Security Scanning of Dockerfiles, Serverless Framework and Github Actions (#325) * Add default dependency review workflow * Add Checkov for Serverless, Docker and Terraform * Add make targets for checkov * Set Docker checks to not run/suppress checks * Suppress Github Actions warning * Start Terraform best practices * Remove Terraform checks * DI-447 Security Scanning of Terraform with Checkov (#326) * Add ignore for terraform checks with checkov * Enable checkov in Github Actions * DI-454 Upgrade tester image python version (#330) Upgrade test to python version 3.10.4 * DI-453 Refactor of change event generation (#327) Added new file to handle change events from dos * Bump django in /build/automation/lib/docker/image/python-app/example (#332) Bumps [django](https://github.com/django/django) from 3.2.7 to 3.2.13. - [Release notes](https://github.com/django/django/releases) - [Commits](django/django@3.2.7...3.2.13) --- updated-dependencies: - dependency-name: django dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * DI-455 Implement case statements in test suite (#333) Replaced elifs with case statements * Update Serverless deployment to use direct deployment (#329) * DI-456 Resolved circular dependencies in change event (#334) * Resolved circular dependencies in change event * Further amendments to resolve dependency issues * Applying changes from commit checks * DI-448 Set up dead code scanning (#331) * Add Vulture code * Exclude files that use by other lambdas * Improve TODO message * Exclude files that use by other lambdas * Add an unit test for reporter.py * Update Make Devops Library (#328) Update make devops library * Switch base branch name to main (#353) Set everything to use main branch name * Upgrade Terraform versions (#360) * Bump hashicorp/random in /infrastructure/stacks/dos-api-gateway-mock Bumps [hashicorp/random](https://github.com/hashicorp/terraform-provider-random) from 3.2.0 to 3.3.0. - [Release notes](https://github.com/hashicorp/terraform-provider-random/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-random/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-random@v3.2.0...v3.3.0) --- updated-dependencies: - dependency-name: hashicorp/random dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/aws in /infrastructure/stacks/before-lambda-deployment Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 4.16.0 to 4.17.1. - [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-aws@v4.16.0...v4.17.1) --- updated-dependencies: - dependency-name: hashicorp/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/aws in /infrastructure/stacks/appconfig Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 4.16.0 to 4.17.1. - [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-aws@v4.16.0...v4.17.1) --- updated-dependencies: - dependency-name: hashicorp/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/aws in /infrastructure/stacks/dos-api-gateway-mock Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 4.16.0 to 4.17.1. - [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-aws@v4.16.0...v4.17.1) --- updated-dependencies: - dependency-name: hashicorp/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/aws in /infrastructure/stacks/development-pipeline Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 4.16.0 to 4.17.1. - [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-aws@v4.16.0...v4.17.1) --- updated-dependencies: - dependency-name: hashicorp/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/aws in /infrastructure/stacks/api-key Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 4.16.0 to 4.17.1. - [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-aws@v4.16.0...v4.17.1) --- updated-dependencies: - dependency-name: hashicorp/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/random in /infrastructure/stacks/api-key Bumps [hashicorp/random](https://github.com/hashicorp/terraform-provider-random) from 3.2.0 to 3.3.0. - [Release notes](https://github.com/hashicorp/terraform-provider-random/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-random/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-random@v3.2.0...v3.3.0) --- updated-dependencies: - dependency-name: hashicorp/random dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/aws in /infrastructure/stacks/development-pipeline Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 4.16.0 to 4.17.1. - [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-aws@v4.16.0...v4.17.1) --- updated-dependencies: - dependency-name: hashicorp/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/aws in /infrastructure/stacks/release-pipeline Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 4.16.0 to 4.17.1. - [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-aws@v4.16.0...v4.17.1) --- updated-dependencies: - dependency-name: hashicorp/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Reduce Terraform upgrades to monthly (#354) * DI-449 Update and add Github Pull Request Checklists (#358) * Add basic template to be used when action runs * Update task and test PR templates * Simplify Workflow to use single file * Experiment with environment variables * Add test branches to regex * Reword template files Co-authored-by: Jack Plowman <jack.plowman1@nhs.net> * Bump python from 3.10.4 to 3.10.5 in /build/docker/tester (#370) * DI-465 Rename master to main in confluence (#372) Rename master to main in diagram and confluence Co-authored-by: Rohit <rohit.kondapalli1@nhs.net> * Remove Automatic Pull Request Bot (#369) * Change template folder name * Add new workflow * Update Github Actions * Fix incorrect directory * Refactor Github Actions and Workflows (#359) * Separate Secret Scanning and Security vulnerability scanning * Add update description workflow * Get branch name * Update description regex * Add multiple jobs to GH workflow * Separate checklist checker again * Add warning to PR template * DI-458 Add demo deployment to development pipeline (#373) Update pipeline to deploy to demo * DI-457 Refactor application code to remove dead code (#371) * Refactor unused variables * Fix comparison reporter * Fix unit tests * Reduce duplication in docker build steps (#377) * Simplify docker build steps * Save specific CMD to docker image * Remove unused code * Add demo deployment fixes * Remove debug command * Update Terraform AWS Provider (#388) * Bump hashicorp/aws in /infrastructure/stacks/appconfig Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 4.17.1 to 4.18.0. - [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-aws@v4.17.1...v4.18.0) --- updated-dependencies: - dependency-name: hashicorp/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/aws in /infrastructure/stacks/api-key Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 4.17.1 to 4.18.0. - [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-aws@v4.17.1...v4.18.0) --- updated-dependencies: - dependency-name: hashicorp/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/aws in /infrastructure/stacks/before-lambda-deployment Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 4.17.1 to 4.18.0. - [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-aws@v4.17.1...v4.18.0) --- updated-dependencies: - dependency-name: hashicorp/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/aws in /infrastructure/stacks/dos-api-gateway-mock Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 4.17.1 to 4.18.0. - [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-aws@v4.17.1...v4.18.0) --- updated-dependencies: - dependency-name: hashicorp/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/aws in /infrastructure/stacks/perf-test-tools Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 4.16.0 to 4.18.0. - [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-aws@v4.16.0...v4.18.0) --- updated-dependencies: - dependency-name: hashicorp/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/aws in /infrastructure/stacks/development-pipeline Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 4.17.1 to 4.18.0. - [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-aws@v4.17.1...v4.18.0) --- updated-dependencies: - dependency-name: hashicorp/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix development pipelines and Remove duplicated make targets (#390) * Remove duplicated make targets and fix development pipeline * Remove extra line * Fix entrypoint to docker images * Fix Dos API Gateway Mock (#392) * Fix dos api gateway mock * Revert health check checker * Increase unit test coverage * Revert event sender * Fix not running unit tests * DI-466 Remove redundant utils function (#396) * DI-463 Refactored several steps for dos ce (#368) * Refactored several steps for dos ce * Removed commented out stuff * Event type added to fix in parent steps * Changed event type to org type * Resolved issues with tests * Removed change made to utils for troubleshooting * Updated some intermittently failing cases * Resolved the code quality error * Added issue occurring with split opening times * Update dentist demographics data and fix ods bug * Update failing scenario step * Removed get payload function as not in develop Co-authored-by: mik3ola <michael.olaw1@nhs.net> * DI-467 Check ECR scanning reports for vulnerabilities (#374) * Add scanning results make targets * Improve ECR image scanning make target * Put Image scanning on the correct buildspec * Fix Github Workflows and Improve Unit Test Coverage (#395) Improve Unit Testing Bump chuhlomin/render-template from 1.4 to 1.5 Bumps [chuhlomin/render-template](https://github.com/chuhlomin/render-template) from 1.4 to 1.5. - [Release notes](https://github.com/chuhlomin/render-template/releases) - [Commits](chuhlomin/render-template@v1.4...v1.5) --- updated-dependencies: - dependency-name: chuhlomin/render-template dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Add mutation tests Slim down repetitive make targets Update Github Actions add improve unit Add temporary full mutation test run Fix mutation test results and Github Action names Reduce scope of mutations Start process to only run against folder that have changed Simplify filters for mutation testing Silence output from make target Add rest of lambda folders Update Github Workflow to use matrix Use correct matrix name Improve unit tests Continue to improve unit tests Increase unit test coverage Update pip as part of docker build Exclude logger and tracer lines Improve test coverage * Bump actions/dependency-review-action from 1 to 2 (#397) Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 1 to 2. - [Release notes](https://github.com/actions/dependency-review-action/releases) - [Commits](actions/dependency-review-action@v1...v2) --- updated-dependencies: - dependency-name: actions/dependency-review-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix Performance Test Runner (#398) Fix performance tests using incorrect environment * DI-469 Fix Opening times scenario failure bug (#399) Correct change event schema data * Refactor Integration Test Suite (#401) Refactor Test Suite Remove change_request function and file Remove useless variable initialisation Fix PR description updater Type hint and introduce variables Use constant aliases for service type matching * Fix Performance Test Tools Slack Notification (#400) * Use slack webhook rather than sns topic * Remove unused data source * Remove unused variables * Fix workflow using branch name rather than designator * Update Cloudwatch dashboard and queries (#403) * Update Cloudwatch dashboard and queries Fix github action * Update incorrect echo in github action * DI-476 Hotfix - Remove publicname change ability (#406) * Remove publicname change ability and update unit tests * Python code formatting * Add public name int test scenario * Update env variable for special xter test * Fix test step and feature change when rebasing to develop Co-authored-by: Matthew Begley <matthewbegley@nhs.net> Co-authored-by: mik3ola <michael.olaw1@nhs.net> * Refactor Integration Test to build Change Events using Class (#402) * Create ChangeEventBuilder and ChangeEvent * Move away from dataclass for ChangeEvent class * Migrate build same as DoS function into ChangeEventBuilder class * Fix phone bug * Migrate ChangeEventBuilder into separate file * Remove debug line * Refactor Opening Times check * DI-489 Hotfix bug fixes release 1-0-4 (#414) * DI-481 Changed overlap definition and added unit tests (#409) * Changed overlap definition and added unit tests * DI-490 Integration tests for same closing and opening time (#411) * Branch change for hotfix * Removed dentist test as not supported * Removed the kit tag Co-authored-by: Corbisc <95412908+Corbisc@users.noreply.github.com> * DI-480 Website Validation Hotfix (#410) * Add website validation * Handle if http/https is not in URL * Fix unit tests and update changes to exclude empty string * Add additional unit tests and fixes * Remove debugging print statement * Test scenarios for url variations Co-authored-by: mik3ola <michael.olaw1@nhs.net> Co-authored-by: Sam Clayton <SLClayton@users.noreply.github.com> Co-authored-by: Corbisc <95412908+Corbisc@users.noreply.github.com> Co-authored-by: mik3ola <michael.olaw1@nhs.net> * Fix integration tests from hotfix (#415) Fix integration tests * DI-482 Dynamodb Cloner Kms Key Access (#413) * Add developer access to KMS key so that dbcloner can use key * Fix broken role permission * DI-470 Refactor Steps File and Context Variable (#404) * Refactor Test Suite Rename steps file and rebuild context dictionary into class Move away from dataclass for ChangeEvent class Migrate build same as DoS function into ChangeEventBuilder class Fix phone bug Migrate ChangeEventBuilder into separate file Remove debug line Refactor Opening Times check Remove positive check function to allow negative checks Fix missing fixture in integration tests Change line to create change request Use context class instead of dictionary Python formatting fixes Follow python standards Remove duplicated functionality Remove run id Use change event class until sent to API instead of dictionary Add a test step summary Handle when there is no context fixture Fix broken test when change_event moved from dictionary to class Fix more test failures More test failure fixes More test failure fixes Remove extra log line Improve run id Fix missing variable changes Fix test failures Add line to trigger CR Generate unique key Add temporary flakey test solution Use pytest fixture instead of building it in step Reduce duplicated functionality Change sequence test to make sense Add unique key Use unique correlation id for each run Remove odscode from list of usable odscode Increase get service id timeout Increase reliability of website and phone numbers Reduce duplication in feature files Reformat feature files Change back to use reruns Add feature to auto fail if status code is wrong Fix missing case statement Increase timeout for retries Fix odscode error and incorrect sequence number error Exclude specific sequence numbers from failing tests Trial using default CE Add address change check Use valid postcode in default event * Start to fix after rebase * Increase timeouts to make some tests more reliable * Merge website steps * Add additional retry to improve reliability * Reduce duplications of dynamodb checking * Increase delay between retries * Upgrade Terraform versions (#430) * Bump terraform-aws-modules/s3-bucket/aws Bumps [terraform-aws-modules/s3-bucket/aws](https://github.com/terraform-aws-modules/terraform-aws-s3-bucket) from 3.2.3 to 3.3.0. - [Release notes](https://github.com/terraform-aws-modules/terraform-aws-s3-bucket/releases) - [Changelog](https://github.com/terraform-aws-modules/terraform-aws-s3-bucket/blob/master/CHANGELOG.md) - [Commits](terraform-aws-modules/terraform-aws-s3-bucket@v3.2.3...v3.3.0) --- updated-dependencies: - dependency-name: terraform-aws-modules/s3-bucket/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump terraform-aws-modules/s3-bucket/aws in /infrastructure/modules/s3 Bumps [terraform-aws-modules/s3-bucket/aws](https://github.com/terraform-aws-modules/terraform-aws-s3-bucket) from 3.2.3 to 3.3.0. - [Release notes](https://github.com/terraform-aws-modules/terraform-aws-s3-bucket/releases) - [Changelog](https://github.com/terraform-aws-modules/terraform-aws-s3-bucket/blob/master/CHANGELOG.md) - [Commits](terraform-aws-modules/terraform-aws-s3-bucket@v3.2.3...v3.3.0) --- updated-dependencies: - dependency-name: terraform-aws-modules/s3-bucket/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/random in /infrastructure/stacks/dos-api-gateway-mock Bumps [hashicorp/random](https://github.com/hashicorp/terraform-provider-random) from 3.3.0 to 3.3.2. - [Release notes](https://github.com/hashicorp/terraform-provider-random/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-random/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-random@v3.3.0...v3.3.2) --- updated-dependencies: - dependency-name: hashicorp/random dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/random in /infrastructure/stacks/api-key Bumps [hashicorp/random](https://github.com/hashicorp/terraform-provider-random) from 3.3.0 to 3.3.2. - [Release notes](https://github.com/hashicorp/terraform-provider-random/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-random/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-random@v3.3.0...v3.3.2) --- updated-dependencies: - dependency-name: hashicorp/random dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/aws in /infrastructure/stacks/appconfig Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 4.18.0 to 4.21.0. - [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-aws@v4.18.0...v4.21.0) --- updated-dependencies: - dependency-name: hashicorp/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/aws in /infrastructure/stacks/perf-test-tools Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 4.18.0 to 4.21.0. - [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-aws@v4.18.0...v4.21.0) --- updated-dependencies: - dependency-name: hashicorp/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/aws in /infrastructure/stacks/before-lambda-deployment Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 4.18.0 to 4.21.0. - [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-aws@v4.18.0...v4.21.0) --- updated-dependencies: - dependency-name: hashicorp/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/aws in /infrastructure/stacks/api-key Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 4.18.0 to 4.21.0. - [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-aws@v4.18.0...v4.21.0) --- updated-dependencies: - dependency-name: hashicorp/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/aws in /infrastructure/stacks/dos-api-gateway-mock Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 4.18.0 to 4.21.0. - [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-aws@v4.18.0...v4.21.0) --- updated-dependencies: - dependency-name: hashicorp/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/aws in /infrastructure/stacks/release-pipeline Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 4.17.1 to 4.21.0. - [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-aws@v4.17.1...v4.21.0) --- updated-dependencies: - dependency-name: hashicorp/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hashicorp/aws in /infrastructure/stacks/development-pipeline Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 4.18.0 to 4.21.0. - [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases) - [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-provider-aws@v4.18.0...v4.21.0) --- updated-dependencies: - dependency-name: hashicorp/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump terraform-aws-modules/s3-bucket/aws Bumps [terraform-aws-modules/s3-bucket/aws](https://github.com/terraform-aws-modules/terraform-aws-s3-bucket) from 3.2.3 to 3.3.0. - [Release notes](https://github.com/terraform-aws-modules/terraform-aws-s3-bucket/releases) - [Changelog](https://github.com/terraform-aws-modules/terraform-aws-s3-bucket/blob/master/CHANGELOG.md) - [Commits](terraform-aws-modules/terraform-aws-s3-bucket@v3.2.3...v3.3.0) --- updated-dependencies: - dependency-name: terraform-aws-modules/s3-bucket/aws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Upgrade after lambda deployment terraform stack Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add Python Script for downloading a Dynamodb Table to CSV (#433) * DI-442 Adjusting lambda performance (#431) * Initial commit * Added a bunch of debug logs * Added new get locations method method * Fixed untit tests * Added for redeploy * fixed vars bug * Removed most of timing loggings * Checking for errors * Changed lambda size for event processor * Testing changes * Testing changes * test bug fix * Changing for new commit comment * DI-472 Add change to remove specified dates in the past (#434) * Add change to remove specified dates in the past * Refinements and test improvements * Improve unit tests * Refactoring of update_changes_with_opening_times function * Refinements after review * DI-477 Integration tests for past opening times (#437) Updated test to be valid for functionality * DI-493 Create generic error report (#435) * Added to generic log output extras * Edited log error info message * Updated again to include more of last * Fix Invalid Website Integration Test (#438) Fix Error handling test * DI-485 Reduce change event size for logging (#436) * Reduce change event size for logging * Update one more test senario Co-authored-by: Rohit kondapalli <rohit.kondapalli1@nhs.net> Co-authored-by: Corbisc <95412908+Corbisc@users.noreply.github.com> Co-authored-by: Ed Sparkes <1023491+ed-sparkes@users.noreply.github.com> Co-authored-by: Michael Olaw <67810234+mik3ola@users.noreply.github.com> Co-authored-by: Matthew Begley <60427904+mabe13@users.noreply.github.com> Co-authored-by: Sam Clayton <SLClayton@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthew Begley <matthewbegley@nhs.net> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: mik3ola <michael.olaw1@nhs.net>
1 parent 8d1cbb0 commit 1d5cb1f

311 files changed

Lines changed: 7250 additions & 4474 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Release Branch Pull Request
2+
3+
## Description of Changes
4+
5+
Please include a summary of the change
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Task Branch Pull Request
2+
3+
**<https://nhsd-jira.digital.nhs.uk/browse/{{ .BRANCH_NUMBER }}>**
4+
5+
## Description of Changes
6+
7+
Please include a summary of the change
8+
9+
## Type of change
10+
11+
Delete not appropriate
12+
13+
- Bug fix (non-breaking change which fixes an issue)
14+
- New feature (non-breaking change which adds functionality)
15+
- Breaking change (fix or feature that would cause existing functionality to not work as expected)
16+
- Refactoring (non-breaking change which improves the structure of the code)
17+
18+
## Development Checklist
19+
20+
- [ ] I have performed a self-review of my own code
21+
- [ ] I have run the [code formatting checks](../README.md#code-quality)
22+
- [ ] I have run the [code quality checks](../README.md#code-quality)
23+
- [ ] New code meets [standards](https://nhsd-confluence.digital.nhs.uk/display/DI/DI+Ways+of+Working) agreed by the team
24+
- [ ] Tests have added that prove my fix is effective or that my feature works (Integration tests)
25+
- [ ] I have updated Dependabot to include my changes (if applicable)
26+
27+
## Code Reviewer Checklist
28+
29+
- [ ] I can confirm the changes have been tested or approved by a tester
30+
- [ ] I have checked any ignore commands for code linting tools and I agree that the code is safe
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Test Branch Pull Request
2+
3+
## What branch do these tests check?
4+
5+
-
6+
7+
## Description of changes/tests
8+
9+
Why do these tests need to exist?/When should the test be run?
10+
11+
## Development Checklist
12+
13+
- [ ] The tests are tagged correctly
14+
- [ ] The tests will be run in the development pipeline
15+
- [ ] The tests are stable and pass
16+
- [ ] I have used reusable functions and classes where possible
17+
18+
## Code Reviewer Checklist
19+
20+
- [ ] I am confident the tests are stable and have passed
21+
- [ ] I am confident the tests will be run in the development pipeline
22+
- [ ] I believe the tests developed in a way which makes them reusable and maintainable

.github/dependabot.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"
8+
target-branch: "develop"
9+
10+
# Maintain dependencies for Python (Works recursively in application directories)
11+
- package-ecosystem: "pip"
12+
directory: "/application"
13+
schedule:
14+
interval: "daily"
15+
target-branch: "develop"
16+
17+
# Docker Dependencies
18+
- package-ecosystem: "docker"
19+
directory: "/build/docker/lambda"
20+
schedule:
21+
interval: "daily"
22+
target-branch: "develop"
23+
24+
- package-ecosystem: "docker"
25+
directory: "/build/docker/tester"
26+
schedule:
27+
interval: "daily"
28+
target-branch: "develop"
29+
30+
# Terraform Dependencies
31+
- package-ecosystem: "terraform"
32+
directory: "/infrastructure/modules/s3"
33+
schedule:
34+
interval: "monthly"
35+
target-branch: "develop"
36+
37+
- package-ecosystem: "terraform"
38+
directory: "/infrastructure/stacks/after-lambda-deployment"
39+
schedule:
40+
interval: "monthly"
41+
target-branch: "develop"
42+
43+
- package-ecosystem: "terraform"
44+
directory: "/infrastructure/stacks/api-key"
45+
schedule:
46+
interval: "monthly"
47+
target-branch: "develop"
48+
49+
- package-ecosystem: "terraform"
50+
directory: "/infrastructure/stacks/appconfig"
51+
schedule:
52+
interval: "monthly"
53+
target-branch: "develop"
54+
55+
- package-ecosystem: "terraform"
56+
directory: "/infrastructure/stacks/before-lambda-deployment"
57+
schedule:
58+
interval: "monthly"
59+
target-branch: "develop"
60+
61+
- package-ecosystem: "terraform"
62+
directory: "/infrastructure/stacks/deployment-pipelines"
63+
schedule:
64+
interval: "monthly"
65+
target-branch: "develop"
66+
67+
- package-ecosystem: "terraform"
68+
directory: "/infrastructure/stacks/development-pipeline"
69+
schedule:
70+
interval: "monthly"
71+
target-branch: "develop"
72+
73+
- package-ecosystem: "terraform"
74+
directory: "/infrastructure/stacks/dos-api-gateway-mock"
75+
schedule:
76+
interval: "monthly"
77+
target-branch: "develop"
78+
79+
- package-ecosystem: "terraform"
80+
directory: "/infrastructure/stacks/perf-test-tools"
81+
schedule:
82+
interval: "monthly"
83+
target-branch: "develop"
84+
85+
- package-ecosystem: "terraform"
86+
directory: "/infrastructure/stacks/release-pipeline"
87+
schedule:
88+
interval: "monthly"
89+
target-branch: "develop"

.github/pull_request_template.md

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,3 @@
1-
## Link to JIRA Ticket
1+
# Warning
22

3-
-
4-
5-
## Description
6-
7-
Please include a summary of the change
8-
9-
### Noteworthy Changes
10-
11-
- These are changes the reviewer should look out for
12-
13-
## Type of change
14-
15-
Delete not appropriate
16-
17-
- Bug fix (non-breaking change which fixes an issue)
18-
- New feature (non-breaking change which adds functionality)
19-
- Breaking change (fix or feature that would cause existing functionality to not work as expected)
20-
- This change requires a documentation update
21-
22-
## Testing
23-
24-
Please tick the testing that has been completed
25-
26-
- [ ] Unit tests
27-
- [ ] Integration tests
28-
29-
## Developer Checklist
30-
31-
- [ ] I have performed a self-review of my own code
32-
- [ ] I have run the [code formatting checks](../README.md#code-quality)
33-
- [ ] I have run the [code quality checks](../README.md#code-quality)
34-
- [ ] New code meets [standards](https://nhsd-confluence.digital.nhs.uk/display/DI/DI+Ways+of+Working) agreed by the team
35-
- [ ] Unit test code coverage is at or above 80%
36-
- [ ] New and existing unit tests pass locally with my changes
37-
- [ ] Tests have added that prove my fix is effective or that my feature works (Integration tests)
38-
- [ ] I have made corresponding changes to the documentation
39-
- [ ] I have cleaned down my environment (if created)
40-
41-
## Code Reviewer Checklist
42-
43-
- [ ] I have run the unit tests and they run correctly
44-
- [ ] I can confirm the changes have been tested or approved by a tester
45-
- [ ] I can confirm no remaining infrastructure is left over from this branch
3+
Please don't modify this description yet it will be populated once you create the pull request.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: "Check Pull Request Checklist"
2+
on:
3+
pull_request:
4+
types: [opened, ready_for_review, edited, synchronize, reopened]
5+
jobs:
6+
pull-request-checklist:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: mheap/require-checklist-action@v1
10+
with:
11+
requireChecklist: false
12+
env:
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/code-quality.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: "Check code format and quality"
22
on:
33
push:
4-
branches: [master]
4+
branches: [develop, main]
55
pull_request:
6-
types: [opened, synchronize, reopened]
6+
types: [opened, ready_for_review, synchronize, reopened]
77
jobs:
88
check-code-quality:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v3
1212
with:
1313
fetch-depth: 0
1414
- name: Check text files format
@@ -17,22 +17,24 @@ jobs:
1717
- name: Check Python files format
1818
run: |
1919
make python-linting
20-
- name: Check Terraform files format
20+
- name: Python Dead Code Check
2121
run: |
22-
build/automation/etc/githooks/scripts/terraform-format-pre-commit.sh
22+
make tester-build python-dead-code-scanning
2323
- name: Create coverage report
2424
run: |
25-
make tester-build coverage-report
25+
make coverage-report
2626
- uses: sonarsource/sonarcloud-github-action@master
2727
# SEE: https://github.com/SonarSource/sonarcloud-github-action
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3131
with:
32-
projectBaseDir: ./application
32+
projectBaseDir: .
3333
args: >
34+
-Dsonar.sources=application,deployment,infrastructure
3435
-Dsonar.organization=nhsd-exeter
3536
-Dsonar.projectKey=uec-dos-int
36-
-Dsonar.coverage.exclusions=tests/**,**/tests/**
37+
-Dsonar.coverage.exclusions=tests/**,**/tests/**,deployment,infrastructure,application/scripts
3738
-Dsonar.python.coverage.reportPaths=coverage.xml
3839
-Dsonar.python.version=3.9
40+
-Dsonar.exclusions=application/**/tests/**

.github/workflows/code-secrets.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: "Check code for Secrets"
2+
on: push
3+
jobs:
4+
check-code-secrets:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
with:
9+
fetch-depth: 0
10+
- name: Check if code contains any secrets
11+
run: make git-config git-secrets-scan-repo-files
12+
- name: Checkov Secret Scanner
13+
run: make checkov-secret-scanning
Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
1-
name: "Check code for secrets"
2-
on: push
1+
name: "Check code for Security Vulnerabilities"
2+
on:
3+
push:
4+
branches: [develop, master]
5+
pull_request:
6+
types: [opened, synchronize, reopened]
37
jobs:
48
check-code-security:
59
runs-on: ubuntu-latest
610
steps:
7-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v3
812
with:
913
fetch-depth: 0
10-
- name: Check if code contains any secrets
11-
run: |
12-
make \
13-
git-config \
14-
git-secrets-scan-repo-files
14+
- name: Check if code contains any Terraform Security Vulnerabilities
15+
run: make terraform-security
16+
- name: Checkov Security and Best Practices - Serverless Framework
17+
run: make -s serverless-best-practices
18+
- name: Checkov Security and Best Practices - Docker
19+
run: make -s docker-best-practices
20+
- name: Checkov Security and Best Practices - Terraform
21+
run: make -s terraform-best-practices
22+
- name: Checkov Security and Best Practices - Github Actions
23+
run: make -s github-actions-best-practices

0 commit comments

Comments
 (0)