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

Remote #108

Merged
merged 8 commits into from
Feb 7, 2022
Merged

Remote #108

merged 8 commits into from
Feb 7, 2022

Conversation

shubh90
Copy link
Contributor

@shubh90 shubh90 commented Feb 7, 2022

No description provided.

@coveralls
Copy link

coveralls commented Feb 7, 2022

Pull Request Test Coverage Report for Build 1808479743

  • 24 of 75 (32.0%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.2%) to 63.167%

Changes Missing Coverage Covered Lines Changed/Added Lines %
cmd/deploy/deploy.go 20 30 66.67%
deploy/deploy.go 4 45 8.89%
Files with Coverage Reduction New Missed Lines %
cmd/deploy/deploy.go 1 58.54%
Totals Coverage Status
Change from base Build 1796509430: -0.2%
Covered Lines: 1456
Relevant Lines: 2305

💛 - Coveralls

deploy/deploy.go Outdated
{{end}} }
}
"auths": {
{{range $val := .}} "{{$val}}": {}
Copy link
Collaborator

Choose a reason for hiding this comment

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

These additional spaces should be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

deploy/deploy.go Outdated
@@ -451,4 +481,5 @@ func (m *MeshnetSpec) Healthy(ctx context.Context) error {
}
}
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

remove this extra line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -415,9 +447,7 @@ func (m *MeshnetSpec) SetKClient(c kubernetes.Interface) {
}

func (m *MeshnetSpec) Deploy(ctx context.Context) error {
mPath := filepath.Join(deploymentBasePath, m.ManifestDir)
log.Infof("Deploying Meshnet from: %s", mPath)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should probably keep this log line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

fakecorev1 "k8s.io/client-go/kubernetes/typed/core/v1/fake"
ktest "k8s.io/client-go/testing"
)

Copy link
Collaborator

Choose a reason for hiding this comment

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

there should probably be a deploy.Deploy test using all this fakes, maybe one simple success test case and one failure or something simple just so there is coverage of that important func

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So all of the methods in it like KindSpec, Metallb, Meshnet etc are unit tested already. I will get back to add this one more test after I finish the bigger implementations.

@shubh90 shubh90 merged commit 6086986 into main Feb 7, 2022
@alexmasi alexmasi deleted the remote branch February 9, 2022 22:47
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