Skip to content

Implement a federation test #185

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

murgatroid99
Copy link
Member

@murgatroid99 murgatroid99 commented Jun 9, 2025

This uses some of the tools that were originally implemented for the fallback test to implement a test for the federation feature. The test spreads resources across two control plane servers, so that both a client and a server need to use the authority information in the resource URLs to know which control plane server to request each resource from, and they need to contact both control plane servers to get their complete configurations. go-control-plane imposes some constraints on what combinations of resources it will serve, so both control plane servers have all of the server resources, but the specified authorities should cause the server to contact both anyway, and we attempt to confirm that by testing that it has a connection to both control plane servers.

While implementing this, I had to make a couple of changes that impacted the fallback test:

  • I modified the bootstrap file template to include the federation fields, and I made the bootstrap generator function more general.
  • I modified the resource generation code to be able to generate individual resources and group them together separately.

Test runs:

@murgatroid99 murgatroid99 requested a review from a team as a code owner June 9, 2025 21:46
@murgatroid99 murgatroid99 requested a review from sergiitk June 9, 2025 21:46
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.

1 participant