Skip to content

Conversation

@snay2
Copy link
Contributor

@snay2 snay2 commented Aug 31, 2022

Issue #, if available: #654

Description of changes:

PR #669 removed calls to ASG APIs when checking for the "managed" tag on EC2 instances. Some of the unit tests were still testing that behavior, which is no longer necessary. This PR removes those functions.

A few of the unit tests do not need to set an ASG parameter at all, so I removed those lines entirely. In tests that do need the ASG parameter, I left it but passed in a default ASG mock object.

Testing:

Verified that unit tests pass after these changes. No changes made to functional production code, only unit tests.

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

@snay2 snay2 marked this pull request as ready for review August 31, 2022 18:44
@snay2 snay2 requested a review from a team as a code owner August 31, 2022 18:44
Copy link
Contributor

@pdk27 pdk27 left a comment

Choose a reason for hiding this comment

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

LGTM

@snay2 snay2 merged commit 7547519 into aws:main Sep 7, 2022
@snay2 snay2 deleted the remove-asg-tests branch September 7, 2022 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants