-
Notifications
You must be signed in to change notification settings - Fork 324
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
WPB-4262: Fixing tests for inbound federator calls. #3534
Conversation
When testing inbound federation calls, set the origin domain as the value for BackendTwo, as a backend will not call into itself via the external Federator interface.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests now fail with this error in CI:
federator-integration: AesonException "Error in $: When parsing the record IntegrationConfig of type Test.Federator.Util.IntegrationConfig the key backendTwo was not present."
CallStack (from HasCallStack):
error, called at test/integration/Test/Federator/Util.hs:130:100 in main:Test.Federator.Util
The new config needs to be done for local setup and k8s setup.
I suspect I've tried to do this in a poor way to have it play nicely with k8s charts. I'll have a look at a better way to weave this value through. |
You also need to commit something to local integration config. This should also be failing locally. |
It was working fine in local integration testing as the |
i'll fix this! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but let's see if concourse and i agree on this.
everything in this review should be taken care of.
to be fair, if my changes are correct and exhaustive, they weren't documented in pr-guidelines.md, and it took me a moment to figure this out. |
this doesn't look like it's related to the config file parsers? i'll investigate! |
(all integration tests are to move to /integration, no need to say that here.)
passes locally. maybe the backendTwoDomain has access to things beyond ingress in the local test setup, but not on concourse? |
This reverts commit 19aad7b. that wasn't it...
the error is slightly different now:
|
Updating the request origin domains for federator tests, as the server setup for tests doesn't allow a domain to search itself via inward calls, but can search other members of the federation.
@lepsa , here are the failures from the CI:
|
Closing as @akshaymankar fixed this in #3582 |
Ticket: https://wearezeta.atlassian.net/browse/WPB-4262
When testing inbound federation calls, set the origin domain as the value for BackendTwo, as a backend will not call into itself via the external Federator interface.
Checklist
changelog.d