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

Elastishadow #366

Closed
wants to merge 7 commits into from
Closed

Elastishadow #366

wants to merge 7 commits into from

Conversation

bretambrose
Copy link
Contributor

Adds elastishadow command line test utility.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.03%. Comparing base (aa7488f) to head (cbb958e).

Additional details and impacted files
@@             Coverage Diff              @@
##           MultiSub     #366      +/-   ##
============================================
- Coverage     84.04%   84.03%   -0.01%     
============================================
  Files            24       24              
  Lines         10335    10331       -4     
============================================
- Hits           8686     8682       -4     
  Misses         1649     1649              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


aws_byte_buf_clean_up(&operation->thing);
aws_byte_buf_clean_up(&operation->shadow);

Copy link
Contributor

Choose a reason for hiding this comment

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

May be intentional or handled elsewhere later but noting now that we're not cleaning up the topic_filter byte buf in this destroy.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that was missed.

AWS_BYTE_CURSOR_PRI(thing_name_cursor),
correlation_token);

if (aws_mqtt_request_response_client_submit_request(context->rr_client, &get_options) == AWS_OP_ERR) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Trivial: We should aws_string_destroy the correlation_token here if the completion isn't going to be called.

Copy link
Contributor

Choose a reason for hiding this comment

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

If applicable here, applicable in all places where we check the result of aws_mqtt_request_response_client_submit_request

printf("Starting client!\n");
aws_mqtt5_client_start(client);
} else if (aws_byte_cursor_eq_ignore_case(&command_cursor, &stop_cursor)) {
aws_mqtt5_client_stop(client, NULL, NULL);
Copy link
Contributor

Choose a reason for hiding this comment

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

Trivial: printf("Stopping client!\n") ?

Copy link
Contributor

@sbSteveK sbSteveK left a comment

Choose a reason for hiding this comment

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

Looks good! Not necessary but might be nice to also allow arg setting of max subscription options to manually test blocked and no capacity.

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.

3 participants