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

Support check.test requests (CMC-1506) #139

Merged
merged 8 commits into from
Apr 25, 2017
Merged

Conversation

itzg
Copy link
Contributor

@itzg itzg commented Apr 17, 2017

TODO

  • Testing
  • Integrate with final request/protocol definition

@itzg itzg added the WIP label Apr 17, 2017

newCheck, err := check.NewCheckParsed(s.ctx, *req.Params)
if err != nil {
resp := protocol.NewErrorResponse(f, 1, "Unable to interpret the given check for testing")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rphillips is there a strategy from virgo agent to define appropriate error code values?

Copy link
Contributor

Choose a reason for hiding this comment

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

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.9%) to 64.682% when pulling 8827fae on features/cmc-1506-add-check-test into b7fe38c on master.

es := poller.NewSession(context.Background(), eleConn, reconciler, cfg)
defer func() { time.Sleep(5 * time.Millisecond) }()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was seeing some sporadic unit test failures here...but pushing so I can switch to working on ping/ICMP

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.6%) to 65.027% when pulling 1a48b0c on features/cmc-1506-add-check-test into b7fe38c on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 60.44% when pulling 02df657 on features/cmc-1506-add-check-test into ead867a on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 60.201% when pulling c4e959d on features/cmc-1506-add-check-test into ead867a on master.

@itzg itzg changed the title WIP: Initial changes to support check.test requests (CMC-1506) Support check.test requests (CMC-1506) Apr 24, 2017
@itzg itzg removed the WIP label Apr 24, 2017
@@ -172,7 +174,11 @@ type MetricTVU struct {
Unit string `json:"u"`
}

type MetricsPostRequestParams struct {
func (m *MetricTVU) String() string {
return fmt.Sprintf("{t=%v, v=%v, u=%v}", m.Type, m.Value, m.Unit)
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

@itzg itzg merged commit fa1a26f into master Apr 25, 2017
@itzg itzg deleted the features/cmc-1506-add-check-test branch April 25, 2017 13:44
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