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

#3302: Absolute basic Unit Tests for CRI registry #3364

Merged
merged 2 commits into from
Oct 8, 2018

Conversation

kelkarajay
Copy link
Contributor

tests: Adding Unit tests

Some work on adding unit tests for probe/cri. This PR adds absolute basic unit tests.

Partially fixes #3302

P.S: I'm a beginner to Go. Open to listening for things I can do better.

Copy link
Collaborator

@bboreham bboreham left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Welcome to Scope and to Hacktoberfest.

I made a suggestion below - let us know if you find that works out better.

Also don't worry the integration tests failed - we aren't set up to run them from forks for complicated reasons.

func TestParseHttpEndpointUrl(t *testing.T) {
_, err := cri.NewCRIClient("http://xyz.com")

if err == nil {

This comment was marked as abuse.

This comment was marked as abuse.

@bboreham
Copy link
Collaborator

bboreham commented Oct 3, 2018

Thanks! I've kicked off full integration tests.

@kelkarajay
Copy link
Contributor Author

@bboreham checks passed.

Copy link
Collaborator

@bboreham bboreham left a comment

Choose a reason for hiding this comment

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

Thanks!

@bboreham bboreham merged commit d71a732 into weaveworks:master Oct 8, 2018
@bboreham bboreham changed the title #3302: Absolute basic UT #3302: Absolute basic Unit Tests for CRI registry Nov 20, 2018
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.

CRI: Add unit tests in probe/cri
2 participants