{"action":"created","comment":{"url":"https://api.github.com/repos/Scalr/revizor-tests/pulls/comments/43628431","id":43628431,"diff_hunk":"@@ -589,3 +592,38 @@ def is_log_rotate(server, process, rights, group=None):\n         raise AssertionError(\"Can't get config file:%s-logrotate. Error message:%s\" %\n                              (process, logrotate_conf[1]))\n     return True\n+\n+@world.absorb\n+def value_for_os_family(debian, centos, server=None, node=None):\n+    if server:\n+        # Get node by server\n+        node = world.cloud.get_node(server)\n+    elif not node:\n+        raise AttributeError(\"Not enough required arguments: server and node both can't be empty\")\n+    # Get node os name\n+    node_os = getattr(node, 'os', [''])[0]\n+    # Get os family result\n+    os_family_res =  dict(debian=debian, centos=centos).get(Dist.get_os_family(node_os))\n+    if not os_family_res:\n+        raise OSFamilyValueFailed('No value for node os: %s' % node_os)\n+    return os_family_res\n+\n+@world.absorb\n+def get_service_paths(service_name, server=None, node=None, service_conf=None, service_conf_base_path=None):\n+    if server:\n+        node = world.cloud.get_node(server)\n+    elif not node:\n+        raise AttributeError()\n+    # Get service path\n+    service_path = node.run('which %s' % service_name)\n+    if service_path[2]:\n+        raise AssertionError()","path":"functional/terrain/libs/server.py","position":65,"original_position":65,"commit_id":"534aa3f1664124495349f22cb77e375c0ae29b15","original_commit_id":"534aa3f1664124495349f22cb77e375c0ae29b15","user":{"login":"gigimon","id":297982,"avatar_url":"https://avatars.githubusercontent.com/u/297982?v=3","gravatar_id":"","url":"https://api.github.com/users/gigimon","html_url":"https://github.com/gigimon","followers_url":"https://api.github.com/users/gigimon/followers","following_url":"https://api.github.com/users/gigimon/following{/other_user}","gists_url":"https://api.github.com/users/gigimon/gists{/gist_id}","starred_url":"https://api.github.com/users/gigimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gigimon/subscriptions","organizations_url":"https://api.github.com/users/gigimon/orgs","repos_url":"https://api.github.com/users/gigimon/repos","events_url":"https://api.github.com/users/gigimon/events{/privacy}","received_events_url":"https://api.github.com/users/gigimon/received_events","type":"User","site_admin":false},"body":"Где текст ошибки?","created_at":"2015-11-02T13:41:28Z","updated_at":"2015-11-02T13:41:28Z","html_url":"https://github.com/Scalr/revizor-tests/pull/23#discussion_r43628431","pull_request_url":"https://api.github.com/repos/Scalr/revizor-tests/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/Scalr/revizor-tests/pulls/comments/43628431"},"html":{"href":"https://github.com/Scalr/revizor-tests/pull/23#discussion_r43628431"},"pull_request":{"href":"https://api.github.com/repos/Scalr/revizor-tests/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/Scalr/revizor-tests/pulls/23","id":49430596,"html_url":"https://github.com/Scalr/revizor-tests/pull/23","diff_url":"https://github.com/Scalr/revizor-tests/pull/23.diff","patch_url":"https://github.com/Scalr/revizor-tests/pull/23.patch","issue_url":"https://api.github.com/repos/Scalr/revizor-tests/issues/23","number":23,"state":"open","locked":false,"title":"New - pkg update on bootstrap linux&windows test","user":{"login":"stunko","id":5494706,"avatar_url":"https://avatars.githubusercontent.com/u/5494706?v=3","gravatar_id":"","url":"https://api.github.com/users/stunko","html_url":"https://github.com/stunko","followers_url":"https://api.github.com/users/stunko/followers","following_url":"https://api.github.com/users/stunko/following{/other_user}","gists_url":"https://api.github.com/users/stunko/gists{/gist_id}","starred_url":"https://api.github.com/users/stunko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stunko/subscriptions","organizations_url":"https://api.github.com/users/stunko/orgs","repos_url":"https://api.github.com/users/stunko/repos","events_url":"https://api.github.com/users/stunko/events{/privacy}","received_events_url":"https://api.github.com/users/stunko/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-02T13:23:34Z","updated_at":"2015-11-02T13:41:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8337c546bf1e20170cac57a251298b7797966786","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Scalr/revizor-tests/pulls/23/commits","review_comments_url":"https://api.github.com/repos/Scalr/revizor-tests/pulls/23/comments","review_comment_url":"https://api.github.com/repos/Scalr/revizor-tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Scalr/revizor-tests/issues/23/comments","statuses_url":"https://api.github.com/repos/Scalr/revizor-tests/statuses/534aa3f1664124495349f22cb77e375c0ae29b15","head":{"label":"Scalr:feature/REV-3","ref":"feature/REV-3","sha":"534aa3f1664124495349f22cb77e375c0ae29b15","user":{"login":"Scalr","id":899603,"avatar_url":"https://avatars.githubusercontent.com/u/899603?v=3","gravatar_id":"","url":"https://api.github.com/users/Scalr","html_url":"https://github.com/Scalr","followers_url":"https://api.github.com/users/Scalr/followers","following_url":"https://api.github.com/users/Scalr/following{/other_user}","gists_url":"https://api.github.com/users/Scalr/gists{/gist_id}","starred_url":"https://api.github.com/users/Scalr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Scalr/subscriptions","organizations_url":"https://api.github.com/users/Scalr/orgs","repos_url":"https://api.github.com/users/Scalr/repos","events_url":"https://api.github.com/users/Scalr/events{/privacy}","received_events_url":"https://api.github.com/users/Scalr/received_events","type":"Organization","site_admin":false},"repo":{"id":8455288,"name":"revizor-tests","full_name":"Scalr/revizor-tests","owner":{"login":"Scalr","id":899603,"avatar_url":"https://avatars.githubusercontent.com/u/899603?v=3","gravatar_id":"","url":"https://api.github.com/users/Scalr","html_url":"https://github.com/Scalr","followers_url":"https://api.github.com/users/Scalr/followers","following_url":"https://api.github.com/users/Scalr/following{/other_user}","gists_url":"https://api.github.com/users/Scalr/gists{/gist_id}","starred_url":"https://api.github.com/users/Scalr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Scalr/subscriptions","organizations_url":"https://api.github.com/users/Scalr/orgs","repos_url":"https://api.github.com/users/Scalr/repos","events_url":"https://api.github.com/users/Scalr/events{/privacy}","received_events_url":"https://api.github.com/users/Scalr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Scalr/revizor-tests","description":"","fork":false,"url":"https://api.github.com/repos/Scalr/revizor-tests","forks_url":"https://api.github.com/repos/Scalr/revizor-tests/forks","keys_url":"https://api.github.com/repos/Scalr/revizor-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Scalr/revizor-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Scalr/revizor-tests/teams","hooks_url":"https://api.github.com/repos/Scalr/revizor-tests/hooks","issue_events_url":"https://api.github.com/repos/Scalr/revizor-tests/issues/events{/number}","events_url":"https://api.github.com/repos/Scalr/revizor-tests/events","assignees_url":"https://api.github.com/repos/Scalr/revizor-tests/assignees{/user}","branches_url":"https://api.github.com/repos/Scalr/revizor-tests/branches{/branch}","tags_url":"https://api.github.com/repos/Scalr/revizor-tests/tags","blobs_url":"https://api.github.com/repos/Scalr/revizor-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Scalr/revizor-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Scalr/revizor-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/Scalr/revizor-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Scalr/revizor-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/Scalr/revizor-tests/languages","stargazers_url":"https://api.github.com/repos/Scalr/revizor-tests/stargazers","contributors_url":"https://api.github.com/repos/Scalr/revizor-tests/contributors","subscribers_url":"https://api.github.com/repos/Scalr/revizor-tests/subscribers","subscription_url":"https://api.github.com/repos/Scalr/revizor-tests/subscription","commits_url":"https://api.github.com/repos/Scalr/revizor-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/Scalr/revizor-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/Scalr/revizor-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/Scalr/revizor-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/Scalr/revizor-tests/contents/{+path}","compare_url":"https://api.github.com/repos/Scalr/revizor-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Scalr/revizor-tests/merges","archive_url":"https://api.github.com/repos/Scalr/revizor-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Scalr/revizor-tests/downloads","issues_url":"https://api.github.com/repos/Scalr/revizor-tests/issues{/number}","pulls_url":"https://api.github.com/repos/Scalr/revizor-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/Scalr/revizor-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/Scalr/revizor-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Scalr/revizor-tests/labels{/name}","releases_url":"https://api.github.com/repos/Scalr/revizor-tests/releases{/id}","created_at":"2013-02-27T12:15:45Z","updated_at":"2015-05-06T13:47:22Z","pushed_at":"2015-11-02T13:23:34Z","git_url":"git://github.com/Scalr/revizor-tests.git","ssh_url":"git@github.com:Scalr/revizor-tests.git","clone_url":"https://github.com/Scalr/revizor-tests.git","svn_url":"https://github.com/Scalr/revizor-tests","homepage":null,"size":2770,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Scalr:master","ref":"master","sha":"681af3d0706dcd5b383dbc66af5e6d1d4280c224","user":{"login":"Scalr","id":899603,"avatar_url":"https://avatars.githubusercontent.com/u/899603?v=3","gravatar_id":"","url":"https://api.github.com/users/Scalr","html_url":"https://github.com/Scalr","followers_url":"https://api.github.com/users/Scalr/followers","following_url":"https://api.github.com/users/Scalr/following{/other_user}","gists_url":"https://api.github.com/users/Scalr/gists{/gist_id}","starred_url":"https://api.github.com/users/Scalr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Scalr/subscriptions","organizations_url":"https://api.github.com/users/Scalr/orgs","repos_url":"https://api.github.com/users/Scalr/repos","events_url":"https://api.github.com/users/Scalr/events{/privacy}","received_events_url":"https://api.github.com/users/Scalr/received_events","type":"Organization","site_admin":false},"repo":{"id":8455288,"name":"revizor-tests","full_name":"Scalr/revizor-tests","owner":{"login":"Scalr","id":899603,"avatar_url":"https://avatars.githubusercontent.com/u/899603?v=3","gravatar_id":"","url":"https://api.github.com/users/Scalr","html_url":"https://github.com/Scalr","followers_url":"https://api.github.com/users/Scalr/followers","following_url":"https://api.github.com/users/Scalr/following{/other_user}","gists_url":"https://api.github.com/users/Scalr/gists{/gist_id}","starred_url":"https://api.github.com/users/Scalr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Scalr/subscriptions","organizations_url":"https://api.github.com/users/Scalr/orgs","repos_url":"https://api.github.com/users/Scalr/repos","events_url":"https://api.github.com/users/Scalr/events{/privacy}","received_events_url":"https://api.github.com/users/Scalr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Scalr/revizor-tests","description":"","fork":false,"url":"https://api.github.com/repos/Scalr/revizor-tests","forks_url":"https://api.github.com/repos/Scalr/revizor-tests/forks","keys_url":"https://api.github.com/repos/Scalr/revizor-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Scalr/revizor-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Scalr/revizor-tests/teams","hooks_url":"https://api.github.com/repos/Scalr/revizor-tests/hooks","issue_events_url":"https://api.github.com/repos/Scalr/revizor-tests/issues/events{/number}","events_url":"https://api.github.com/repos/Scalr/revizor-tests/events","assignees_url":"https://api.github.com/repos/Scalr/revizor-tests/assignees{/user}","branches_url":"https://api.github.com/repos/Scalr/revizor-tests/branches{/branch}","tags_url":"https://api.github.com/repos/Scalr/revizor-tests/tags","blobs_url":"https://api.github.com/repos/Scalr/revizor-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Scalr/revizor-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Scalr/revizor-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/Scalr/revizor-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Scalr/revizor-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/Scalr/revizor-tests/languages","stargazers_url":"https://api.github.com/repos/Scalr/revizor-tests/stargazers","contributors_url":"https://api.github.com/repos/Scalr/revizor-tests/contributors","subscribers_url":"https://api.github.com/repos/Scalr/revizor-tests/subscribers","subscription_url":"https://api.github.com/repos/Scalr/revizor-tests/subscription","commits_url":"https://api.github.com/repos/Scalr/revizor-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/Scalr/revizor-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/Scalr/revizor-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/Scalr/revizor-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/Scalr/revizor-tests/contents/{+path}","compare_url":"https://api.github.com/repos/Scalr/revizor-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Scalr/revizor-tests/merges","archive_url":"https://api.github.com/repos/Scalr/revizor-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Scalr/revizor-tests/downloads","issues_url":"https://api.github.com/repos/Scalr/revizor-tests/issues{/number}","pulls_url":"https://api.github.com/repos/Scalr/revizor-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/Scalr/revizor-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/Scalr/revizor-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Scalr/revizor-tests/labels{/name}","releases_url":"https://api.github.com/repos/Scalr/revizor-tests/releases{/id}","created_at":"2013-02-27T12:15:45Z","updated_at":"2015-05-06T13:47:22Z","pushed_at":"2015-11-02T13:23:34Z","git_url":"git://github.com/Scalr/revizor-tests.git","ssh_url":"git@github.com:Scalr/revizor-tests.git","clone_url":"https://github.com/Scalr/revizor-tests.git","svn_url":"https://github.com/Scalr/revizor-tests","homepage":null,"size":2770,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Scalr/revizor-tests/pulls/23"},"html":{"href":"https://github.com/Scalr/revizor-tests/pull/23"},"issue":{"href":"https://api.github.com/repos/Scalr/revizor-tests/issues/23"},"comments":{"href":"https://api.github.com/repos/Scalr/revizor-tests/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/Scalr/revizor-tests/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/Scalr/revizor-tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Scalr/revizor-tests/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/Scalr/revizor-tests/statuses/534aa3f1664124495349f22cb77e375c0ae29b15"}}}}