Skip to content
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

registry: add tests for IsSecure #9095

Merged
merged 1 commit into from
Nov 11, 2014
Merged

Conversation

proppy
Copy link
Contributor

@proppy proppy commented Nov 11, 2014

Splitted the test from #8898

Signed-off-by: Johan Euphrosine <proppy@google.com>
}
for _, tt := range tests {
if sec := IsSecure(tt.addr, tt.insecureRegistries); sec != tt.expected {
t.Errorf("IsSecure failed for %q %v, expected %v got %v", tt.addr, tt.insecureRegistries, tt.expected, sec)
Copy link
Contributor

Choose a reason for hiding this comment

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

@proppy Agree that Errorf is better than Fatalf, but for consistency i'd rather have t.Fatalf here. We can have the debate another time :)

@tiborvass
Copy link
Contributor

Ping @dmcgowan @vbatts

@dmcgowan
Copy link
Member

LGTM

1 similar comment
@tiborvass
Copy link
Contributor

LGTM

tiborvass added a commit that referenced this pull request Nov 11, 2014
registry: add tests for IsSecure
@tiborvass tiborvass merged commit e08d1f6 into moby:master Nov 11, 2014
@tiborvass tiborvass added this to the 1.3.2 milestone Nov 12, 2014
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.

None yet

3 participants