ministryofjustice / modernisation-platform-infrastructure-test

Infrastructure test tool based on Cucumber.js • This repository is defined and managed in Terraform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Modernisation Platform infrastructure test tool based on Cucumber.js

repo standards badge

Prerequisites

Before running the features for the first time, add required dependencies

npm install --save-dev @cucumber/cucumber
npm install shelljs
npm install sleep

Configure AWS profiles in ~/.aws/config, for example

[default]
region = eu-west-2

[profile mod-root]
mfa_serial = arn:aws:iam::123456789991:mfa/george-f-admin
credential_process = aws-vault exec mod-root --json --prompt=osascript

[profile sprinkler-development]
source_profile=mod-root
role_arn=arn:aws:iam::123456789992:role/ModernisationPlatformAccess
mfa_serial=arn:aws:iam::123456789991:mfa/george-f-admin
role_session_name=george-f-admin

Usage

Run features

./node_modules/.bin/cucumber-js

References

  1. https://github.com/cucumber/cucumber-js
  2. Running specific features
  3. https://cucumber.io/docs/gherkin/reference/
  4. https://github.com/cucumber/cucumber-expressions/
  5. https://nodejs.org/api/assert.html
  6. Accessing EC2s using bastions
  7. Avoiding too much security

About

Infrastructure test tool based on Cucumber.js • This repository is defined and managed in Terraform

License:MIT License


Languages

Language:JavaScript 67.8%Language:Shell 21.4%Language:Gherkin 10.8%