{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/product-ues/pulls/comments/41007179","id":41007179,"diff_hunk":"@@ -0,0 +1,118 @@\n+package ues.integration.tests.common.domain;\n+\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+import org.apache.commons.logging.Log;\n+import org.apache.commons.logging.LogFactory;\n+import org.testng.Assert;\n+import org.wso2.carbon.automation.engine.context.AutomationContext;\n+import org.wso2.carbon.automation.engine.context.TestUserMode;\n+import org.wso2.carbon.automation.engine.context.beans.Tenant;\n+import org.wso2.carbon.automation.engine.context.beans.User;\n+import org.wso2.carbon.automation.test.utils.common.TestConfigurationProvider;\n+\n+import javax.xml.xpath.XPathExpressionException;\n+\n+public abstract class UESIntegrationTest {\n+    private static final Log LOG = LogFactory.getLog(UESIntegrationTest.class);\n+    protected final TestUserMode userMode;\n+    private User userInfo = null;\n+    private AutomationContext uesContext = null;\n+    private Tenant tenantInfo = null;\n+\n+\n+    public UESIntegrationTest(TestUserMode userMode) {\n+        this.userMode = userMode;\n+    }\n+\n+    public UESIntegrationTest() {\n+        this(TestUserMode.SUPER_TENANT_ADMIN);\n+    }\n+\n+    public AutomationContext getUesContext() throws XPathExpressionException {","path":"modules/integration/tests-common/integration-test-utils/src/main/java/ues/integration/tests/common/domain/UESIntegrationTest.java","position":48,"original_position":48,"commit_id":"e642d50edf08cc21d2b0a2b21463e4b3aadc587a","original_commit_id":"e642d50edf08cc21d2b0a2b21463e4b3aadc587a","user":{"login":"manuranga","id":1686124,"avatar_url":"https://avatars.githubusercontent.com/u/1686124?v=3","gravatar_id":"","url":"https://api.github.com/users/manuranga","html_url":"https://github.com/manuranga","followers_url":"https://api.github.com/users/manuranga/followers","following_url":"https://api.github.com/users/manuranga/following{/other_user}","gists_url":"https://api.github.com/users/manuranga/gists{/gist_id}","starred_url":"https://api.github.com/users/manuranga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuranga/subscriptions","organizations_url":"https://api.github.com/users/manuranga/orgs","repos_url":"https://api.github.com/users/manuranga/repos","events_url":"https://api.github.com/users/manuranga/events{/privacy}","received_events_url":"https://api.github.com/users/manuranga/received_events","type":"User","site_admin":false},"body":"make this private","created_at":"2015-10-02T10:03:02Z","updated_at":"2015-10-02T10:03:02Z","html_url":"https://github.com/wso2/product-ues/pull/25#discussion_r41007179","pull_request_url":"https://api.github.com/repos/wso2/product-ues/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/wso2/product-ues/pulls/comments/41007179"},"html":{"href":"https://github.com/wso2/product-ues/pull/25#discussion_r41007179"},"pull_request":{"href":"https://api.github.com/repos/wso2/product-ues/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/product-ues/pulls/25","id":46616223,"html_url":"https://github.com/wso2/product-ues/pull/25","diff_url":"https://github.com/wso2/product-ues/pull/25.diff","patch_url":"https://github.com/wso2/product-ues/pull/25.patch","issue_url":"https://api.github.com/repos/wso2/product-ues/issues/25","number":25,"state":"open","locked":false,"title":"Adding integration test for product DS","user":{"login":"rajeenthini","id":8535793,"avatar_url":"https://avatars.githubusercontent.com/u/8535793?v=3","gravatar_id":"","url":"https://api.github.com/users/rajeenthini","html_url":"https://github.com/rajeenthini","followers_url":"https://api.github.com/users/rajeenthini/followers","following_url":"https://api.github.com/users/rajeenthini/following{/other_user}","gists_url":"https://api.github.com/users/rajeenthini/gists{/gist_id}","starred_url":"https://api.github.com/users/rajeenthini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajeenthini/subscriptions","organizations_url":"https://api.github.com/users/rajeenthini/orgs","repos_url":"https://api.github.com/users/rajeenthini/repos","events_url":"https://api.github.com/users/rajeenthini/events{/privacy}","received_events_url":"https://api.github.com/users/rajeenthini/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-02T09:17:48Z","updated_at":"2015-10-02T10:03:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb4c7b7153ca9224127068047f4e9926d65dd33a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2/product-ues/pulls/25/commits","review_comments_url":"https://api.github.com/repos/wso2/product-ues/pulls/25/comments","review_comment_url":"https://api.github.com/repos/wso2/product-ues/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/product-ues/issues/25/comments","statuses_url":"https://api.github.com/repos/wso2/product-ues/statuses/e642d50edf08cc21d2b0a2b21463e4b3aadc587a","head":{"label":"rajeenthini:AddingIntegrationTest","ref":"AddingIntegrationTest","sha":"e642d50edf08cc21d2b0a2b21463e4b3aadc587a","user":{"login":"rajeenthini","id":8535793,"avatar_url":"https://avatars.githubusercontent.com/u/8535793?v=3","gravatar_id":"","url":"https://api.github.com/users/rajeenthini","html_url":"https://github.com/rajeenthini","followers_url":"https://api.github.com/users/rajeenthini/followers","following_url":"https://api.github.com/users/rajeenthini/following{/other_user}","gists_url":"https://api.github.com/users/rajeenthini/gists{/gist_id}","starred_url":"https://api.github.com/users/rajeenthini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajeenthini/subscriptions","organizations_url":"https://api.github.com/users/rajeenthini/orgs","repos_url":"https://api.github.com/users/rajeenthini/repos","events_url":"https://api.github.com/users/rajeenthini/events{/privacy}","received_events_url":"https://api.github.com/users/rajeenthini/received_events","type":"User","site_admin":false},"repo":{"id":42223014,"name":"product-ues","full_name":"rajeenthini/product-ues","owner":{"login":"rajeenthini","id":8535793,"avatar_url":"https://avatars.githubusercontent.com/u/8535793?v=3","gravatar_id":"","url":"https://api.github.com/users/rajeenthini","html_url":"https://github.com/rajeenthini","followers_url":"https://api.github.com/users/rajeenthini/followers","following_url":"https://api.github.com/users/rajeenthini/following{/other_user}","gists_url":"https://api.github.com/users/rajeenthini/gists{/gist_id}","starred_url":"https://api.github.com/users/rajeenthini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajeenthini/subscriptions","organizations_url":"https://api.github.com/users/rajeenthini/orgs","repos_url":"https://api.github.com/users/rajeenthini/repos","events_url":"https://api.github.com/users/rajeenthini/events{/privacy}","received_events_url":"https://api.github.com/users/rajeenthini/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rajeenthini/product-ues","description":"WSO2 User Engagement Server - data is meaningless until its communicated","fork":true,"url":"https://api.github.com/repos/rajeenthini/product-ues","forks_url":"https://api.github.com/repos/rajeenthini/product-ues/forks","keys_url":"https://api.github.com/repos/rajeenthini/product-ues/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rajeenthini/product-ues/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rajeenthini/product-ues/teams","hooks_url":"https://api.github.com/repos/rajeenthini/product-ues/hooks","issue_events_url":"https://api.github.com/repos/rajeenthini/product-ues/issues/events{/number}","events_url":"https://api.github.com/repos/rajeenthini/product-ues/events","assignees_url":"https://api.github.com/repos/rajeenthini/product-ues/assignees{/user}","branches_url":"https://api.github.com/repos/rajeenthini/product-ues/branches{/branch}","tags_url":"https://api.github.com/repos/rajeenthini/product-ues/tags","blobs_url":"https://api.github.com/repos/rajeenthini/product-ues/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rajeenthini/product-ues/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rajeenthini/product-ues/git/refs{/sha}","trees_url":"https://api.github.com/repos/rajeenthini/product-ues/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rajeenthini/product-ues/statuses/{sha}","languages_url":"https://api.github.com/repos/rajeenthini/product-ues/languages","stargazers_url":"https://api.github.com/repos/rajeenthini/product-ues/stargazers","contributors_url":"https://api.github.com/repos/rajeenthini/product-ues/contributors","subscribers_url":"https://api.github.com/repos/rajeenthini/product-ues/subscribers","subscription_url":"https://api.github.com/repos/rajeenthini/product-ues/subscription","commits_url":"https://api.github.com/repos/rajeenthini/product-ues/commits{/sha}","git_commits_url":"https://api.github.com/repos/rajeenthini/product-ues/git/commits{/sha}","comments_url":"https://api.github.com/repos/rajeenthini/product-ues/comments{/number}","issue_comment_url":"https://api.github.com/repos/rajeenthini/product-ues/issues/comments{/number}","contents_url":"https://api.github.com/repos/rajeenthini/product-ues/contents/{+path}","compare_url":"https://api.github.com/repos/rajeenthini/product-ues/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rajeenthini/product-ues/merges","archive_url":"https://api.github.com/repos/rajeenthini/product-ues/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rajeenthini/product-ues/downloads","issues_url":"https://api.github.com/repos/rajeenthini/product-ues/issues{/number}","pulls_url":"https://api.github.com/repos/rajeenthini/product-ues/pulls{/number}","milestones_url":"https://api.github.com/repos/rajeenthini/product-ues/milestones{/number}","notifications_url":"https://api.github.com/repos/rajeenthini/product-ues/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rajeenthini/product-ues/labels{/name}","releases_url":"https://api.github.com/repos/rajeenthini/product-ues/releases{/id}","created_at":"2015-09-10T04:58:20Z","updated_at":"2015-09-10T04:58:23Z","pushed_at":"2015-10-02T09:27:31Z","git_url":"git://github.com/rajeenthini/product-ues.git","ssh_url":"git@github.com:rajeenthini/product-ues.git","clone_url":"https://github.com/rajeenthini/product-ues.git","svn_url":"https://github.com/rajeenthini/product-ues","homepage":"","size":12936,"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":"0c566aa2f3d776c505d56c5d6c697bb7778ac3b1","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":11170391,"name":"product-ues","full_name":"wso2/product-ues","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-ues","description":"WSO2 User Engagement Server - data is meaningless until its communicated","fork":false,"url":"https://api.github.com/repos/wso2/product-ues","forks_url":"https://api.github.com/repos/wso2/product-ues/forks","keys_url":"https://api.github.com/repos/wso2/product-ues/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/product-ues/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/product-ues/teams","hooks_url":"https://api.github.com/repos/wso2/product-ues/hooks","issue_events_url":"https://api.github.com/repos/wso2/product-ues/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/product-ues/events","assignees_url":"https://api.github.com/repos/wso2/product-ues/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/product-ues/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/product-ues/tags","blobs_url":"https://api.github.com/repos/wso2/product-ues/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/product-ues/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/product-ues/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/product-ues/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/product-ues/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/product-ues/languages","stargazers_url":"https://api.github.com/repos/wso2/product-ues/stargazers","contributors_url":"https://api.github.com/repos/wso2/product-ues/contributors","subscribers_url":"https://api.github.com/repos/wso2/product-ues/subscribers","subscription_url":"https://api.github.com/repos/wso2/product-ues/subscription","commits_url":"https://api.github.com/repos/wso2/product-ues/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/product-ues/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/product-ues/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/product-ues/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/product-ues/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/product-ues/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/product-ues/merges","archive_url":"https://api.github.com/repos/wso2/product-ues/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/product-ues/downloads","issues_url":"https://api.github.com/repos/wso2/product-ues/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/product-ues/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/product-ues/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/product-ues/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/product-ues/labels{/name}","releases_url":"https://api.github.com/repos/wso2/product-ues/releases{/id}","created_at":"2013-07-04T07:57:43Z","updated_at":"2015-09-09T10:35:32Z","pushed_at":"2015-10-02T09:27:31Z","git_url":"git://github.com/wso2/product-ues.git","ssh_url":"git@github.com:wso2/product-ues.git","clone_url":"https://github.com/wso2/product-ues.git","svn_url":"https://github.com/wso2/product-ues","homepage":"","size":13067,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":6,"forks":24,"open_issues":6,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/product-ues/pulls/25"},"html":{"href":"https://github.com/wso2/product-ues/pull/25"},"issue":{"href":"https://api.github.com/repos/wso2/product-ues/issues/25"},"comments":{"href":"https://api.github.com/repos/wso2/product-ues/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/product-ues/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/product-ues/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/product-ues/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/product-ues/statuses/e642d50edf08cc21d2b0a2b21463e4b3aadc587a"}}}}