Skip to content

Conversation

@robotrapta
Copy link
Member

@robotrapta robotrapta commented Mar 31, 2023

A funny-to-me set of coincidences let this bug through all our tests. The endpoint sanitizer was well tested in unit tests, but the integration wasn't quite right, and the integration tests skipped the sanitizer. That's fixed now. As is the bug.

# Specify the endpoint
self.endpoint = sanitize_endpoint_url(endpoint)
configuration = Configuration(host=endpoint)
configuration = Configuration(host=self.endpoint)
Copy link
Member Author

@robotrapta robotrapta Mar 31, 2023

Choose a reason for hiding this comment

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

The missing self. here was actually the entirety of the bug. The rest of this PR is cleaning up tests and making it a bit more robust.

@robotrapta robotrapta changed the title Fixing bad breaking bug in url-sanitization Fixing bad breaking bug in endpoint url sanitization Mar 31, 2023
@robotrapta robotrapta requested a review from positavi March 31, 2023 15:55
@robotrapta robotrapta merged commit 0e46619 into main Mar 31, 2023
@robotrapta robotrapta deleted the fix-endpoint-bug branch March 31, 2023 19:53
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.

2 participants