{"action":"created","comment":{"url":"https://api.github.com/repos/hal/testsuite/pulls/comments/78929917","id":78929917,"diff_hunk":"@@ -0,0 +1,184 @@\n+package org.jboss.hal.testsuite.test.runtime.server.configurationchanges;\n+\n+import org.jboss.arquillian.drone.api.annotation.Drone;\n+import org.jboss.arquillian.graphene.page.Page;\n+import org.jboss.arquillian.junit.Arquillian;\n+import org.jboss.hal.testsuite.category.Shared;\n+import org.jboss.hal.testsuite.creaper.ManagementClientProvider;\n+import org.jboss.hal.testsuite.creaper.ResourceVerifier;\n+import org.jboss.hal.testsuite.creaper.command.BackupAndRestoreAttributes;\n+import org.jboss.hal.testsuite.page.runtime.ConfigurationChangesPage;\n+import org.jboss.hal.testsuite.util.Console;\n+import org.jboss.hal.testsuite.util.configurationchanges.ConfigurationChange;\n+import org.jboss.hal.testsuite.util.configurationchanges.ConfigurationChangesResource;\n+import org.junit.AfterClass;\n+import org.junit.Assert;\n+import org.junit.Before;\n+import org.junit.BeforeClass;\n+import org.junit.Test;\n+import org.junit.experimental.categories.Category;\n+import org.junit.runner.RunWith;\n+import org.openqa.selenium.WebDriver;\n+import org.wildfly.extras.creaper.core.CommandFailedException;\n+import org.wildfly.extras.creaper.core.online.OnlineManagementClient;\n+import org.wildfly.extras.creaper.core.online.operations.Address;\n+import org.wildfly.extras.creaper.core.online.operations.OperationException;\n+import org.wildfly.extras.creaper.core.online.operations.Operations;\n+import org.wildfly.extras.creaper.core.online.operations.Values;\n+import org.wildfly.extras.creaper.core.online.operations.admin.Administration;\n+\n+import java.io.IOException;\n+import java.text.ParseException;\n+import java.util.List;\n+import java.util.concurrent.TimeoutException;\n+\n+/**\n+ * @author Jan Kasik <jkasik@redhat.com>\n+ *         Created on 9/14/16.\n+ */\n+\n+@RunWith(Arquillian.class)\n+@Category(Shared.class)\n+public class ConfigurationChangesTestCase {\n+\n+    @Drone\n+    private WebDriver browser;\n+\n+    @Page\n+    private ConfigurationChangesPage page;\n+\n+    private static OnlineManagementClient client;\n+    private static Operations operations;\n+    private static Address serviceAddress;\n+    private static ConfigurationChangesResource changesResource;\n+\n+    @BeforeClass\n+    public static void beforeClass() {\n+        client = ManagementClientProvider.createOnlineManagementClient();\n+        operations = new Operations(client);\n+        serviceAddress = client.options().isDomain ?\n+                Address.host(client.options().defaultHost)\n+                        .and(\"core-service\", \"management\")\n+                        .and(\"service\", \"configuration-changes\") :\n+                Address.coreService(\"management\")\n+                        .and(\"service\", \"configuration-changes\");\n+        changesResource = new ConfigurationChangesResource(client);\n+    }\n+\n+    @Before\n+    public void before() throws IOException, OperationException {\n+        //make sure the service is up and running\n+        if (operations.invoke(\"list-changes\", serviceAddress).isFailed()) {\n+            operations.add(serviceAddress, Values.of(\"max-history\", 100)).assertSuccess();\n+        }\n+        page.navigate();\n+    }\n+\n+    @AfterClass\n+    public static void afterClass() throws IOException, OperationException, TimeoutException, InterruptedException {\n+        operations.removeIfExists(serviceAddress);\n+        Administration administration = new Administration(client);\n+        administration.restartIfRequired();\n+        administration.reloadIfRequired();\n+    }","path":"basic/src/test/java/org/jboss/hal/testsuite/test/runtime/server/configurationchanges/ConfigurationChangesTestCase.java","position":83,"original_position":83,"commit_id":"c31f4c4e1305f2bf2c8dcf01804357706154efd1","original_commit_id":"c31f4c4e1305f2bf2c8dcf01804357706154efd1","user":{"login":"rhatlapa","id":1469361,"avatar_url":"https://avatars.githubusercontent.com/u/1469361?v=3","gravatar_id":"","url":"https://api.github.com/users/rhatlapa","html_url":"https://github.com/rhatlapa","followers_url":"https://api.github.com/users/rhatlapa/followers","following_url":"https://api.github.com/users/rhatlapa/following{/other_user}","gists_url":"https://api.github.com/users/rhatlapa/gists{/gist_id}","starred_url":"https://api.github.com/users/rhatlapa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhatlapa/subscriptions","organizations_url":"https://api.github.com/users/rhatlapa/orgs","repos_url":"https://api.github.com/users/rhatlapa/repos","events_url":"https://api.github.com/users/rhatlapa/events{/privacy}","received_events_url":"https://api.github.com/users/rhatlapa/received_events","type":"User","site_admin":false},"body":"What about closing the client?","created_at":"2016-09-15T10:11:48Z","updated_at":"2016-09-15T10:25:38Z","html_url":"https://github.com/hal/testsuite/pull/194#discussion_r78929917","pull_request_url":"https://api.github.com/repos/hal/testsuite/pulls/194","_links":{"self":{"href":"https://api.github.com/repos/hal/testsuite/pulls/comments/78929917"},"html":{"href":"https://github.com/hal/testsuite/pull/194#discussion_r78929917"},"pull_request":{"href":"https://api.github.com/repos/hal/testsuite/pulls/194"}}},"pull_request":{"url":"https://api.github.com/repos/hal/testsuite/pulls/194","id":85355900,"html_url":"https://github.com/hal/testsuite/pull/194","diff_url":"https://github.com/hal/testsuite/pull/194.diff","patch_url":"https://github.com/hal/testsuite/pull/194.patch","issue_url":"https://api.github.com/repos/hal/testsuite/issues/194","number":194,"state":"open","locked":false,"title":"[EAP7-317] recent configuration changes","user":{"login":"honza-kasik","id":10008273,"avatar_url":"https://avatars.githubusercontent.com/u/10008273?v=3","gravatar_id":"","url":"https://api.github.com/users/honza-kasik","html_url":"https://github.com/honza-kasik","followers_url":"https://api.github.com/users/honza-kasik/followers","following_url":"https://api.github.com/users/honza-kasik/following{/other_user}","gists_url":"https://api.github.com/users/honza-kasik/gists{/gist_id}","starred_url":"https://api.github.com/users/honza-kasik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honza-kasik/subscriptions","organizations_url":"https://api.github.com/users/honza-kasik/orgs","repos_url":"https://api.github.com/users/honza-kasik/repos","events_url":"https://api.github.com/users/honza-kasik/events{/privacy}","received_events_url":"https://api.github.com/users/honza-kasik/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-15T07:21:33Z","updated_at":"2016-09-15T10:25:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"88df6120ee840823f91b321c3ce9c390708acf70","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/hal/testsuite/pulls/194/commits","review_comments_url":"https://api.github.com/repos/hal/testsuite/pulls/194/comments","review_comment_url":"https://api.github.com/repos/hal/testsuite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hal/testsuite/issues/194/comments","statuses_url":"https://api.github.com/repos/hal/testsuite/statuses/c31f4c4e1305f2bf2c8dcf01804357706154efd1","head":{"label":"honza-kasik:EAP7-317-recent-configuration-changes","ref":"EAP7-317-recent-configuration-changes","sha":"c31f4c4e1305f2bf2c8dcf01804357706154efd1","user":{"login":"honza-kasik","id":10008273,"avatar_url":"https://avatars.githubusercontent.com/u/10008273?v=3","gravatar_id":"","url":"https://api.github.com/users/honza-kasik","html_url":"https://github.com/honza-kasik","followers_url":"https://api.github.com/users/honza-kasik/followers","following_url":"https://api.github.com/users/honza-kasik/following{/other_user}","gists_url":"https://api.github.com/users/honza-kasik/gists{/gist_id}","starred_url":"https://api.github.com/users/honza-kasik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honza-kasik/subscriptions","organizations_url":"https://api.github.com/users/honza-kasik/orgs","repos_url":"https://api.github.com/users/honza-kasik/repos","events_url":"https://api.github.com/users/honza-kasik/events{/privacy}","received_events_url":"https://api.github.com/users/honza-kasik/received_events","type":"User","site_admin":false},"repo":{"id":39003868,"name":"testsuite","full_name":"honza-kasik/testsuite","owner":{"login":"honza-kasik","id":10008273,"avatar_url":"https://avatars.githubusercontent.com/u/10008273?v=3","gravatar_id":"","url":"https://api.github.com/users/honza-kasik","html_url":"https://github.com/honza-kasik","followers_url":"https://api.github.com/users/honza-kasik/followers","following_url":"https://api.github.com/users/honza-kasik/following{/other_user}","gists_url":"https://api.github.com/users/honza-kasik/gists{/gist_id}","starred_url":"https://api.github.com/users/honza-kasik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honza-kasik/subscriptions","organizations_url":"https://api.github.com/users/honza-kasik/orgs","repos_url":"https://api.github.com/users/honza-kasik/repos","events_url":"https://api.github.com/users/honza-kasik/events{/privacy}","received_events_url":"https://api.github.com/users/honza-kasik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/honza-kasik/testsuite","description":"Testsuite for the HAL management console","fork":true,"url":"https://api.github.com/repos/honza-kasik/testsuite","forks_url":"https://api.github.com/repos/honza-kasik/testsuite/forks","keys_url":"https://api.github.com/repos/honza-kasik/testsuite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/honza-kasik/testsuite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/honza-kasik/testsuite/teams","hooks_url":"https://api.github.com/repos/honza-kasik/testsuite/hooks","issue_events_url":"https://api.github.com/repos/honza-kasik/testsuite/issues/events{/number}","events_url":"https://api.github.com/repos/honza-kasik/testsuite/events","assignees_url":"https://api.github.com/repos/honza-kasik/testsuite/assignees{/user}","branches_url":"https://api.github.com/repos/honza-kasik/testsuite/branches{/branch}","tags_url":"https://api.github.com/repos/honza-kasik/testsuite/tags","blobs_url":"https://api.github.com/repos/honza-kasik/testsuite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/honza-kasik/testsuite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/honza-kasik/testsuite/git/refs{/sha}","trees_url":"https://api.github.com/repos/honza-kasik/testsuite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/honza-kasik/testsuite/statuses/{sha}","languages_url":"https://api.github.com/repos/honza-kasik/testsuite/languages","stargazers_url":"https://api.github.com/repos/honza-kasik/testsuite/stargazers","contributors_url":"https://api.github.com/repos/honza-kasik/testsuite/contributors","subscribers_url":"https://api.github.com/repos/honza-kasik/testsuite/subscribers","subscription_url":"https://api.github.com/repos/honza-kasik/testsuite/subscription","commits_url":"https://api.github.com/repos/honza-kasik/testsuite/commits{/sha}","git_commits_url":"https://api.github.com/repos/honza-kasik/testsuite/git/commits{/sha}","comments_url":"https://api.github.com/repos/honza-kasik/testsuite/comments{/number}","issue_comment_url":"https://api.github.com/repos/honza-kasik/testsuite/issues/comments{/number}","contents_url":"https://api.github.com/repos/honza-kasik/testsuite/contents/{+path}","compare_url":"https://api.github.com/repos/honza-kasik/testsuite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/honza-kasik/testsuite/merges","archive_url":"https://api.github.com/repos/honza-kasik/testsuite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/honza-kasik/testsuite/downloads","issues_url":"https://api.github.com/repos/honza-kasik/testsuite/issues{/number}","pulls_url":"https://api.github.com/repos/honza-kasik/testsuite/pulls{/number}","milestones_url":"https://api.github.com/repos/honza-kasik/testsuite/milestones{/number}","notifications_url":"https://api.github.com/repos/honza-kasik/testsuite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/honza-kasik/testsuite/labels{/name}","releases_url":"https://api.github.com/repos/honza-kasik/testsuite/releases{/id}","deployments_url":"https://api.github.com/repos/honza-kasik/testsuite/deployments","created_at":"2015-07-13T09:45:07Z","updated_at":"2016-01-25T13:41:08Z","pushed_at":"2016-09-15T09:08:43Z","git_url":"git://github.com/honza-kasik/testsuite.git","ssh_url":"git@github.com:honza-kasik/testsuite.git","clone_url":"https://github.com/honza-kasik/testsuite.git","svn_url":"https://github.com/honza-kasik/testsuite","homepage":null,"size":1866,"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":"hal:master","ref":"master","sha":"d85f32edd974c25fa75df2da4286af62d7ca32d2","user":{"login":"hal","id":4076071,"avatar_url":"https://avatars.githubusercontent.com/u/4076071?v=3","gravatar_id":"","url":"https://api.github.com/users/hal","html_url":"https://github.com/hal","followers_url":"https://api.github.com/users/hal/followers","following_url":"https://api.github.com/users/hal/following{/other_user}","gists_url":"https://api.github.com/users/hal/gists{/gist_id}","starred_url":"https://api.github.com/users/hal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hal/subscriptions","organizations_url":"https://api.github.com/users/hal/orgs","repos_url":"https://api.github.com/users/hal/repos","events_url":"https://api.github.com/users/hal/events{/privacy}","received_events_url":"https://api.github.com/users/hal/received_events","type":"Organization","site_admin":false},"repo":{"id":30184967,"name":"testsuite","full_name":"hal/testsuite","owner":{"login":"hal","id":4076071,"avatar_url":"https://avatars.githubusercontent.com/u/4076071?v=3","gravatar_id":"","url":"https://api.github.com/users/hal","html_url":"https://github.com/hal","followers_url":"https://api.github.com/users/hal/followers","following_url":"https://api.github.com/users/hal/following{/other_user}","gists_url":"https://api.github.com/users/hal/gists{/gist_id}","starred_url":"https://api.github.com/users/hal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hal/subscriptions","organizations_url":"https://api.github.com/users/hal/orgs","repos_url":"https://api.github.com/users/hal/repos","events_url":"https://api.github.com/users/hal/events{/privacy}","received_events_url":"https://api.github.com/users/hal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hal/testsuite","description":"Testsuite for the HAL management console","fork":false,"url":"https://api.github.com/repos/hal/testsuite","forks_url":"https://api.github.com/repos/hal/testsuite/forks","keys_url":"https://api.github.com/repos/hal/testsuite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hal/testsuite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hal/testsuite/teams","hooks_url":"https://api.github.com/repos/hal/testsuite/hooks","issue_events_url":"https://api.github.com/repos/hal/testsuite/issues/events{/number}","events_url":"https://api.github.com/repos/hal/testsuite/events","assignees_url":"https://api.github.com/repos/hal/testsuite/assignees{/user}","branches_url":"https://api.github.com/repos/hal/testsuite/branches{/branch}","tags_url":"https://api.github.com/repos/hal/testsuite/tags","blobs_url":"https://api.github.com/repos/hal/testsuite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hal/testsuite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hal/testsuite/git/refs{/sha}","trees_url":"https://api.github.com/repos/hal/testsuite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hal/testsuite/statuses/{sha}","languages_url":"https://api.github.com/repos/hal/testsuite/languages","stargazers_url":"https://api.github.com/repos/hal/testsuite/stargazers","contributors_url":"https://api.github.com/repos/hal/testsuite/contributors","subscribers_url":"https://api.github.com/repos/hal/testsuite/subscribers","subscription_url":"https://api.github.com/repos/hal/testsuite/subscription","commits_url":"https://api.github.com/repos/hal/testsuite/commits{/sha}","git_commits_url":"https://api.github.com/repos/hal/testsuite/git/commits{/sha}","comments_url":"https://api.github.com/repos/hal/testsuite/comments{/number}","issue_comment_url":"https://api.github.com/repos/hal/testsuite/issues/comments{/number}","contents_url":"https://api.github.com/repos/hal/testsuite/contents/{+path}","compare_url":"https://api.github.com/repos/hal/testsuite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hal/testsuite/merges","archive_url":"https://api.github.com/repos/hal/testsuite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hal/testsuite/downloads","issues_url":"https://api.github.com/repos/hal/testsuite/issues{/number}","pulls_url":"https://api.github.com/repos/hal/testsuite/pulls{/number}","milestones_url":"https://api.github.com/repos/hal/testsuite/milestones{/number}","notifications_url":"https://api.github.com/repos/hal/testsuite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hal/testsuite/labels{/name}","releases_url":"https://api.github.com/repos/hal/testsuite/releases{/id}","deployments_url":"https://api.github.com/repos/hal/testsuite/deployments","created_at":"2015-02-02T11:54:36Z","updated_at":"2016-01-12T15:56:23Z","pushed_at":"2016-09-15T09:08:43Z","git_url":"git://github.com/hal/testsuite.git","ssh_url":"git@github.com:hal/testsuite.git","clone_url":"https://github.com/hal/testsuite.git","svn_url":"https://github.com/hal/testsuite","homepage":null,"size":2544,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":1,"forks":8,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hal/testsuite/pulls/194"},"html":{"href":"https://github.com/hal/testsuite/pull/194"},"issue":{"href":"https://api.github.com/repos/hal/testsuite/issues/194"},"comments":{"href":"https://api.github.com/repos/hal/testsuite/issues/194/comments"},"review_comments":{"href":"https://api.github.com/repos/hal/testsuite/pulls/194/comments"},"review_comment":{"href":"https://api.github.com/repos/hal/testsuite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hal/testsuite/pulls/194/commits"},"statuses":{"href":"https://api.github.com/repos/hal/testsuite/statuses/c31f4c4e1305f2bf2c8dcf01804357706154efd1"}}}}
{"actor":{"display_login":"rhatlapa"}}