{"action":"created","comment":{"url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/pulls/comments/51703134","id":51703134,"diff_hunk":"@@ -0,0 +1,152 @@\n+/*\n+ * JBoss, Home of Professional Open Source\n+ * Copyright 2015 Red Hat Inc. and/or its affiliates and other\n+ * contributors as indicated by the @author tags. All rights reserved.\n+ * See the copyright.txt in the distribution for a full listing of\n+ * individual contributors.\n+ *\n+ * This is free software; you can redistribute it and/or modify it\n+ * under the terms of the GNU Lesser General Public License as\n+ * published by the Free Software Foundation; either version 2.1 of\n+ * the License, or (at your option) any later version.\n+ *\n+ * This software is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n+ * Lesser General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU Lesser General Public\n+ * License along with this software; if not, write to the Free\n+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n+ */\n+\n+package org.jboss.test.arquillian.ce.decisionserver;\n+\n+import static org.junit.Assert.assertEquals;\n+\n+import org.jboss.arquillian.ce.api.ConfigurationHandle;\n+import org.jboss.arquillian.ce.api.ExternalDeployment;\n+import org.jboss.arquillian.ce.api.OpenShiftResource;\n+import org.jboss.arquillian.ce.api.OpenShiftResources;\n+import org.jboss.arquillian.ce.api.RunInPod;\n+import org.jboss.arquillian.ce.api.RunInPodDeployment;\n+import org.jboss.arquillian.ce.api.Template;\n+import org.jboss.arquillian.ce.api.TemplateParameter;\n+import org.jboss.arquillian.container.test.api.Deployment;\n+import org.jboss.arquillian.container.test.api.RunAsClient;\n+import org.jboss.arquillian.junit.Arquillian;\n+import org.jboss.arquillian.test.api.ArquillianResource;\n+import org.jboss.shrinkwrap.api.ShrinkWrap;\n+import org.jboss.shrinkwrap.api.asset.StringAsset;\n+import org.jboss.shrinkwrap.api.spec.WebArchive;\n+import org.jboss.shrinkwrap.resolver.api.maven.Maven;\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+import org.kie.server.api.marshalling.MarshallingFormat;\n+import org.kie.server.api.model.KieServerInfo;\n+import org.kie.server.client.KieServicesClient;\n+import org.kie.server.client.KieServicesConfiguration;\n+import org.kie.server.client.KieServicesFactory;\n+\n+/**\n+ * @author Filippe Spolti\n+ */\n+\n+@RunWith(Arquillian.class)\n+@RunInPod\n+@ExternalDeployment\n+@Template(url = \"https://raw.githubusercontent.com/jboss-openshift/application-templates/master/decisionserver/decisionserver62-basic-s2i.json\",\n+        labels = \"application=kie-app\",\n+\t\tparameters = {\n+        @TemplateParameter(name = \"KIE_SERVER_USER\", value=\"kieserver\"),\n+        @TemplateParameter(name = \"KIE_SERVER_PASSWORD\", value=\"Redhat@123\")})\n+@OpenShiftResources({\n+        @OpenShiftResource(\"classpath:decisionserver-internal-imagestream.json\"),\n+        @OpenShiftResource(\"classpath:decisionserver-service-account.json\"),\n+        @OpenShiftResource(\"classpath:decisionserver-app-secret.json\")\n+})\n+public class DecisionServerBasicTest {\n+  \n+    public static final String DECISIONSERVER_ROUTE_HOST = \"http://kie-app-%s.router.default.svc.cluster.local/kie-server/services/rest/server/\";\n+    private static final MarshallingFormat FORMAT = MarshallingFormat.JSON;  \n+    private static KieServicesConfiguration kieServicesConfiguration;  \n+    private static KieServicesClient kieServicesClient; \n+    \n+    //kie-server credentials\n+    private static final String USERNAME = \"kieserver\";\n+    private static final String PASSWORD = \"Redhat@123\";\n+\n+    @ArquillianResource\n+    ConfigurationHandle configuration;\n+    \n+    @Deployment\n+    @RunInPodDeployment\n+    public static WebArchive getDeployment() {\n+        WebArchive war = ShrinkWrap.create(WebArchive.class, \"run-in-pod.war\");\n+        war.setWebXML(new StringAsset(\"<web-app/>\"));","path":"decisionserver/src/test/java/org/jboss/test/arquillian/ce/decisionserver/DecisionServerBasicTest.java","position":87,"original_position":87,"commit_id":"508b36b40f61f9b50397072d8de46799343688aa","original_commit_id":"508b36b40f61f9b50397072d8de46799343688aa","user":{"login":"alesj","id":331896,"avatar_url":"https://avatars.githubusercontent.com/u/331896?v=3","gravatar_id":"","url":"https://api.github.com/users/alesj","html_url":"https://github.com/alesj","followers_url":"https://api.github.com/users/alesj/followers","following_url":"https://api.github.com/users/alesj/following{/other_user}","gists_url":"https://api.github.com/users/alesj/gists{/gist_id}","starred_url":"https://api.github.com/users/alesj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alesj/subscriptions","organizations_url":"https://api.github.com/users/alesj/orgs","repos_url":"https://api.github.com/users/alesj/repos","events_url":"https://api.github.com/users/alesj/events{/privacy}","received_events_url":"https://api.github.com/users/alesj/received_events","type":"User","site_admin":false},"body":"Use the web.xml, since we have one.\r\n","created_at":"2016-02-03T10:30:52Z","updated_at":"2016-02-03T10:30:52Z","html_url":"https://github.com/jboss-openshift/ce-testsuite/pull/2#discussion_r51703134","pull_request_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/jboss-openshift/ce-testsuite/pulls/comments/51703134"},"html":{"href":"https://github.com/jboss-openshift/ce-testsuite/pull/2#discussion_r51703134"},"pull_request":{"href":"https://api.github.com/repos/jboss-openshift/ce-testsuite/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/pulls/2","id":58056460,"html_url":"https://github.com/jboss-openshift/ce-testsuite/pull/2","diff_url":"https://github.com/jboss-openshift/ce-testsuite/pull/2.diff","patch_url":"https://github.com/jboss-openshift/ce-testsuite/pull/2.patch","issue_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/issues/2","number":2,"state":"open","locked":false,"title":"Adding Decision Server tests","user":{"login":"spolti","id":1863987,"avatar_url":"https://avatars.githubusercontent.com/u/1863987?v=3","gravatar_id":"","url":"https://api.github.com/users/spolti","html_url":"https://github.com/spolti","followers_url":"https://api.github.com/users/spolti/followers","following_url":"https://api.github.com/users/spolti/following{/other_user}","gists_url":"https://api.github.com/users/spolti/gists{/gist_id}","starred_url":"https://api.github.com/users/spolti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spolti/subscriptions","organizations_url":"https://api.github.com/users/spolti/orgs","repos_url":"https://api.github.com/users/spolti/repos","events_url":"https://api.github.com/users/spolti/events{/privacy}","received_events_url":"https://api.github.com/users/spolti/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-02T21:55:09Z","updated_at":"2016-02-03T10:30:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"21508be8aa76eea6c3ecacc6b47b5820458c28c7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/pulls/2/commits","review_comments_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/pulls/2/comments","review_comment_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/issues/2/comments","statuses_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/statuses/508b36b40f61f9b50397072d8de46799343688aa","head":{"label":"spolti:DecisionServer","ref":"DecisionServer","sha":"508b36b40f61f9b50397072d8de46799343688aa","user":{"login":"spolti","id":1863987,"avatar_url":"https://avatars.githubusercontent.com/u/1863987?v=3","gravatar_id":"","url":"https://api.github.com/users/spolti","html_url":"https://github.com/spolti","followers_url":"https://api.github.com/users/spolti/followers","following_url":"https://api.github.com/users/spolti/following{/other_user}","gists_url":"https://api.github.com/users/spolti/gists{/gist_id}","starred_url":"https://api.github.com/users/spolti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spolti/subscriptions","organizations_url":"https://api.github.com/users/spolti/orgs","repos_url":"https://api.github.com/users/spolti/repos","events_url":"https://api.github.com/users/spolti/events{/privacy}","received_events_url":"https://api.github.com/users/spolti/received_events","type":"User","site_admin":false},"repo":{"id":50952020,"name":"ce-testsuite","full_name":"spolti/ce-testsuite","owner":{"login":"spolti","id":1863987,"avatar_url":"https://avatars.githubusercontent.com/u/1863987?v=3","gravatar_id":"","url":"https://api.github.com/users/spolti","html_url":"https://github.com/spolti","followers_url":"https://api.github.com/users/spolti/followers","following_url":"https://api.github.com/users/spolti/following{/other_user}","gists_url":"https://api.github.com/users/spolti/gists{/gist_id}","starred_url":"https://api.github.com/users/spolti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spolti/subscriptions","organizations_url":"https://api.github.com/users/spolti/orgs","repos_url":"https://api.github.com/users/spolti/repos","events_url":"https://api.github.com/users/spolti/events{/privacy}","received_events_url":"https://api.github.com/users/spolti/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/spolti/ce-testsuite","description":"Cloud Enablement Testsuite","fork":true,"url":"https://api.github.com/repos/spolti/ce-testsuite","forks_url":"https://api.github.com/repos/spolti/ce-testsuite/forks","keys_url":"https://api.github.com/repos/spolti/ce-testsuite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spolti/ce-testsuite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spolti/ce-testsuite/teams","hooks_url":"https://api.github.com/repos/spolti/ce-testsuite/hooks","issue_events_url":"https://api.github.com/repos/spolti/ce-testsuite/issues/events{/number}","events_url":"https://api.github.com/repos/spolti/ce-testsuite/events","assignees_url":"https://api.github.com/repos/spolti/ce-testsuite/assignees{/user}","branches_url":"https://api.github.com/repos/spolti/ce-testsuite/branches{/branch}","tags_url":"https://api.github.com/repos/spolti/ce-testsuite/tags","blobs_url":"https://api.github.com/repos/spolti/ce-testsuite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spolti/ce-testsuite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spolti/ce-testsuite/git/refs{/sha}","trees_url":"https://api.github.com/repos/spolti/ce-testsuite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spolti/ce-testsuite/statuses/{sha}","languages_url":"https://api.github.com/repos/spolti/ce-testsuite/languages","stargazers_url":"https://api.github.com/repos/spolti/ce-testsuite/stargazers","contributors_url":"https://api.github.com/repos/spolti/ce-testsuite/contributors","subscribers_url":"https://api.github.com/repos/spolti/ce-testsuite/subscribers","subscription_url":"https://api.github.com/repos/spolti/ce-testsuite/subscription","commits_url":"https://api.github.com/repos/spolti/ce-testsuite/commits{/sha}","git_commits_url":"https://api.github.com/repos/spolti/ce-testsuite/git/commits{/sha}","comments_url":"https://api.github.com/repos/spolti/ce-testsuite/comments{/number}","issue_comment_url":"https://api.github.com/repos/spolti/ce-testsuite/issues/comments{/number}","contents_url":"https://api.github.com/repos/spolti/ce-testsuite/contents/{+path}","compare_url":"https://api.github.com/repos/spolti/ce-testsuite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spolti/ce-testsuite/merges","archive_url":"https://api.github.com/repos/spolti/ce-testsuite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spolti/ce-testsuite/downloads","issues_url":"https://api.github.com/repos/spolti/ce-testsuite/issues{/number}","pulls_url":"https://api.github.com/repos/spolti/ce-testsuite/pulls{/number}","milestones_url":"https://api.github.com/repos/spolti/ce-testsuite/milestones{/number}","notifications_url":"https://api.github.com/repos/spolti/ce-testsuite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spolti/ce-testsuite/labels{/name}","releases_url":"https://api.github.com/repos/spolti/ce-testsuite/releases{/id}","deployments_url":"https://api.github.com/repos/spolti/ce-testsuite/deployments","created_at":"2016-02-02T21:08:11Z","updated_at":"2016-02-02T21:08:11Z","pushed_at":"2016-02-02T21:54:44Z","git_url":"git://github.com/spolti/ce-testsuite.git","ssh_url":"git@github.com:spolti/ce-testsuite.git","clone_url":"https://github.com/spolti/ce-testsuite.git","svn_url":"https://github.com/spolti/ce-testsuite","homepage":null,"size":94,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"jboss-openshift:master","ref":"master","sha":"34444046811d874f87251e5fad480e7a0b1c59c0","user":{"login":"jboss-openshift","id":12071709,"avatar_url":"https://avatars.githubusercontent.com/u/12071709?v=3","gravatar_id":"","url":"https://api.github.com/users/jboss-openshift","html_url":"https://github.com/jboss-openshift","followers_url":"https://api.github.com/users/jboss-openshift/followers","following_url":"https://api.github.com/users/jboss-openshift/following{/other_user}","gists_url":"https://api.github.com/users/jboss-openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/jboss-openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jboss-openshift/subscriptions","organizations_url":"https://api.github.com/users/jboss-openshift/orgs","repos_url":"https://api.github.com/users/jboss-openshift/repos","events_url":"https://api.github.com/users/jboss-openshift/events{/privacy}","received_events_url":"https://api.github.com/users/jboss-openshift/received_events","type":"Organization","site_admin":false},"repo":{"id":34441819,"name":"ce-testsuite","full_name":"jboss-openshift/ce-testsuite","owner":{"login":"jboss-openshift","id":12071709,"avatar_url":"https://avatars.githubusercontent.com/u/12071709?v=3","gravatar_id":"","url":"https://api.github.com/users/jboss-openshift","html_url":"https://github.com/jboss-openshift","followers_url":"https://api.github.com/users/jboss-openshift/followers","following_url":"https://api.github.com/users/jboss-openshift/following{/other_user}","gists_url":"https://api.github.com/users/jboss-openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/jboss-openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jboss-openshift/subscriptions","organizations_url":"https://api.github.com/users/jboss-openshift/orgs","repos_url":"https://api.github.com/users/jboss-openshift/repos","events_url":"https://api.github.com/users/jboss-openshift/events{/privacy}","received_events_url":"https://api.github.com/users/jboss-openshift/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jboss-openshift/ce-testsuite","description":"Cloud Enablement Testsuite","fork":false,"url":"https://api.github.com/repos/jboss-openshift/ce-testsuite","forks_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/forks","keys_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/teams","hooks_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/hooks","issue_events_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/issues/events{/number}","events_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/events","assignees_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/assignees{/user}","branches_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/branches{/branch}","tags_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/tags","blobs_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/git/refs{/sha}","trees_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/statuses/{sha}","languages_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/languages","stargazers_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/stargazers","contributors_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/contributors","subscribers_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/subscribers","subscription_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/subscription","commits_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/commits{/sha}","git_commits_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/git/commits{/sha}","comments_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/comments{/number}","issue_comment_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/issues/comments{/number}","contents_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/contents/{+path}","compare_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/merges","archive_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/downloads","issues_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/issues{/number}","pulls_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/pulls{/number}","milestones_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/milestones{/number}","notifications_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/labels{/name}","releases_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/releases{/id}","deployments_url":"https://api.github.com/repos/jboss-openshift/ce-testsuite/deployments","created_at":"2015-04-23T07:52:56Z","updated_at":"2016-01-22T12:24:09Z","pushed_at":"2016-02-02T21:55:09Z","git_url":"git://github.com/jboss-openshift/ce-testsuite.git","ssh_url":"git@github.com:jboss-openshift/ce-testsuite.git","clone_url":"https://github.com/jboss-openshift/ce-testsuite.git","svn_url":"https://github.com/jboss-openshift/ce-testsuite","homepage":null,"size":87,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jboss-openshift/ce-testsuite/pulls/2"},"html":{"href":"https://github.com/jboss-openshift/ce-testsuite/pull/2"},"issue":{"href":"https://api.github.com/repos/jboss-openshift/ce-testsuite/issues/2"},"comments":{"href":"https://api.github.com/repos/jboss-openshift/ce-testsuite/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/jboss-openshift/ce-testsuite/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/jboss-openshift/ce-testsuite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jboss-openshift/ce-testsuite/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/jboss-openshift/ce-testsuite/statuses/508b36b40f61f9b50397072d8de46799343688aa"}}}}