-
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
DEV: Phstsai/prometheus client #29
Conversation
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.
FIx the missing package
bitbucket.org/linkernetworks/vortex/src/net/http/query
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.
Follow the https://github.com/prometheus/client_golang/blob/7540c0707421d7c58cfce34f4294d1b1f25f240d/api/prometheus/v1/api_test.go to write the testing for prometheus and you can push it on the other PR
Codecov Report
@@ Coverage Diff @@
## develop #29 +/- ##
===========================================
+ Coverage 77.8% 78.61% +0.81%
===========================================
Files 16 17 +1
Lines 428 449 +21
===========================================
+ Hits 333 353 +20
- Misses 73 74 +1
Partials 22 22
Continue to review full report at Codecov.
|
這個rebase怪怪的lol |
410f328
to
95522cc
Compare
api prometheus.API | ||
} | ||
|
||
func (suite *PrometheusTestSuite) SetupTest() { |
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.
Change to SetupSuite
suite.Run(t, new(PrometheusTestSuite)) | ||
} | ||
|
||
func (suite *PrometheusTestSuite) TearDownTest() { |
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.
Change to TearDownSuite
|
||
func (suite *PrometheusTestSuite) SetupTest() { | ||
cf := config.MustRead("../../config/testing.json") | ||
sp := serviceprovider.New(cf) |
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.
Change to serviceprovider.NewForTesting(t) to avoid the k8s config init.
- For travis - Install OpenvSwitch - Run a gRPC server - Use the sudo to run the testing (we need to create a veth for testing) - For testing - Use the suite to wrapper the common variable for all testing.
fc243f9
to
645cf2a
Compare
DEV: Phstsai/prometheus client Former-commit-id: c89a669ec579d4ed9af275652266b3ccb828acf8 [formerly 4481511] Former-commit-id: 35060b6ecc503a15499dbc6277857d0fc2d16ce7
DEV: Phstsai/prometheus client
No description provided.