Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deadline): added tests for configure_identity_registration_settings.py #593

Conversation

horsmand
Copy link
Contributor

@horsmand horsmand commented Oct 4, 2021

  1. Wrote a bash script to execute the python unit tests and added a script entry in package.json called testpy to run the bash script. The tests are really lightweight, so I expanded the test target to run them along with the other CDK unit tests.
  2. Wrote unit tests for configure_identity_registration_settings.py. I think coverage is pretty good but likely not 100%

These tests will run after the CDK unit tests are complete. The current output from their run looks like this:

aws-rfdk: Tests successful. Total time (4m12.2s) | /__w/aws-rfdk/aws-rfdk/node_modules/jest/bin/jest.js (4m12.1s)
aws-rfdk: $ ./test-python.sh
aws-rfdk: Running python tests
aws-rfdk: ............
aws-rfdk: ----------------------------------------------------------------------
aws-rfdk: Ran 12 tests in 0.009s
aws-rfdk: OK

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Copy link
Contributor

@jusiskin jusiskin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great overall. I just have a few minor suggestions - mostly around improving readability of the tests.

kozlove-aws
kozlove-aws previously approved these changes Oct 6, 2021
Copy link
Contributor

@kozlove-aws kozlove-aws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Good job.

@horsmand horsmand force-pushed the sm_worker_auto_registration_py_tests branch from 80a4bd3 to e327d92 Compare October 8, 2021 04:31
@horsmand horsmand requested a review from jusiskin October 8, 2021 04:32
kozlove-aws
kozlove-aws previously approved these changes Oct 8, 2021
Copy link
Contributor

@jusiskin jusiskin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. I have a few readability suggestions, which I've provided code for, but there's still some missing coverage around negative tests that we may want to add.

@horsmand horsmand force-pushed the sm_worker_auto_registration_py_tests branch 2 times, most recently from 0315fa5 to 3ae3924 Compare October 8, 2021 18:50
Copy link
Contributor

@jusiskin jusiskin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one minor method name conflict. But otherwise this is great

@horsmand horsmand force-pushed the sm_worker_auto_registration_py_tests branch from 3ae3924 to b7d14b0 Compare October 8, 2021 19:54
@horsmand horsmand requested a review from jusiskin October 8, 2021 19:54
Copy link
Contributor

@jusiskin jusiskin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work here! This looks good to me

@horsmand horsmand merged commit e73d318 into aws:feature_enable_secret_manager Oct 8, 2021
@horsmand horsmand deleted the sm_worker_auto_registration_py_tests branch October 8, 2021 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants