{"action":"created","issue":{"url":"https://api.github.com/repos/openthread/openthread/issues/2276","repository_url":"https://api.github.com/repos/openthread/openthread","labels_url":"https://api.github.com/repos/openthread/openthread/issues/2276/labels{/name}","comments_url":"https://api.github.com/repos/openthread/openthread/issues/2276/comments","events_url":"https://api.github.com/repos/openthread/openthread/issues/2276/events","html_url":"https://github.com/openthread/openthread/pull/2276","id":266678630,"number":2276,"title":"[test] add support for fault injection tests","user":{"login":"gandreello","id":3273382,"avatar_url":"https://avatars1.githubusercontent.com/u/3273382?v=4","gravatar_id":"","url":"https://api.github.com/users/gandreello","html_url":"https://github.com/gandreello","followers_url":"https://api.github.com/users/gandreello/followers","following_url":"https://api.github.com/users/gandreello/following{/other_user}","gists_url":"https://api.github.com/users/gandreello/gists{/gist_id}","starred_url":"https://api.github.com/users/gandreello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gandreello/subscriptions","organizations_url":"https://api.github.com/users/gandreello/orgs","repos_url":"https://api.github.com/users/gandreello/repos","events_url":"https://api.github.com/users/gandreello/events{/privacy}","received_events_url":"https://api.github.com/users/gandreello/received_events","type":"User","site_admin":false},"labels":[{"id":397568980,"url":"https://api.github.com/repos/openthread/openthread/labels/P4","name":"P4","color":"AFDF00","default":false},{"id":355043113,"url":"https://api.github.com/repos/openthread/openthread/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-18T23:53:04Z","updated_at":"2018-02-21T23:01:44Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/openthread/openthread/pulls/2276","html_url":"https://github.com/openthread/openthread/pull/2276","diff_url":"https://github.com/openthread/openthread/pull/2276.diff","patch_url":"https://github.com/openthread/openthread/pull/2276.patch"},"body":"This pull request introduces support for fault injection tests in OpenThread:\r\n\r\n- It adds the nlfaultinjection component to the third_party directory.\r\n- src/core/common/otfaultinjection.{hpp,cpp} define the fault injection Manager object and macros\r\n- src/core/api/otfaultinjection_api.cpp and include/openthread/otfaultinjection.h export C wrappers\r\n- tests/scripts/thread-cert/RouterAttach_fault_injection.py contains an example script that runs a \"RouterAttach\" test, gets the count of how many buffer allocations can be failed and how many packets can be dropped and repeats the test in a loop that injects one fault at a time.\r\n- src/core/mac/mac.cpp and src/core/common/message.cpp show how to instrument the code to implement fault injection.\r\n- src/cli/cli.cpp parses the commands to manage the fault injection configuration and counters\r\n"},"comment":{"url":"https://api.github.com/repos/openthread/openthread/issues/comments/367507665","html_url":"https://github.com/openthread/openthread/pull/2276#issuecomment-367507665","issue_url":"https://api.github.com/repos/openthread/openthread/issues/2276","id":367507665,"user":{"login":"googlebot","id":5384588,"avatar_url":"https://avatars3.githubusercontent.com/u/5384588?v=4","gravatar_id":"","url":"https://api.github.com/users/googlebot","html_url":"https://github.com/googlebot","followers_url":"https://api.github.com/users/googlebot/followers","following_url":"https://api.github.com/users/googlebot/following{/other_user}","gists_url":"https://api.github.com/users/googlebot/gists{/gist_id}","starred_url":"https://api.github.com/users/googlebot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googlebot/subscriptions","organizations_url":"https://api.github.com/users/googlebot/orgs","repos_url":"https://api.github.com/users/googlebot/repos","events_url":"https://api.github.com/users/googlebot/events{/privacy}","received_events_url":"https://api.github.com/users/googlebot/received_events","type":"User","site_admin":false},"created_at":"2018-02-21T23:01:44Z","updated_at":"2018-02-21T23:01:44Z","author_association":"NONE","body":"CLAs look good, thanks!\n\n<!-- ok -->"}}
{"actor":{"display_login":"googlebot"}}