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

validation: test validation test with an empty hostname #640

Merged

Conversation

dongsupark
Copy link
Contributor

Check if the hostname test works also with an empty hostname, i.e, setHostname == false.
Also print out TAP results.

Signed-off-by: Dongsu Park [email protected]

t.Skip(1, fmt.Sprintf("linux-specific namespace test"))
}

if err := testHostname(t, false); err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

Change these two tests to one loop?

@liangchenye
Copy link
Member

+1 for wrapping the testing code, it is good way to solve
#582

Check if the hostname test works also with an empty hostname, i.e,
`hostname == ""`. Also print out TAP results.

Signed-off-by: Dongsu Park <[email protected]>
@dongsupark
Copy link
Contributor Author

@liangchenye Done.
Changed return value to nil, made a loop over the 2 different test cases, got hostname string passed instead of a bool value.

@liangchenye
Copy link
Member

liangchenye commented May 24, 2018

LGTM
Thanks

Approved with PullApprove

@liangchenye liangchenye merged commit fdcd30f into opencontainers:master May 24, 2018
@dongsupark dongsupark deleted the dongsu/test-empty-hostname branch May 24, 2018 09:10
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