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

Add some test coverage to allocating ENIs #1234

Merged
merged 1 commit into from
Oct 12, 2020
Merged

Conversation

mogren
Copy link
Contributor

@mogren mogren commented Sep 29, 2020

What type of PR is this?
cleanup

Which issue does this PR fix:
None

What does this PR do:
Add some unit test coverage for awsutils.go:

  • Remove unused constants
  • Actually test tagging
  • Cover over-assigning secondary IPs

If an issue # is not available please add repro steps and logs from IPAMD/CNI showing the issue:
No issue

Testing done on this change:
Unit tests still pass

Automation added to e2e:
None

Will this break upgrades or downgrades. Has updating a running cluster been tested?:
No

Does this change require updates to the CNI daemonset config files to work?:
No

Does this PR introduce any user-facing change?:
No

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

Copy link
Contributor

@haouc haouc left a comment

Choose a reason for hiding this comment

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

Overall looks good to me. Just two nit.

@mogren mogren force-pushed the add-unit-tests branch 2 times, most recently from 02c47aa to 04b7741 Compare October 2, 2020 19:13
Copy link
Contributor

@jayanthvn jayanthvn left a comment

Choose a reason for hiding this comment

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

LGTM :)

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.

3 participants