Skip to content

test: cover empty API external URL validation - #2667

Open
Divyansh200102 wants to merge 1 commit into
supabase:masterfrom
Divyansh200102:test/api-config-empty-external-url
Open

test: cover empty API external URL validation#2667
Divyansh200102 wants to merge 1 commit into
supabase:masterfrom
Divyansh200102:test/api-config-empty-external-url

Conversation

@Divyansh200102

Copy link
Copy Markdown

What kind of change does this PR introduce?

Test improvement.

What is the current behavior?

The test suite contains duplicate coverage for an invalid APIConfiguration.ExternalURL value but does not explicitly test the empty ExternalURL case.

What is the new behavior?

Replaces the duplicate invalid URL test with a test that verifies an empty ExternalURL returns the expected validation error (parse "": empty url), while preserving coverage for valid and invalid URLs.

Additional context

Verified with:

go test ./internal/conf -run '^TestValidate$'

@Divyansh200102
Divyansh200102 requested a review from a team as a code owner August 1, 2026 11:57
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