{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/product-apim/pulls/comments/26366612","id":26366612,"diff_hunk":"@@ -0,0 +1,124 @@\n+/*\n+ * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n+ *\n+ * WSO2 Inc. licenses this file to you under the Apache License,\n+ * Version 2.0 (the \"License\"); you may not use this file except\n+ * in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing,\n+ * software distributed under the License is distributed on an\n+ * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+ * KIND, either express or implied.  See the License for the\n+ * specific language governing permissions and limitations\n+ * under the License.\n+ */\n+\n+package org.wso2.am.integration.tests.api.lifecycle;\n+\n+import org.testng.annotations.AfterClass;\n+import org.testng.annotations.BeforeClass;\n+import org.testng.annotations.Test;\n+import org.wso2.am.integration.test.utils.bean.APILifeCycleState;\n+import org.wso2.am.integration.test.utils.bean.APILifeCycleStateRequest;\n+import org.wso2.carbon.apimgt.api.model.APIIdentifier;\n+import org.wso2.carbon.automation.test.utils.http.client.HttpRequestUtil;\n+import org.wso2.carbon.automation.test.utils.http.client.HttpResponse;\n+\n+import java.util.HashMap;\n+import java.util.Map;\n+\n+import static org.testng.Assert.assertEquals;\n+import static org.testng.Assert.assertTrue;\n+\n+/**\n+ * \"Block an API and check its accessibility in the API Store.\"\n+ */\n+public class AccessibilityOfBlockAPITestCase extends APIManagerLifecycleBaseTest {\n+    private APIIdentifier apiIdentifierAPI1Version1;\n+\n+    private String applicationName;\n+\n+    private Map<String, String> requestHeaders;\n+\n+    @BeforeClass(alwaysRun = true)\n+    public void init() throws Exception {\n+        super.init();\n+        apiIdentifierAPI1Version1 = new APIIdentifier(API1_PROVIDER_NAME, API1_NAME, API_VERSION1);\n+        applicationName =","path":"modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/api/lifecycle/AccessibilityOfBlockAPITestCase.java","position":50,"original_position":50,"commit_id":"a5309644722eecfc88e450feda20d41969506953","original_commit_id":"a5309644722eecfc88e450feda20d41969506953","user":{"login":"krishanthasamaraweera","id":6601948,"avatar_url":"https://avatars.githubusercontent.com/u/6601948?v=3","gravatar_id":"","url":"https://api.github.com/users/krishanthasamaraweera","html_url":"https://github.com/krishanthasamaraweera","followers_url":"https://api.github.com/users/krishanthasamaraweera/followers","following_url":"https://api.github.com/users/krishanthasamaraweera/following{/other_user}","gists_url":"https://api.github.com/users/krishanthasamaraweera/gists{/gist_id}","starred_url":"https://api.github.com/users/krishanthasamaraweera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krishanthasamaraweera/subscriptions","organizations_url":"https://api.github.com/users/krishanthasamaraweera/orgs","repos_url":"https://api.github.com/users/krishanthasamaraweera/repos","events_url":"https://api.github.com/users/krishanthasamaraweera/events{/privacy}","received_events_url":"https://api.github.com/users/krishanthasamaraweera/received_events","type":"User","site_admin":false},"body":"Better hard code the value directly.. This will improve readability and debugging. ","created_at":"2015-03-13T06:01:42Z","updated_at":"2015-03-13T06:01:42Z","html_url":"https://github.com/wso2/product-apim/pull/49#discussion_r26366612","pull_request_url":"https://api.github.com/repos/wso2/product-apim/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/wso2/product-apim/pulls/comments/26366612"},"html":{"href":"https://github.com/wso2/product-apim/pull/49#discussion_r26366612"},"pull_request":{"href":"https://api.github.com/repos/wso2/product-apim/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/product-apim/pulls/49","id":31037956,"html_url":"https://github.com/wso2/product-apim/pull/49","diff_url":"https://github.com/wso2/product-apim/pull/49.diff","patch_url":"https://github.com/wso2/product-apim/pull/49.patch","issue_url":"https://api.github.com/repos/wso2/product-apim/issues/49","number":49,"state":"open","locked":false,"title":"API manager lifecycle Test cases phase 2 ","user":{"login":"sanethd","id":9712144,"avatar_url":"https://avatars.githubusercontent.com/u/9712144?v=3","gravatar_id":"","url":"https://api.github.com/users/sanethd","html_url":"https://github.com/sanethd","followers_url":"https://api.github.com/users/sanethd/followers","following_url":"https://api.github.com/users/sanethd/following{/other_user}","gists_url":"https://api.github.com/users/sanethd/gists{/gist_id}","starred_url":"https://api.github.com/users/sanethd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanethd/subscriptions","organizations_url":"https://api.github.com/users/sanethd/orgs","repos_url":"https://api.github.com/users/sanethd/repos","events_url":"https://api.github.com/users/sanethd/events{/privacy}","received_events_url":"https://api.github.com/users/sanethd/received_events","type":"User","site_admin":false},"body":"API manager lifecycle Test cases phase 2 :  this contains, migration of test method to test classes that were developed in phase1 and additional test scenarios covered in phase 2.","created_at":"2015-03-12T14:01:55Z","updated_at":"2015-03-13T06:01:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e432dc4213a70c5b2cd93c419a0bba80516f7db3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2/product-apim/pulls/49/commits","review_comments_url":"https://api.github.com/repos/wso2/product-apim/pulls/49/comments","review_comment_url":"https://api.github.com/repos/wso2/product-apim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/product-apim/issues/49/comments","statuses_url":"https://api.github.com/repos/wso2/product-apim/statuses/a5309644722eecfc88e450feda20d41969506953","head":{"label":"sanethd:master","ref":"master","sha":"a5309644722eecfc88e450feda20d41969506953","user":{"login":"sanethd","id":9712144,"avatar_url":"https://avatars.githubusercontent.com/u/9712144?v=3","gravatar_id":"","url":"https://api.github.com/users/sanethd","html_url":"https://github.com/sanethd","followers_url":"https://api.github.com/users/sanethd/followers","following_url":"https://api.github.com/users/sanethd/following{/other_user}","gists_url":"https://api.github.com/users/sanethd/gists{/gist_id}","starred_url":"https://api.github.com/users/sanethd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanethd/subscriptions","organizations_url":"https://api.github.com/users/sanethd/orgs","repos_url":"https://api.github.com/users/sanethd/repos","events_url":"https://api.github.com/users/sanethd/events{/privacy}","received_events_url":"https://api.github.com/users/sanethd/received_events","type":"User","site_admin":false},"repo":{"id":31893425,"name":"product-apim","full_name":"sanethd/product-apim","owner":{"login":"sanethd","id":9712144,"avatar_url":"https://avatars.githubusercontent.com/u/9712144?v=3","gravatar_id":"","url":"https://api.github.com/users/sanethd","html_url":"https://github.com/sanethd","followers_url":"https://api.github.com/users/sanethd/followers","following_url":"https://api.github.com/users/sanethd/following{/other_user}","gists_url":"https://api.github.com/users/sanethd/gists{/gist_id}","starred_url":"https://api.github.com/users/sanethd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanethd/subscriptions","organizations_url":"https://api.github.com/users/sanethd/orgs","repos_url":"https://api.github.com/users/sanethd/repos","events_url":"https://api.github.com/users/sanethd/events{/privacy}","received_events_url":"https://api.github.com/users/sanethd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sanethd/product-apim","description":"","fork":true,"url":"https://api.github.com/repos/sanethd/product-apim","forks_url":"https://api.github.com/repos/sanethd/product-apim/forks","keys_url":"https://api.github.com/repos/sanethd/product-apim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sanethd/product-apim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sanethd/product-apim/teams","hooks_url":"https://api.github.com/repos/sanethd/product-apim/hooks","issue_events_url":"https://api.github.com/repos/sanethd/product-apim/issues/events{/number}","events_url":"https://api.github.com/repos/sanethd/product-apim/events","assignees_url":"https://api.github.com/repos/sanethd/product-apim/assignees{/user}","branches_url":"https://api.github.com/repos/sanethd/product-apim/branches{/branch}","tags_url":"https://api.github.com/repos/sanethd/product-apim/tags","blobs_url":"https://api.github.com/repos/sanethd/product-apim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sanethd/product-apim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sanethd/product-apim/git/refs{/sha}","trees_url":"https://api.github.com/repos/sanethd/product-apim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sanethd/product-apim/statuses/{sha}","languages_url":"https://api.github.com/repos/sanethd/product-apim/languages","stargazers_url":"https://api.github.com/repos/sanethd/product-apim/stargazers","contributors_url":"https://api.github.com/repos/sanethd/product-apim/contributors","subscribers_url":"https://api.github.com/repos/sanethd/product-apim/subscribers","subscription_url":"https://api.github.com/repos/sanethd/product-apim/subscription","commits_url":"https://api.github.com/repos/sanethd/product-apim/commits{/sha}","git_commits_url":"https://api.github.com/repos/sanethd/product-apim/git/commits{/sha}","comments_url":"https://api.github.com/repos/sanethd/product-apim/comments{/number}","issue_comment_url":"https://api.github.com/repos/sanethd/product-apim/issues/comments{/number}","contents_url":"https://api.github.com/repos/sanethd/product-apim/contents/{+path}","compare_url":"https://api.github.com/repos/sanethd/product-apim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sanethd/product-apim/merges","archive_url":"https://api.github.com/repos/sanethd/product-apim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sanethd/product-apim/downloads","issues_url":"https://api.github.com/repos/sanethd/product-apim/issues{/number}","pulls_url":"https://api.github.com/repos/sanethd/product-apim/pulls{/number}","milestones_url":"https://api.github.com/repos/sanethd/product-apim/milestones{/number}","notifications_url":"https://api.github.com/repos/sanethd/product-apim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sanethd/product-apim/labels{/name}","releases_url":"https://api.github.com/repos/sanethd/product-apim/releases{/id}","created_at":"2015-03-09T11:02:19Z","updated_at":"2015-03-12T13:59:01Z","pushed_at":"2015-03-12T13:59:00Z","git_url":"git://github.com/sanethd/product-apim.git","ssh_url":"git@github.com:sanethd/product-apim.git","clone_url":"https://github.com/sanethd/product-apim.git","svn_url":"https://github.com/sanethd/product-apim","homepage":null,"size":48899,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":0,"default_branch":"master"}},"base":{"label":"wso2:master","ref":"master","sha":"90e0730703129e741b1bbaee9d775ba97d00fdc5","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":20717348,"name":"product-apim","full_name":"wso2/product-apim","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/product-apim","description":"","fork":false,"url":"https://api.github.com/repos/wso2/product-apim","forks_url":"https://api.github.com/repos/wso2/product-apim/forks","keys_url":"https://api.github.com/repos/wso2/product-apim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/product-apim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/product-apim/teams","hooks_url":"https://api.github.com/repos/wso2/product-apim/hooks","issue_events_url":"https://api.github.com/repos/wso2/product-apim/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/product-apim/events","assignees_url":"https://api.github.com/repos/wso2/product-apim/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/product-apim/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/product-apim/tags","blobs_url":"https://api.github.com/repos/wso2/product-apim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/product-apim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/product-apim/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/product-apim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/product-apim/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/product-apim/languages","stargazers_url":"https://api.github.com/repos/wso2/product-apim/stargazers","contributors_url":"https://api.github.com/repos/wso2/product-apim/contributors","subscribers_url":"https://api.github.com/repos/wso2/product-apim/subscribers","subscription_url":"https://api.github.com/repos/wso2/product-apim/subscription","commits_url":"https://api.github.com/repos/wso2/product-apim/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/product-apim/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/product-apim/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/product-apim/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/product-apim/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/product-apim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/product-apim/merges","archive_url":"https://api.github.com/repos/wso2/product-apim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/product-apim/downloads","issues_url":"https://api.github.com/repos/wso2/product-apim/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/product-apim/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/product-apim/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/product-apim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/product-apim/labels{/name}","releases_url":"https://api.github.com/repos/wso2/product-apim/releases{/id}","created_at":"2014-06-11T08:05:00Z","updated_at":"2015-03-12T12:59:04Z","pushed_at":"2015-03-12T12:59:04Z","git_url":"git://github.com/wso2/product-apim.git","ssh_url":"git@github.com:wso2/product-apim.git","clone_url":"https://github.com/wso2/product-apim.git","svn_url":"https://github.com/wso2/product-apim","homepage":null,"size":49693,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":4,"forks":41,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/product-apim/pulls/49"},"html":{"href":"https://github.com/wso2/product-apim/pull/49"},"issue":{"href":"https://api.github.com/repos/wso2/product-apim/issues/49"},"comments":{"href":"https://api.github.com/repos/wso2/product-apim/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/product-apim/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/product-apim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/product-apim/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/product-apim/statuses/a5309644722eecfc88e450feda20d41969506953"}}}}