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

VX-172 Add prometheus testing #94

Merged
merged 3 commits into from
Jul 13, 2018
Merged

VX-172 Add prometheus testing #94

merged 3 commits into from
Jul 13, 2018

Conversation

chenyunchen
Copy link
Contributor

No description provided.

assert.Equal(t, namespace, kubectl.Namespace)
assert.NotNil(t, kubectl)

kubectl.ChangeNamespace("test")
Copy link
Contributor

Choose a reason for hiding this comment

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

應該會要回來個error test用?

@@ -24,3 +24,7 @@ func New(clientset kubernetes.Interface, namespace string) *KubeCtl {
Namespace: namespace,
}
}

func (kc *KubeCtl) ChangeNamespace(namespace string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

SetNamespace

@codecov-io
Copy link

codecov-io commented Jul 13, 2018

Codecov Report

Merging #94 into develop will decrease coverage by 13.15%.
The diff coverage is 47.05%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #94       +/-   ##
===========================================
- Coverage    69.95%   56.8%   -13.16%     
===========================================
  Files           32      35        +3     
  Lines         1205    1741      +536     
===========================================
+ Hits           843     989      +146     
- Misses         309     685      +376     
- Partials        53      67       +14
Impacted Files Coverage Δ
src/prometheuscontroller/query.go 0% <0%> (ø)
src/kubernetes/kubectl.go 100% <100%> (ø) ⬆️
src/kubernetes/deployment.go 85.71% <75%> (-14.29%) ⬇️
src/networkcontroller/network_controller.go 46.95% <0%> (-3.68%) ⬇️
src/networkprovider/fake.go 100% <0%> (ø) ⬆️
src/server/handler_prometheus.go 0% <0%> (ø) ⬆️
src/prometheuscontroller/expression.go 0% <0%> (ø)
src/networkprovider/ovs.go 75.86% <0%> (ø)
src/server/handler_network.go 89.47% <0%> (+7.73%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bdcd83f...be9431f. Read the comment docs.

Copy link
Contributor

@hwchiu hwchiu left a comment

Choose a reason for hiding this comment

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

LGTM

@hwchiu hwchiu merged commit 7ee8e63 into develop Jul 13, 2018
@hwchiu hwchiu deleted the alex/addPrometheusTesting branch July 13, 2018 10:17
John-Lin pushed a commit that referenced this pull request Jul 25, 2018
VX-172 Add prometheus testing

Former-commit-id: 0780526b7e77a869574fa11e5eb614df91a8d61a [formerly 7ee8e63]
Former-commit-id: 03671197e950a65ed4a7cec5d86a720f30fca5ab
John-Lin pushed a commit that referenced this pull request Jul 25, 2018
VX-172 Add prometheus testing

Former-commit-id: 0780526b7e77a869574fa11e5eb614df91a8d61a [formerly 0780526b7e77a869574fa11e5eb614df91a8d61a [formerly 7ee8e63]]
Former-commit-id: 03671197e950a65ed4a7cec5d86a720f30fca5ab
Former-commit-id: 58b2beb
John-Lin pushed a commit that referenced this pull request Jul 25, 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.

5 participants