{"action":"created","comment":{"url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/comments/32503325","id":32503325,"diff_hunk":"@@ -0,0 +1,113 @@\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+# Workflow to test docker get_all_images operation.\n+#\n+# Inputs:\n+#   - host - Docker machine host\n+#   - port - Docker machine port\n+#   - username - Docker machine username\n+#   - password - Docker machine password\n+#   - image_name - Docker image name to inspect\n+#\n+# Results:\n+#   - SUCCESS - get_all_images performed successfully\n+#   - FAILURE - get_all_images finished with an error\n+#   - DOWNLOAD_FAILURE - prerequest error - could not download dockerimage\n+#   - VERIFY_FAILURE - failes ro verify downloaded images\n+#   - DELETE_FAILURE - failes to delte downloaded image\n+#   - MACHINE_IS_NOT_CLEAN - prerequest failes - machine is not clean\n+#\n+####################################################\n+namespace: io.cloudslang.docker.images\n+\n+imports:\n+  images: io.cloudslang.docker.images\n+  strings: io.cloudslang.base.strings\n+  linux: io.cloudslang.base.os.linux\n+  maintenance: io.cloudslang.docker.maintenance\n+\n+\n+flow:\n+  name: test_inspect_image\n+  inputs:\n+    - host\n+    - port:\n+        required: false\n+    - username\n+    - password\n+    - image_name\n+  workflow:\n+    - clear_docker_host_prereqeust:\n+         do:\n+           maintenance.clear_docker_host:\n+             - docker_host: host\n+             - port:\n+                 required: false\n+             - docker_username: username\n+             - docker_password: password\n+         navigate:\n+           SUCCESS: pull_image\n+           FAILURE: MACHINE_IS_NOT_CLEAN\n+\n+    - pull_image:\n+        do:\n+          images.pull_image:\n+            - host\n+            - port\n+            - username\n+            - password\n+            - image_name\n+        navigate:\n+          SUCCESS: inspect_image\n+          FAILURE: DOWNLOAD_FAILURE\n+\n+    - inspect_image:\n+        do:\n+          images.inspect_image:\n+            - host\n+            - port\n+            - username\n+            - password\n+            - image_name\n+        publish:\n+            - standard_out: standard_out\n+        navigate:\n+          SUCCESS: verify_output\n+          FAILURE: FAILURE\n+\n+    - verify_output:\n+        do:\n+          strings.string_occurrence_counter:\n+            - string_in_which_to_search: standard_out\n+            - string_to_find: \"'/hello'\"\n+        navigate:\n+          SUCCESS: clear_after\n+          FAILURE: VERIFY_FAILURE","path":"test/io/cloudslang/docker/images/test_inspect_image.sl","position":91,"original_position":91,"commit_id":"41df056f0750f92c5a64ce674379e46a13e4d0d7","original_commit_id":"41df056f0750f92c5a64ce674379e46a13e4d0d7","user":{"login":"Bonczidai","id":8058961,"avatar_url":"https://avatars.githubusercontent.com/u/8058961?v=3","gravatar_id":"","url":"https://api.github.com/users/Bonczidai","html_url":"https://github.com/Bonczidai","followers_url":"https://api.github.com/users/Bonczidai/followers","following_url":"https://api.github.com/users/Bonczidai/following{/other_user}","gists_url":"https://api.github.com/users/Bonczidai/gists{/gist_id}","starred_url":"https://api.github.com/users/Bonczidai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bonczidai/subscriptions","organizations_url":"https://api.github.com/users/Bonczidai/orgs","repos_url":"https://api.github.com/users/Bonczidai/repos","events_url":"https://api.github.com/users/Bonczidai/events{/privacy}","received_events_url":"https://api.github.com/users/Bonczidai/received_events","type":"User","site_admin":false},"body":"you're right.. just looked in the op - SUCCESS means `string is found at least once` :wink: ","created_at":"2015-06-16T09:13:32Z","updated_at":"2015-06-16T09:13:32Z","html_url":"https://github.com/CloudSlang/cloud-slang-content/pull/184#discussion_r32503325","pull_request_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/184","_links":{"self":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/comments/32503325"},"html":{"href":"https://github.com/CloudSlang/cloud-slang-content/pull/184#discussion_r32503325"},"pull_request":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/184"}}},"pull_request":{"url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/184","id":37759705,"html_url":"https://github.com/CloudSlang/cloud-slang-content/pull/184","diff_url":"https://github.com/CloudSlang/cloud-slang-content/pull/184.diff","patch_url":"https://github.com/CloudSlang/cloud-slang-content/pull/184.patch","issue_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues/184","number":184,"state":"open","locked":false,"title":"Inspect image test","user":{"login":"orius123","id":4418018,"avatar_url":"https://avatars.githubusercontent.com/u/4418018?v=3","gravatar_id":"","url":"https://api.github.com/users/orius123","html_url":"https://github.com/orius123","followers_url":"https://api.github.com/users/orius123/followers","following_url":"https://api.github.com/users/orius123/following{/other_user}","gists_url":"https://api.github.com/users/orius123/gists{/gist_id}","starred_url":"https://api.github.com/users/orius123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orius123/subscriptions","organizations_url":"https://api.github.com/users/orius123/orgs","repos_url":"https://api.github.com/users/orius123/repos","events_url":"https://api.github.com/users/orius123/events{/privacy}","received_events_url":"https://api.github.com/users/orius123/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-16T04:56:04Z","updated_at":"2015-06-16T09:13:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f4ccf0f437f8b62a6b231d2afcebb44dfde5dbd2","assignee":{"login":"orius123","id":4418018,"avatar_url":"https://avatars.githubusercontent.com/u/4418018?v=3","gravatar_id":"","url":"https://api.github.com/users/orius123","html_url":"https://github.com/orius123","followers_url":"https://api.github.com/users/orius123/followers","following_url":"https://api.github.com/users/orius123/following{/other_user}","gists_url":"https://api.github.com/users/orius123/gists{/gist_id}","starred_url":"https://api.github.com/users/orius123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orius123/subscriptions","organizations_url":"https://api.github.com/users/orius123/orgs","repos_url":"https://api.github.com/users/orius123/repos","events_url":"https://api.github.com/users/orius123/events{/privacy}","received_events_url":"https://api.github.com/users/orius123/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":14,"closed_issues":4,"state":"open","created_at":"2015-05-18T10:04:02Z","updated_at":"2015-06-16T08:49:00Z","due_on":"2015-06-18T21:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/184/commits","review_comments_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/184/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/184/comments","statuses_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/statuses/41df056f0750f92c5a64ce674379e46a13e4d0d7","head":{"label":"CloudSlang:inspect_image_test","ref":"inspect_image_test","sha":"41df056f0750f92c5a64ce674379e46a13e4d0d7","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-16T08:46:19Z","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":4066,"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":33,"forks":10,"open_issues":33,"watchers":13,"default_branch":"master"}},"base":{"label":"CloudSlang:master","ref":"master","sha":"f858f31b6f4a91a75fa20f09c245d3bdf791d002","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-16T08:46:19Z","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":4066,"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":33,"forks":10,"open_issues":33,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/184"},"html":{"href":"https://github.com/CloudSlang/cloud-slang-content/pull/184"},"issue":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues/184"},"comments":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues/184/comments"},"review_comments":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/184/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/184/commits"},"statuses":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/statuses/41df056f0750f92c5a64ce674379e46a13e4d0d7"}}}}