{"action":"created","comment":{"url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/comments/31996287","id":31996287,"diff_hunk":"@@ -0,0 +1,73 @@\n+#   (c) Copyright 2014 Hewlett-Packard Development Company, L.P.\n+#   All rights reserved. This program and the accompanying materials\n+#   are made available under the terms of the Apache License v2.0 which accompany this distribution.\n+#\n+#   The Apache License is available at\n+#   http://www.apache.org/licenses/LICENSE-2.0\n+#\n+####################################################\n+namespace: io.cloudslang.base.os.linux\n+\n+imports:\n+  images: io.cloudslang.docker.images\n+  containers: io.cloudslang.docker.containers\n+  linux: io.cloudslang.base.os.linux\n+  ssh: io.cloudslang.base.remote_command_execution.ssh\n+  cmd: io.cloudslang.base.cmd\n+\n+flow:\n+  name: test_restart_service\n+  inputs:\n+    - host\n+    - port\n+    - username\n+    - password\n+    - service_name\n+\n+  workflow:\n+    - start_docker:\n+        do:\n+          cmd.run_command:\n+            - command:\n+                default: \"'docker run -d -p 49160:22 --name test_sshd rastasheep/ubuntu-sshd'\"\n+                overridable: false\n+        navigate:\n+          SUCCESS: restart_service\n+          FAILURE: FAIL_START_DOCKER\n+\n+    - restart_service:\n+        do:\n+          linux.restart_service:\n+            - host:\n+                default: \"'localhost'\"\n+                overridable: false\n+            - port:\n+                default: \"'49160'\"\n+                overridable: false\n+            - username\n+            - password:\n+                default: \"'root'\"\n+                overridable: false\n+            - service_name: service_name\n+        navigate:\n+          SUCCESS: stop_test_container\n+          FAILURE: FAILURE\n+","path":"test/io/cloudslang/base/os/linux/test_restart_service.sl","position":55,"original_position":55,"commit_id":"de2debe33c81065dbafdc39d32437a49bdbd66d0","original_commit_id":"de2debe33c81065dbafdc39d32437a49bdbd66d0","user":{"login":"meirwah","id":6059211,"avatar_url":"https://avatars.githubusercontent.com/u/6059211?v=3","gravatar_id":"","url":"https://api.github.com/users/meirwah","html_url":"https://github.com/meirwah","followers_url":"https://api.github.com/users/meirwah/followers","following_url":"https://api.github.com/users/meirwah/following{/other_user}","gists_url":"https://api.github.com/users/meirwah/gists{/gist_id}","starred_url":"https://api.github.com/users/meirwah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meirwah/subscriptions","organizations_url":"https://api.github.com/users/meirwah/orgs","repos_url":"https://api.github.com/users/meirwah/repos","events_url":"https://api.github.com/users/meirwah/events{/privacy}","received_events_url":"https://api.github.com/users/meirwah/received_events","type":"User","site_admin":false},"body":"@raskin-aleksandr  ??","created_at":"2015-06-09T09:29:47Z","updated_at":"2015-06-09T09:29:47Z","html_url":"https://github.com/CloudSlang/cloud-slang-content/pull/129#discussion_r31996287","pull_request_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/129","_links":{"self":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/comments/31996287"},"html":{"href":"https://github.com/CloudSlang/cloud-slang-content/pull/129#discussion_r31996287"},"pull_request":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/129"}}},"pull_request":{"url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/129","id":34600946,"html_url":"https://github.com/CloudSlang/cloud-slang-content/pull/129","diff_url":"https://github.com/CloudSlang/cloud-slang-content/pull/129.diff","patch_url":"https://github.com/CloudSlang/cloud-slang-content/pull/129.patch","issue_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues/129","number":129,"state":"open","locked":false,"title":"restart linux service system test","user":{"login":"raskin-aleksandr","id":10484427,"avatar_url":"https://avatars.githubusercontent.com/u/10484427?v=3","gravatar_id":"","url":"https://api.github.com/users/raskin-aleksandr","html_url":"https://github.com/raskin-aleksandr","followers_url":"https://api.github.com/users/raskin-aleksandr/followers","following_url":"https://api.github.com/users/raskin-aleksandr/following{/other_user}","gists_url":"https://api.github.com/users/raskin-aleksandr/gists{/gist_id}","starred_url":"https://api.github.com/users/raskin-aleksandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raskin-aleksandr/subscriptions","organizations_url":"https://api.github.com/users/raskin-aleksandr/orgs","repos_url":"https://api.github.com/users/raskin-aleksandr/repos","events_url":"https://api.github.com/users/raskin-aleksandr/events{/privacy}","received_events_url":"https://api.github.com/users/raskin-aleksandr/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-03T13:06:43Z","updated_at":"2015-06-09T09:29:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"05d4907b3670e7ca6b9b1cffd98e50bebb9b378e","assignee":{"login":"raskin-aleksandr","id":10484427,"avatar_url":"https://avatars.githubusercontent.com/u/10484427?v=3","gravatar_id":"","url":"https://api.github.com/users/raskin-aleksandr","html_url":"https://github.com/raskin-aleksandr","followers_url":"https://api.github.com/users/raskin-aleksandr/followers","following_url":"https://api.github.com/users/raskin-aleksandr/following{/other_user}","gists_url":"https://api.github.com/users/raskin-aleksandr/gists{/gist_id}","starred_url":"https://api.github.com/users/raskin-aleksandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raskin-aleksandr/subscriptions","organizations_url":"https://api.github.com/users/raskin-aleksandr/orgs","repos_url":"https://api.github.com/users/raskin-aleksandr/repos","events_url":"https://api.github.com/users/raskin-aleksandr/events{/privacy}","received_events_url":"https://api.github.com/users/raskin-aleksandr/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/milestones/6","html_url":"https://github.com/CloudSlang/cloud-slang-content/milestones/0.8%20-%20sprint%205","labels_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/milestones/6/labels","id":1115260,"number":6,"title":"0.8 - sprint 5","description":"","creator":{"login":"oritstone","id":7547370,"avatar_url":"https://avatars.githubusercontent.com/u/7547370?v=3","gravatar_id":"","url":"https://api.github.com/users/oritstone","html_url":"https://github.com/oritstone","followers_url":"https://api.github.com/users/oritstone/followers","following_url":"https://api.github.com/users/oritstone/following{/other_user}","gists_url":"https://api.github.com/users/oritstone/gists{/gist_id}","starred_url":"https://api.github.com/users/oritstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oritstone/subscriptions","organizations_url":"https://api.github.com/users/oritstone/orgs","repos_url":"https://api.github.com/users/oritstone/repos","events_url":"https://api.github.com/users/oritstone/events{/privacy}","received_events_url":"https://api.github.com/users/oritstone/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":0,"state":"open","created_at":"2015-05-18T10:04:02Z","updated_at":"2015-06-07T14:15:45Z","due_on":"2015-06-18T21:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/129/commits","review_comments_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/129/comments","review_comment_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues/129/comments","statuses_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/statuses/de2debe33c81065dbafdc39d32437a49bdbd66d0","head":{"label":"CloudSlang:restart_linux_service-op-test","ref":"restart_linux_service-op-test","sha":"de2debe33c81065dbafdc39d32437a49bdbd66d0","user":{"login":"CloudSlang","id":10261505,"avatar_url":"https://avatars.githubusercontent.com/u/10261505?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudSlang","html_url":"https://github.com/CloudSlang","followers_url":"https://api.github.com/users/CloudSlang/followers","following_url":"https://api.github.com/users/CloudSlang/following{/other_user}","gists_url":"https://api.github.com/users/CloudSlang/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudSlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudSlang/subscriptions","organizations_url":"https://api.github.com/users/CloudSlang/orgs","repos_url":"https://api.github.com/users/CloudSlang/repos","events_url":"https://api.github.com/users/CloudSlang/events{/privacy}","received_events_url":"https://api.github.com/users/CloudSlang/received_events","type":"Organization","site_admin":false},"repo":{"id":28634263,"name":"cloud-slang-content","full_name":"CloudSlang/cloud-slang-content","owner":{"login":"CloudSlang","id":10261505,"avatar_url":"https://avatars.githubusercontent.com/u/10261505?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudSlang","html_url":"https://github.com/CloudSlang","followers_url":"https://api.github.com/users/CloudSlang/followers","following_url":"https://api.github.com/users/CloudSlang/following{/other_user}","gists_url":"https://api.github.com/users/CloudSlang/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudSlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudSlang/subscriptions","organizations_url":"https://api.github.com/users/CloudSlang/orgs","repos_url":"https://api.github.com/users/CloudSlang/repos","events_url":"https://api.github.com/users/CloudSlang/events{/privacy}","received_events_url":"https://api.github.com/users/CloudSlang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CloudSlang/cloud-slang-content","description":"Ready-Made CloudSlang Flows and Operations","fork":false,"url":"https://api.github.com/repos/CloudSlang/cloud-slang-content","forks_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/forks","keys_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/teams","hooks_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/hooks","issue_events_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues/events{/number}","events_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/events","assignees_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/assignees{/user}","branches_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/branches{/branch}","tags_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/tags","blobs_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/git/refs{/sha}","trees_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/statuses/{sha}","languages_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/languages","stargazers_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/stargazers","contributors_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/contributors","subscribers_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/subscribers","subscription_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/subscription","commits_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/commits{/sha}","git_commits_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/git/commits{/sha}","comments_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/comments{/number}","issue_comment_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues/comments{/number}","contents_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/contents/{+path}","compare_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/merges","archive_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/downloads","issues_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues{/number}","pulls_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls{/number}","milestones_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/milestones{/number}","notifications_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/labels{/name}","releases_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/releases{/id}","created_at":"2014-12-30T14:47:38Z","updated_at":"2015-06-08T22:59:57Z","pushed_at":"2015-06-09T09:20:13Z","git_url":"git://github.com/CloudSlang/cloud-slang-content.git","ssh_url":"git@github.com:CloudSlang/cloud-slang-content.git","clone_url":"https://github.com/CloudSlang/cloud-slang-content.git","svn_url":"https://github.com/CloudSlang/cloud-slang-content","homepage":"http://www.cloudslang.io/","size":3712,"stargazers_count":13,"watchers_count":13,"language":"Slash","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":29,"forks":10,"open_issues":29,"watchers":13,"default_branch":"master"}},"base":{"label":"CloudSlang:master","ref":"master","sha":"1704f8e3f71922b51755948c5d8caad2cc24e764","user":{"login":"CloudSlang","id":10261505,"avatar_url":"https://avatars.githubusercontent.com/u/10261505?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudSlang","html_url":"https://github.com/CloudSlang","followers_url":"https://api.github.com/users/CloudSlang/followers","following_url":"https://api.github.com/users/CloudSlang/following{/other_user}","gists_url":"https://api.github.com/users/CloudSlang/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudSlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudSlang/subscriptions","organizations_url":"https://api.github.com/users/CloudSlang/orgs","repos_url":"https://api.github.com/users/CloudSlang/repos","events_url":"https://api.github.com/users/CloudSlang/events{/privacy}","received_events_url":"https://api.github.com/users/CloudSlang/received_events","type":"Organization","site_admin":false},"repo":{"id":28634263,"name":"cloud-slang-content","full_name":"CloudSlang/cloud-slang-content","owner":{"login":"CloudSlang","id":10261505,"avatar_url":"https://avatars.githubusercontent.com/u/10261505?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudSlang","html_url":"https://github.com/CloudSlang","followers_url":"https://api.github.com/users/CloudSlang/followers","following_url":"https://api.github.com/users/CloudSlang/following{/other_user}","gists_url":"https://api.github.com/users/CloudSlang/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudSlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudSlang/subscriptions","organizations_url":"https://api.github.com/users/CloudSlang/orgs","repos_url":"https://api.github.com/users/CloudSlang/repos","events_url":"https://api.github.com/users/CloudSlang/events{/privacy}","received_events_url":"https://api.github.com/users/CloudSlang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CloudSlang/cloud-slang-content","description":"Ready-Made CloudSlang Flows and Operations","fork":false,"url":"https://api.github.com/repos/CloudSlang/cloud-slang-content","forks_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/forks","keys_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/teams","hooks_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/hooks","issue_events_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues/events{/number}","events_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/events","assignees_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/assignees{/user}","branches_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/branches{/branch}","tags_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/tags","blobs_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/git/refs{/sha}","trees_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/statuses/{sha}","languages_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/languages","stargazers_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/stargazers","contributors_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/contributors","subscribers_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/subscribers","subscription_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/subscription","commits_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/commits{/sha}","git_commits_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/git/commits{/sha}","comments_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/comments{/number}","issue_comment_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues/comments{/number}","contents_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/contents/{+path}","compare_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/merges","archive_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/downloads","issues_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues{/number}","pulls_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls{/number}","milestones_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/milestones{/number}","notifications_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/labels{/name}","releases_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/releases{/id}","created_at":"2014-12-30T14:47:38Z","updated_at":"2015-06-08T22:59:57Z","pushed_at":"2015-06-09T09:20:13Z","git_url":"git://github.com/CloudSlang/cloud-slang-content.git","ssh_url":"git@github.com:CloudSlang/cloud-slang-content.git","clone_url":"https://github.com/CloudSlang/cloud-slang-content.git","svn_url":"https://github.com/CloudSlang/cloud-slang-content","homepage":"http://www.cloudslang.io/","size":3712,"stargazers_count":13,"watchers_count":13,"language":"Slash","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":29,"forks":10,"open_issues":29,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/129"},"html":{"href":"https://github.com/CloudSlang/cloud-slang-content/pull/129"},"issue":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues/129"},"comments":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues/129/comments"},"review_comments":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/129/comments"},"review_comment":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/129/commits"},"statuses":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/statuses/de2debe33c81065dbafdc39d32437a49bdbd66d0"}}}}