{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/mongodb/issues/135","repository_url":"https://api.github.com/repos/openshift/mongodb","labels_url":"https://api.github.com/repos/openshift/mongodb/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/openshift/mongodb/issues/135/comments","events_url":"https://api.github.com/repos/openshift/mongodb/issues/135/events","html_url":"https://github.com/openshift/mongodb/pull/135","id":138964394,"number":135,"title":"Join wait_for_mongo_up and wait_for_mongo_down into one function.","user":{"login":"omron93","id":3758789,"avatar_url":"https://avatars.githubusercontent.com/u/3758789?v=3","gravatar_id":"","url":"https://api.github.com/users/omron93","html_url":"https://github.com/omron93","followers_url":"https://api.github.com/users/omron93/followers","following_url":"https://api.github.com/users/omron93/following{/other_user}","gists_url":"https://api.github.com/users/omron93/gists{/gist_id}","starred_url":"https://api.github.com/users/omron93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omron93/subscriptions","organizations_url":"https://api.github.com/users/omron93/orgs","repos_url":"https://api.github.com/users/omron93/repos","events_url":"https://api.github.com/users/omron93/events{/privacy}","received_events_url":"https://api.github.com/users/omron93/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2016-03-07T12:13:56Z","updated_at":"2016-03-15T15:47:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openshift/mongodb/pulls/135","html_url":"https://github.com/openshift/mongodb/pull/135","diff_url":"https://github.com/openshift/mongodb/pull/135.diff","patch_url":"https://github.com/openshift/mongodb/pull/135.patch"},"body":"Join `wait_for_mongo_up` and `wait_for_mongo_down` into one function. This two functions should change only in one line (IF statement which checks return status of mongo shell). So this PR joins this two function into one `wait_mongo` which takes first argument - \"UP\" or \"DOWN\" to specify how to test return code of mongo shell.\r\n\r\nThis PR improves maintainability of this scripts - two original function should be same in master, but `wait_for_mongo_down` does not received updates from latest commits.\r\n\r\nThis PR is a part of #112 "},"comment":{"url":"https://api.github.com/repos/openshift/mongodb/issues/comments/196889570","html_url":"https://github.com/openshift/mongodb/pull/135#issuecomment-196889570","issue_url":"https://api.github.com/repos/openshift/mongodb/issues/135","id":196889570,"user":{"login":"php-coder","id":87088,"avatar_url":"https://avatars.githubusercontent.com/u/87088?v=3","gravatar_id":"","url":"https://api.github.com/users/php-coder","html_url":"https://github.com/php-coder","followers_url":"https://api.github.com/users/php-coder/followers","following_url":"https://api.github.com/users/php-coder/following{/other_user}","gists_url":"https://api.github.com/users/php-coder/gists{/gist_id}","starred_url":"https://api.github.com/users/php-coder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/php-coder/subscriptions","organizations_url":"https://api.github.com/users/php-coder/orgs","repos_url":"https://api.github.com/users/php-coder/repos","events_url":"https://api.github.com/users/php-coder/events{/privacy}","received_events_url":"https://api.github.com/users/php-coder/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T15:47:21Z","updated_at":"2016-03-15T15:47:21Z","body":"LGTM too."}}