-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow IP addresses to be specified in registries configuration. Prior to this change, an IP addresses caused a parsing error in net/url due to the absence of URI schemes. Signed-off-by: Valentin Rothberg <[email protected]>
- Loading branch information
Showing
2 changed files
with
4 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,7 @@ func TestParseURL(t *testing.T) { | |
assert.Contains(t, err.Error(), "invalid URL 'https://example.com': URI schemes are not supported") | ||
|
||
_, err = parseURL("[email protected]") | ||
assert.NotNil(t, err) | ||
assert.Contains(t, err.Error(), "invalid URL '[email protected]': user/password are not supported") | ||
assert.Nil(t, err) | ||
|
||
// valid URLs | ||
url, err = parseURL("example.com") | ||
|