Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Database User

Impact

The following components use this resource and are potentially impacted by any changes. They should also be validated to ensure the changes do not cause a regression.

  • Database user L1 CDK constructor
  • Atlas basis L3 CDK constructor
  • Encryption at rest L3 CDK constructor
  • Atlas Quickstart
  • Atlas Quickstart Fargate

Prerequisites

Resources needed to run the manual QA

  • Atlas project

All resources are created as part of cfn-testing-helper.sh

Manual QA

Please, follows the steps in TESTING.md.

Success criteria when testing the resource

  • The Database User should be visible in the "Database Users" page: image

Important Links

Unit Testing Locally

The local tests are integrated with the AWS sam local and cfn invoke tooling features:

sam local start-lambda --skip-pull-image

then in another shell:

repo_root=$(git rev-parse --show-toplevel)
source <(${repo_root}/quickstart-mongodb-atlas/scripts/export-mongocli-config.py)
cd ${repo_root}/cfn-resources/database-user
./test/databaseuser.create-sample-cfn-request.sh YourProjectID SomeIAMRole > test.request.json 
echo "Sample request:"
cat test.request.json
cfn invoke CREATE test.request.json 
cfn invoke DELETE test.request.json 

Both CREATE & DELETE tests must pass.