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

tests: Add basic IP allocation tests #186

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

markylaing
Copy link
Contributor

I've added some basic tests for automatic allocation of IP addresses for OVN network forwards and load balancers.

I've found it difficult to make these tests more extensive because the allocated IPs are random but the tests rely on hardcoded IPs. To avoid collisions we need to keep track of whether or not forwards/load balancers have been created with allocated IPs (by the API extension) and delete them before creating new forwards/load balancers with a fixed IP on any network using the same uplink.

I think it's fine for now to just ensure they can be created/deleted and that new ones can't be created with the same IP. There is no difference in code path/functionality between allocated/fixed IP after initial creation.

@markylaing markylaing changed the title tests: Add basic IP allocation tests. tests: Add basic IP allocation tests Jun 10, 2024
@markylaing
Copy link
Contributor Author

tests/network-ovn Outdated Show resolved Hide resolved
Signed-off-by: Mark Laing <mark.laing@canonical.com>
@tomponline tomponline merged commit 8c93946 into canonical:main Jun 13, 2024
73 of 86 checks passed
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