Skip to content
New issue

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

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

Already on GitHub? # to your account

BCDA-8680: Refactor to allow for ipv6 addresses #199

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

carlpartridge
Copy link
Collaborator

🎫 Ticket

https://jira.cms.gov/browse/BCDA-8680

🛠 Changes

Refactor to allow for IPv6 addresses. Some refactoring in other places to clean things up a bit.

ℹ️ Context

Previously this lambda was erroring out on trying to add IPv6 addresses into the existing IP set. Turns out IP sets only allow for one type of IP. CDAP has created a secondary IP set for IPv6 addresses. The code has been refactored to allow for updating of both kinds.

🧪 Validation

Local testing and linting.

assert.Nil(t, err)
defer conn.Close(ctx)

tx, err := conn.Begin(context.Background())
Copy link
Collaborator Author

@carlpartridge carlpartridge Jan 22, 2025

Choose a reason for hiding this comment

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

Slight refactoring of this test to use transaction to avoid data issues.

} else {
lambda.Start(handler)
}
lambda.Start(handler)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Refactored away from needing isTesting, I dont think we got a lot out of it?

@carlpartridge
Copy link
Collaborator Author

Integration test is currently failing I believe due to the new IPv6 IP set not existing yet, see: CMSgov/ab2d-bcda-dpc-platform#165

@carlpartridge carlpartridge merged commit 4c21e40 into main Jan 22, 2025
7 checks passed
@carlpartridge carlpartridge deleted the carl/BCDA-8680-update-waf-sync-for-ipv6 branch January 22, 2025 20:55
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants