-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
src/kubernetes/kubectl_test.go
Outdated
assert.Equal(t, namespace, kubectl.Namespace) | ||
assert.NotNil(t, kubectl) | ||
|
||
kubectl.ChangeNamespace("test") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
應該會要回來個error test用?
src/kubernetes/kubectl.go
Outdated
@@ -24,3 +24,7 @@ func New(clientset kubernetes.Interface, namespace string) *KubeCtl { | |||
Namespace: namespace, | |||
} | |||
} | |||
|
|||
func (kc *KubeCtl) ChangeNamespace(namespace string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SetNamespace
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
VX-172 Add prometheus testing Former-commit-id: 0780526b7e77a869574fa11e5eb614df91a8d61a [formerly 7ee8e63] Former-commit-id: 03671197e950a65ed4a7cec5d86a720f30fca5ab
VX-172 Add prometheus testing
No description provided.