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.
- LDAP configuration L1 CDK constructor
These LDAP resources must be manually created.
- LDAP Bind password (LDAP_BIND_PASSWORD)
- LDAP Bind user name (LDAP_BIND_USER_NAME)
- LDAP host name (LDAP_HOST_NAME)
- Port (defaults to 636)
- Atlas Project (created by cfn-test-create-inputs.sh)
- You would need AD servers that can be used to test this resource.
- Export environment variables LDAP_BIND_PASSWORD,LDAP_BIND_USER_NAME, LDAP_HOST_NAME.
- Follow general prerequisites for testing CFN resources.
- In the Atlas Project you plan to use for testing, create an M10 Atlas Cluster or higher, if not already present.
- Update LDAPConfiguration.json under cfn-resources/examples/ if required.
- Follow general steps to test CFN resources.
- Once the template with required parameters is used to create, update and delete a stack successfully, validate that success criteria is met.
-
LDAP Authentication (under Advanced section) should be correctly set up in your Atlas Project as per configuration specified in the inputs/example:
-
General CFN resource success criteria should be satisfied.
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/project
./test/project.create-sample-cfn-request.sh YourProjectName > test.request.json
echo "Sample request:"
cat test.request.json
cfn invoke CREATE test.request.json
cfn invoke DELETE test.request.json
Both CREATE and DELETE tests must pass.