{"action":"created","comment":{"url":"https://api.github.com/repos/Tendrl/usmqe-tests/pulls/comments/99598656","pull_request_review_id":20279370,"id":99598656,"diff_hunk":"@@ -0,0 +1,271 @@\n+\"\"\"\n+REST API test suite - gluster volume\n+\"\"\"\n+import pytest\n+\n+from usmqe.api.tendrlapi import tendrlapi\n+from usmqe.gluster import gluster\n+\n+\n+LOGGER = pytest.get_logger('volume_test', module=True)\n+\"\"\"@pylatest default\n+Setup\n+=====\n+\"\"\"\n+\n+\"\"\"@pylatest default\n+Teardown\n+========\n+\"\"\"\n+\n+\n+def test_create_volume_valid(valid_cluster_id, valid_volume_bricks):\n+    \"\"\"@pylatest api/gluster.create_volume\n+        API-gluster: create_volume\n+        ******************************\n+\n+        .. test_metadata:: author fbalak@redhat.com\n+\n+        Description\n+        ===========\n+\n+        Get list of attributes needed to use in cluster volume creation with given cluster_id.\n+\n+        .. test_step:: 1\n+\n+                Connect to Tendrl API via POST request to ``APIURL/:cluster_id/GlusterCreateVolume``\n+                Where cluster_id is set to predefined value.\n+\n+        .. test_result:: 1\n+\n+                Server should return response in JSON format:\n+\n+                Return code should be **202** with data ``{\"message\": \"Accepted\"}``.\n+                \"\"\"\n+    api = tendrlapi.ApiGluster()\n+\n+    volume_data = {\n+        \"Volume.volname\": pytest.config.getini(\"usm_volume_name\"),\n+        \"Volume.bricks\": valid_volume_bricks\n+    }\n+\n+    job_id = api.create_volume(valid_cluster_id, volume_data)[\"job_id\"]\n+    api.wait_for_job_status(job_id)\n+    \"\"\"@pylatest api/gluster.create_volume\n+        API-gluster: create_volume\n+        ******************************\n+\n+        .. test_metadata:: author fbalak@redhat.com\n+\n+        Description\n+        ===========\n+\n+        Check if there is created volume on gluster nodes via CLI.\n+\n+        .. test_step:: 2\n+\n+            Connect to gluster node machine via ssh and run\n+            ``gluster volume info command``\n+\n+        .. test_result:: 2\n+\n+            There should be listed gluster volume named ``Vol_test``.\n+\n+            \"\"\"\n+    storage = gluster.GlusterCommon()\n+    storage.find_volume_name(pytest.config.getini(\"usm_volume_name\"))\n+\n+    # TODO change\n+    xml = storage.run_on_node(command=\"volume info\")","path":"usmqe_tests/api/tendrl/test_volume.py","position":79,"original_position":79,"commit_id":"b14a04df15bdf63706166c9a99bfcb96adbdfe2b","original_commit_id":"b14a04df15bdf63706166c9a99bfcb96adbdfe2b","user":{"login":"mkudlej","id":5920442,"avatar_url":"https://avatars.githubusercontent.com/u/5920442?v=3","gravatar_id":"","url":"https://api.github.com/users/mkudlej","html_url":"https://github.com/mkudlej","followers_url":"https://api.github.com/users/mkudlej/followers","following_url":"https://api.github.com/users/mkudlej/following{/other_user}","gists_url":"https://api.github.com/users/mkudlej/gists{/gist_id}","starred_url":"https://api.github.com/users/mkudlej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkudlej/subscriptions","organizations_url":"https://api.github.com/users/mkudlej/orgs","repos_url":"https://api.github.com/users/mkudlej/repos","events_url":"https://api.github.com/users/mkudlej/events{/privacy}","received_events_url":"https://api.github.com/users/mkudlej/received_events","type":"User","site_admin":false},"body":"This command should be called with volume name.","created_at":"2017-02-06T14:46:03Z","updated_at":"2017-02-06T14:51:38Z","html_url":"https://github.com/Tendrl/usmqe-tests/pull/34#discussion_r99598656","pull_request_url":"https://api.github.com/repos/Tendrl/usmqe-tests/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/Tendrl/usmqe-tests/pulls/comments/99598656"},"html":{"href":"https://github.com/Tendrl/usmqe-tests/pull/34#discussion_r99598656"},"pull_request":{"href":"https://api.github.com/repos/Tendrl/usmqe-tests/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/Tendrl/usmqe-tests/pulls/34","id":104763943,"html_url":"https://github.com/Tendrl/usmqe-tests/pull/34","diff_url":"https://github.com/Tendrl/usmqe-tests/pull/34.diff","patch_url":"https://github.com/Tendrl/usmqe-tests/pull/34.patch","issue_url":"https://api.github.com/repos/Tendrl/usmqe-tests/issues/34","number":34,"state":"closed","locked":false,"title":"add volume tests","user":{"login":"fbalak","id":22369801,"avatar_url":"https://avatars.githubusercontent.com/u/22369801?v=3","gravatar_id":"","url":"https://api.github.com/users/fbalak","html_url":"https://github.com/fbalak","followers_url":"https://api.github.com/users/fbalak/followers","following_url":"https://api.github.com/users/fbalak/following{/other_user}","gists_url":"https://api.github.com/users/fbalak/gists{/gist_id}","starred_url":"https://api.github.com/users/fbalak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbalak/subscriptions","organizations_url":"https://api.github.com/users/fbalak/orgs","repos_url":"https://api.github.com/users/fbalak/repos","events_url":"https://api.github.com/users/fbalak/events{/privacy}","received_events_url":"https://api.github.com/users/fbalak/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-06T09:45:54Z","updated_at":"2017-02-06T14:51:38Z","closed_at":"2017-02-06T13:19:24Z","merged_at":null,"merge_commit_sha":"81dd5ffdbb5e2f4079b8b2ace94e27012f630e13","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Tendrl/usmqe-tests/pulls/34/commits","review_comments_url":"https://api.github.com/repos/Tendrl/usmqe-tests/pulls/34/comments","review_comment_url":"https://api.github.com/repos/Tendrl/usmqe-tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tendrl/usmqe-tests/issues/34/comments","statuses_url":"https://api.github.com/repos/Tendrl/usmqe-tests/statuses/b14a04df15bdf63706166c9a99bfcb96adbdfe2b","head":{"label":"fbalak:volume-test","ref":"volume-test","sha":"b14a04df15bdf63706166c9a99bfcb96adbdfe2b","user":{"login":"fbalak","id":22369801,"avatar_url":"https://avatars.githubusercontent.com/u/22369801?v=3","gravatar_id":"","url":"https://api.github.com/users/fbalak","html_url":"https://github.com/fbalak","followers_url":"https://api.github.com/users/fbalak/followers","following_url":"https://api.github.com/users/fbalak/following{/other_user}","gists_url":"https://api.github.com/users/fbalak/gists{/gist_id}","starred_url":"https://api.github.com/users/fbalak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbalak/subscriptions","organizations_url":"https://api.github.com/users/fbalak/orgs","repos_url":"https://api.github.com/users/fbalak/repos","events_url":"https://api.github.com/users/fbalak/events{/privacy}","received_events_url":"https://api.github.com/users/fbalak/received_events","type":"User","site_admin":false},"repo":{"id":72757701,"name":"usmqe-tests","full_name":"fbalak/usmqe-tests","owner":{"login":"fbalak","id":22369801,"avatar_url":"https://avatars.githubusercontent.com/u/22369801?v=3","gravatar_id":"","url":"https://api.github.com/users/fbalak","html_url":"https://github.com/fbalak","followers_url":"https://api.github.com/users/fbalak/followers","following_url":"https://api.github.com/users/fbalak/following{/other_user}","gists_url":"https://api.github.com/users/fbalak/gists{/gist_id}","starred_url":"https://api.github.com/users/fbalak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbalak/subscriptions","organizations_url":"https://api.github.com/users/fbalak/orgs","repos_url":"https://api.github.com/users/fbalak/repos","events_url":"https://api.github.com/users/fbalak/events{/privacy}","received_events_url":"https://api.github.com/users/fbalak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fbalak/usmqe-tests","description":"Tendrl automated test code","fork":true,"url":"https://api.github.com/repos/fbalak/usmqe-tests","forks_url":"https://api.github.com/repos/fbalak/usmqe-tests/forks","keys_url":"https://api.github.com/repos/fbalak/usmqe-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fbalak/usmqe-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fbalak/usmqe-tests/teams","hooks_url":"https://api.github.com/repos/fbalak/usmqe-tests/hooks","issue_events_url":"https://api.github.com/repos/fbalak/usmqe-tests/issues/events{/number}","events_url":"https://api.github.com/repos/fbalak/usmqe-tests/events","assignees_url":"https://api.github.com/repos/fbalak/usmqe-tests/assignees{/user}","branches_url":"https://api.github.com/repos/fbalak/usmqe-tests/branches{/branch}","tags_url":"https://api.github.com/repos/fbalak/usmqe-tests/tags","blobs_url":"https://api.github.com/repos/fbalak/usmqe-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fbalak/usmqe-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fbalak/usmqe-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/fbalak/usmqe-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fbalak/usmqe-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/fbalak/usmqe-tests/languages","stargazers_url":"https://api.github.com/repos/fbalak/usmqe-tests/stargazers","contributors_url":"https://api.github.com/repos/fbalak/usmqe-tests/contributors","subscribers_url":"https://api.github.com/repos/fbalak/usmqe-tests/subscribers","subscription_url":"https://api.github.com/repos/fbalak/usmqe-tests/subscription","commits_url":"https://api.github.com/repos/fbalak/usmqe-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/fbalak/usmqe-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/fbalak/usmqe-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/fbalak/usmqe-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/fbalak/usmqe-tests/contents/{+path}","compare_url":"https://api.github.com/repos/fbalak/usmqe-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fbalak/usmqe-tests/merges","archive_url":"https://api.github.com/repos/fbalak/usmqe-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fbalak/usmqe-tests/downloads","issues_url":"https://api.github.com/repos/fbalak/usmqe-tests/issues{/number}","pulls_url":"https://api.github.com/repos/fbalak/usmqe-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/fbalak/usmqe-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/fbalak/usmqe-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fbalak/usmqe-tests/labels{/name}","releases_url":"https://api.github.com/repos/fbalak/usmqe-tests/releases{/id}","deployments_url":"https://api.github.com/repos/fbalak/usmqe-tests/deployments","created_at":"2016-11-03T15:10:20Z","updated_at":"2016-11-11T17:18:10Z","pushed_at":"2017-02-06T13:20:16Z","git_url":"git://github.com/fbalak/usmqe-tests.git","ssh_url":"git@github.com:fbalak/usmqe-tests.git","clone_url":"https://github.com/fbalak/usmqe-tests.git","svn_url":"https://github.com/fbalak/usmqe-tests","homepage":null,"size":177,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"Tendrl:master","ref":"master","sha":"a9712a8c159fa2edbd33ef292eb63cc7c2d60dcb","user":{"login":"Tendrl","id":19151627,"avatar_url":"https://avatars.githubusercontent.com/u/19151627?v=3","gravatar_id":"","url":"https://api.github.com/users/Tendrl","html_url":"https://github.com/Tendrl","followers_url":"https://api.github.com/users/Tendrl/followers","following_url":"https://api.github.com/users/Tendrl/following{/other_user}","gists_url":"https://api.github.com/users/Tendrl/gists{/gist_id}","starred_url":"https://api.github.com/users/Tendrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tendrl/subscriptions","organizations_url":"https://api.github.com/users/Tendrl/orgs","repos_url":"https://api.github.com/users/Tendrl/repos","events_url":"https://api.github.com/users/Tendrl/events{/privacy}","received_events_url":"https://api.github.com/users/Tendrl/received_events","type":"Organization","site_admin":false},"repo":{"id":72005062,"name":"usmqe-tests","full_name":"Tendrl/usmqe-tests","owner":{"login":"Tendrl","id":19151627,"avatar_url":"https://avatars.githubusercontent.com/u/19151627?v=3","gravatar_id":"","url":"https://api.github.com/users/Tendrl","html_url":"https://github.com/Tendrl","followers_url":"https://api.github.com/users/Tendrl/followers","following_url":"https://api.github.com/users/Tendrl/following{/other_user}","gists_url":"https://api.github.com/users/Tendrl/gists{/gist_id}","starred_url":"https://api.github.com/users/Tendrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tendrl/subscriptions","organizations_url":"https://api.github.com/users/Tendrl/orgs","repos_url":"https://api.github.com/users/Tendrl/repos","events_url":"https://api.github.com/users/Tendrl/events{/privacy}","received_events_url":"https://api.github.com/users/Tendrl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Tendrl/usmqe-tests","description":"Tendrl automated test code","fork":false,"url":"https://api.github.com/repos/Tendrl/usmqe-tests","forks_url":"https://api.github.com/repos/Tendrl/usmqe-tests/forks","keys_url":"https://api.github.com/repos/Tendrl/usmqe-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tendrl/usmqe-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tendrl/usmqe-tests/teams","hooks_url":"https://api.github.com/repos/Tendrl/usmqe-tests/hooks","issue_events_url":"https://api.github.com/repos/Tendrl/usmqe-tests/issues/events{/number}","events_url":"https://api.github.com/repos/Tendrl/usmqe-tests/events","assignees_url":"https://api.github.com/repos/Tendrl/usmqe-tests/assignees{/user}","branches_url":"https://api.github.com/repos/Tendrl/usmqe-tests/branches{/branch}","tags_url":"https://api.github.com/repos/Tendrl/usmqe-tests/tags","blobs_url":"https://api.github.com/repos/Tendrl/usmqe-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tendrl/usmqe-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tendrl/usmqe-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tendrl/usmqe-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tendrl/usmqe-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/Tendrl/usmqe-tests/languages","stargazers_url":"https://api.github.com/repos/Tendrl/usmqe-tests/stargazers","contributors_url":"https://api.github.com/repos/Tendrl/usmqe-tests/contributors","subscribers_url":"https://api.github.com/repos/Tendrl/usmqe-tests/subscribers","subscription_url":"https://api.github.com/repos/Tendrl/usmqe-tests/subscription","commits_url":"https://api.github.com/repos/Tendrl/usmqe-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tendrl/usmqe-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tendrl/usmqe-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tendrl/usmqe-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tendrl/usmqe-tests/contents/{+path}","compare_url":"https://api.github.com/repos/Tendrl/usmqe-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tendrl/usmqe-tests/merges","archive_url":"https://api.github.com/repos/Tendrl/usmqe-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tendrl/usmqe-tests/downloads","issues_url":"https://api.github.com/repos/Tendrl/usmqe-tests/issues{/number}","pulls_url":"https://api.github.com/repos/Tendrl/usmqe-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/Tendrl/usmqe-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/Tendrl/usmqe-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tendrl/usmqe-tests/labels{/name}","releases_url":"https://api.github.com/repos/Tendrl/usmqe-tests/releases{/id}","deployments_url":"https://api.github.com/repos/Tendrl/usmqe-tests/deployments","created_at":"2016-10-26T13:19:49Z","updated_at":"2016-12-22T08:17:55Z","pushed_at":"2017-02-06T13:20:37Z","git_url":"git://github.com/Tendrl/usmqe-tests.git","ssh_url":"git@github.com:Tendrl/usmqe-tests.git","clone_url":"https://github.com/Tendrl/usmqe-tests.git","svn_url":"https://github.com/Tendrl/usmqe-tests","homepage":"https://usmqe-tests.readthedocs.io/en/latest/","size":171,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":22,"forks":5,"open_issues":22,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Tendrl/usmqe-tests/pulls/34"},"html":{"href":"https://github.com/Tendrl/usmqe-tests/pull/34"},"issue":{"href":"https://api.github.com/repos/Tendrl/usmqe-tests/issues/34"},"comments":{"href":"https://api.github.com/repos/Tendrl/usmqe-tests/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/Tendrl/usmqe-tests/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/Tendrl/usmqe-tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tendrl/usmqe-tests/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/Tendrl/usmqe-tests/statuses/b14a04df15bdf63706166c9a99bfcb96adbdfe2b"}}}}
{"actor":{"display_login":"mkudlej"}}