-
Notifications
You must be signed in to change notification settings - Fork 1
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
NH-67051 Add report_init_event tests #240
Conversation
|
||
@pytest.fixture(name="mock_extension_status_code_invalid_protocol") | ||
def mock_extension_status_code_invalid_protocol(mocker): | ||
return get_extension_mocks(mocker, 2) |
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.
Great addition of these different scenarios "ok", "already_init" and "invalid_protocol"! It's pointing out something a little subtle--we're checking the reporter initialization status as part of reporting the Init event, and actually ignoring the return code from the report Init event sendStatus
call.
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, great to see these tests which will help with regression as we consider upcoming changes @tammy-baylis-swi! One future possibility is to have an explicit check of the "extension" (whether full oboe with reporter, or minimal Lambda api) init/loading status rather than as part of sending Init event.
Thank you @cheempz ! New ticket here: https://swicloud.atlassian.net/browse/NH-68251 |
Adds report_init_event tests!! Tricky mocks for this one.
Tests pass with c-lib 14 (5d7dcee) before revert