{"action":"created","comment":{"url":"https://api.github.com/repos/codice/ddf/pulls/comments/50868860","id":50868860,"diff_hunk":"@@ -267,6 +272,18 @@ public void testExport() throws Exception {\n     }\n \n     @Test\n+    public void testExportToDirectory() throws Exception {\n+        resetInitialState();\n+\n+        String response = console.runCommand(EXPORT_COMMAND + \" \" + temporaryFolder.getRoot());\n+\n+        assertThat(String.format(\"Exporting current configurations to %s.\",","path":"distribution/test/itests/test-itests-ddf/src/test/java/ddf/test/itests/platform/TestConfiguration.java","position":41,"original_position":41,"commit_id":"8a7d574b0c50178c4aa2cb1fba66529066d27b41","original_commit_id":"1d38c2656bbbdb05a9e31ecf72121a9803b42176","user":{"login":"oconnormi","id":3409759,"avatar_url":"https://avatars.githubusercontent.com/u/3409759?v=3","gravatar_id":"","url":"https://api.github.com/users/oconnormi","html_url":"https://github.com/oconnormi","followers_url":"https://api.github.com/users/oconnormi/followers","following_url":"https://api.github.com/users/oconnormi/following{/other_user}","gists_url":"https://api.github.com/users/oconnormi/gists{/gist_id}","starred_url":"https://api.github.com/users/oconnormi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oconnormi/subscriptions","organizations_url":"https://api.github.com/users/oconnormi/orgs","repos_url":"https://api.github.com/users/oconnormi/repos","events_url":"https://api.github.com/users/oconnormi/events{/privacy}","received_events_url":"https://api.github.com/users/oconnormi/received_events","type":"User","site_admin":false},"body":"I had that originally, been going back and forth on it. I've been thinking of refactoring a bit so that the assertions could be grouped in a method that takes in the export directory. This way they could be used everywhere instead of the current way which makes the assumption that the `exportDirectory` is under `ddfHome` via the `getExportDirectory` and `getExportSubDirectory`. Something like an `assertExportContents(Path exportDirectory)`, thoughts?","created_at":"2016-01-26T17:29:29Z","updated_at":"2016-01-26T17:29:29Z","html_url":"https://github.com/codice/ddf/pull/492#discussion_r50868860","pull_request_url":"https://api.github.com/repos/codice/ddf/pulls/492","_links":{"self":{"href":"https://api.github.com/repos/codice/ddf/pulls/comments/50868860"},"html":{"href":"https://github.com/codice/ddf/pull/492#discussion_r50868860"},"pull_request":{"href":"https://api.github.com/repos/codice/ddf/pulls/492"}}},"pull_request":{"url":"https://api.github.com/repos/codice/ddf/pulls/492","id":57225102,"html_url":"https://github.com/codice/ddf/pull/492","diff_url":"https://github.com/codice/ddf/pull/492.diff","patch_url":"https://github.com/codice/ddf/pull/492.patch","issue_url":"https://api.github.com/repos/codice/ddf/issues/492","number":492,"state":"open","locked":false,"title":"DDF-1820: As an Administrator, I want to be able to specify the directory where my configurations are exported","user":{"login":"oconnormi","id":3409759,"avatar_url":"https://avatars.githubusercontent.com/u/3409759?v=3","gravatar_id":"","url":"https://api.github.com/users/oconnormi","html_url":"https://github.com/oconnormi","followers_url":"https://api.github.com/users/oconnormi/followers","following_url":"https://api.github.com/users/oconnormi/following{/other_user}","gists_url":"https://api.github.com/users/oconnormi/gists{/gist_id}","starred_url":"https://api.github.com/users/oconnormi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oconnormi/subscriptions","organizations_url":"https://api.github.com/users/oconnormi/orgs","repos_url":"https://api.github.com/users/oconnormi/repos","events_url":"https://api.github.com/users/oconnormi/events{/privacy}","received_events_url":"https://api.github.com/users/oconnormi/received_events","type":"User","site_admin":false},"body":"* Changed command namespace from `platform` to `migration`\r\n* Renamed `config-export` to `export` and `config-status` to `status`\r\n* Moved migration commands to the migration module\r\n* Added argument for export directory\r\n\r\n \r\n@garrettfreibott, @Lambeaux, @figliold, @lessarderic, @andrewkfiedler\r\n\r\n<!-- Reviewable:start -->\r\n[<img src=\"https://reviewable.io/review_button.svg\" height=\"40\" alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/codice/ddf/492)\r\n<!-- Reviewable:end -->\r\n","created_at":"2016-01-26T15:26:33Z","updated_at":"2016-01-26T17:29:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bbd74dc0446cf779ce2720175ff985ac9a937455","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codice/ddf/pulls/492/commits","review_comments_url":"https://api.github.com/repos/codice/ddf/pulls/492/comments","review_comment_url":"https://api.github.com/repos/codice/ddf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codice/ddf/issues/492/comments","statuses_url":"https://api.github.com/repos/codice/ddf/statuses/8a7d574b0c50178c4aa2cb1fba66529066d27b41","head":{"label":"oconnormi:DDF-1820","ref":"DDF-1820","sha":"8a7d574b0c50178c4aa2cb1fba66529066d27b41","user":{"login":"oconnormi","id":3409759,"avatar_url":"https://avatars.githubusercontent.com/u/3409759?v=3","gravatar_id":"","url":"https://api.github.com/users/oconnormi","html_url":"https://github.com/oconnormi","followers_url":"https://api.github.com/users/oconnormi/followers","following_url":"https://api.github.com/users/oconnormi/following{/other_user}","gists_url":"https://api.github.com/users/oconnormi/gists{/gist_id}","starred_url":"https://api.github.com/users/oconnormi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oconnormi/subscriptions","organizations_url":"https://api.github.com/users/oconnormi/orgs","repos_url":"https://api.github.com/users/oconnormi/repos","events_url":"https://api.github.com/users/oconnormi/events{/privacy}","received_events_url":"https://api.github.com/users/oconnormi/received_events","type":"User","site_admin":false},"repo":{"id":40485585,"name":"ddf","full_name":"oconnormi/ddf","owner":{"login":"oconnormi","id":3409759,"avatar_url":"https://avatars.githubusercontent.com/u/3409759?v=3","gravatar_id":"","url":"https://api.github.com/users/oconnormi","html_url":"https://github.com/oconnormi","followers_url":"https://api.github.com/users/oconnormi/followers","following_url":"https://api.github.com/users/oconnormi/following{/other_user}","gists_url":"https://api.github.com/users/oconnormi/gists{/gist_id}","starred_url":"https://api.github.com/users/oconnormi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oconnormi/subscriptions","organizations_url":"https://api.github.com/users/oconnormi/orgs","repos_url":"https://api.github.com/users/oconnormi/repos","events_url":"https://api.github.com/users/oconnormi/events{/privacy}","received_events_url":"https://api.github.com/users/oconnormi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oconnormi/ddf","description":"The Distributed Data Framework - Distribution, SDK, and Test","fork":true,"url":"https://api.github.com/repos/oconnormi/ddf","forks_url":"https://api.github.com/repos/oconnormi/ddf/forks","keys_url":"https://api.github.com/repos/oconnormi/ddf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oconnormi/ddf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oconnormi/ddf/teams","hooks_url":"https://api.github.com/repos/oconnormi/ddf/hooks","issue_events_url":"https://api.github.com/repos/oconnormi/ddf/issues/events{/number}","events_url":"https://api.github.com/repos/oconnormi/ddf/events","assignees_url":"https://api.github.com/repos/oconnormi/ddf/assignees{/user}","branches_url":"https://api.github.com/repos/oconnormi/ddf/branches{/branch}","tags_url":"https://api.github.com/repos/oconnormi/ddf/tags","blobs_url":"https://api.github.com/repos/oconnormi/ddf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oconnormi/ddf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oconnormi/ddf/git/refs{/sha}","trees_url":"https://api.github.com/repos/oconnormi/ddf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oconnormi/ddf/statuses/{sha}","languages_url":"https://api.github.com/repos/oconnormi/ddf/languages","stargazers_url":"https://api.github.com/repos/oconnormi/ddf/stargazers","contributors_url":"https://api.github.com/repos/oconnormi/ddf/contributors","subscribers_url":"https://api.github.com/repos/oconnormi/ddf/subscribers","subscription_url":"https://api.github.com/repos/oconnormi/ddf/subscription","commits_url":"https://api.github.com/repos/oconnormi/ddf/commits{/sha}","git_commits_url":"https://api.github.com/repos/oconnormi/ddf/git/commits{/sha}","comments_url":"https://api.github.com/repos/oconnormi/ddf/comments{/number}","issue_comment_url":"https://api.github.com/repos/oconnormi/ddf/issues/comments{/number}","contents_url":"https://api.github.com/repos/oconnormi/ddf/contents/{+path}","compare_url":"https://api.github.com/repos/oconnormi/ddf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oconnormi/ddf/merges","archive_url":"https://api.github.com/repos/oconnormi/ddf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oconnormi/ddf/downloads","issues_url":"https://api.github.com/repos/oconnormi/ddf/issues{/number}","pulls_url":"https://api.github.com/repos/oconnormi/ddf/pulls{/number}","milestones_url":"https://api.github.com/repos/oconnormi/ddf/milestones{/number}","notifications_url":"https://api.github.com/repos/oconnormi/ddf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oconnormi/ddf/labels{/name}","releases_url":"https://api.github.com/repos/oconnormi/ddf/releases{/id}","deployments_url":"https://api.github.com/repos/oconnormi/ddf/deployments","created_at":"2015-08-10T14:00:20Z","updated_at":"2016-01-12T15:07:08Z","pushed_at":"2016-01-26T17:22:24Z","git_url":"git://github.com/oconnormi/ddf.git","ssh_url":"git@github.com:oconnormi/ddf.git","clone_url":"https://github.com/oconnormi/ddf.git","svn_url":"https://github.com/oconnormi/ddf","homepage":"","size":126633,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"codice:master","ref":"master","sha":"dd14cb270d9be57b296d714b248a1974a009b582","user":{"login":"codice","id":2386734,"avatar_url":"https://avatars.githubusercontent.com/u/2386734?v=3","gravatar_id":"","url":"https://api.github.com/users/codice","html_url":"https://github.com/codice","followers_url":"https://api.github.com/users/codice/followers","following_url":"https://api.github.com/users/codice/following{/other_user}","gists_url":"https://api.github.com/users/codice/gists{/gist_id}","starred_url":"https://api.github.com/users/codice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codice/subscriptions","organizations_url":"https://api.github.com/users/codice/orgs","repos_url":"https://api.github.com/users/codice/repos","events_url":"https://api.github.com/users/codice/events{/privacy}","received_events_url":"https://api.github.com/users/codice/received_events","type":"Organization","site_admin":false},"repo":{"id":15173563,"name":"ddf","full_name":"codice/ddf","owner":{"login":"codice","id":2386734,"avatar_url":"https://avatars.githubusercontent.com/u/2386734?v=3","gravatar_id":"","url":"https://api.github.com/users/codice","html_url":"https://github.com/codice","followers_url":"https://api.github.com/users/codice/followers","following_url":"https://api.github.com/users/codice/following{/other_user}","gists_url":"https://api.github.com/users/codice/gists{/gist_id}","starred_url":"https://api.github.com/users/codice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codice/subscriptions","organizations_url":"https://api.github.com/users/codice/orgs","repos_url":"https://api.github.com/users/codice/repos","events_url":"https://api.github.com/users/codice/events{/privacy}","received_events_url":"https://api.github.com/users/codice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codice/ddf","description":"The Distributed Data Framework - Federated Open Geospatial Consortium (OGC) filter powered metadata catalog with SAML Web SSO secured container","fork":false,"url":"https://api.github.com/repos/codice/ddf","forks_url":"https://api.github.com/repos/codice/ddf/forks","keys_url":"https://api.github.com/repos/codice/ddf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codice/ddf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codice/ddf/teams","hooks_url":"https://api.github.com/repos/codice/ddf/hooks","issue_events_url":"https://api.github.com/repos/codice/ddf/issues/events{/number}","events_url":"https://api.github.com/repos/codice/ddf/events","assignees_url":"https://api.github.com/repos/codice/ddf/assignees{/user}","branches_url":"https://api.github.com/repos/codice/ddf/branches{/branch}","tags_url":"https://api.github.com/repos/codice/ddf/tags","blobs_url":"https://api.github.com/repos/codice/ddf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codice/ddf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codice/ddf/git/refs{/sha}","trees_url":"https://api.github.com/repos/codice/ddf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codice/ddf/statuses/{sha}","languages_url":"https://api.github.com/repos/codice/ddf/languages","stargazers_url":"https://api.github.com/repos/codice/ddf/stargazers","contributors_url":"https://api.github.com/repos/codice/ddf/contributors","subscribers_url":"https://api.github.com/repos/codice/ddf/subscribers","subscription_url":"https://api.github.com/repos/codice/ddf/subscription","commits_url":"https://api.github.com/repos/codice/ddf/commits{/sha}","git_commits_url":"https://api.github.com/repos/codice/ddf/git/commits{/sha}","comments_url":"https://api.github.com/repos/codice/ddf/comments{/number}","issue_comment_url":"https://api.github.com/repos/codice/ddf/issues/comments{/number}","contents_url":"https://api.github.com/repos/codice/ddf/contents/{+path}","compare_url":"https://api.github.com/repos/codice/ddf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codice/ddf/merges","archive_url":"https://api.github.com/repos/codice/ddf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codice/ddf/downloads","issues_url":"https://api.github.com/repos/codice/ddf/issues{/number}","pulls_url":"https://api.github.com/repos/codice/ddf/pulls{/number}","milestones_url":"https://api.github.com/repos/codice/ddf/milestones{/number}","notifications_url":"https://api.github.com/repos/codice/ddf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codice/ddf/labels{/name}","releases_url":"https://api.github.com/repos/codice/ddf/releases{/id}","deployments_url":"https://api.github.com/repos/codice/ddf/deployments","created_at":"2013-12-13T20:38:28Z","updated_at":"2016-01-19T21:24:17Z","pushed_at":"2016-01-26T17:22:24Z","git_url":"git://github.com/codice/ddf.git","ssh_url":"git@github.com:codice/ddf.git","clone_url":"https://github.com/codice/ddf.git","svn_url":"https://github.com/codice/ddf","homepage":"","size":135042,"stargazers_count":32,"watchers_count":32,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":68,"mirror_url":null,"open_issues_count":20,"forks":68,"open_issues":20,"watchers":32,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codice/ddf/pulls/492"},"html":{"href":"https://github.com/codice/ddf/pull/492"},"issue":{"href":"https://api.github.com/repos/codice/ddf/issues/492"},"comments":{"href":"https://api.github.com/repos/codice/ddf/issues/492/comments"},"review_comments":{"href":"https://api.github.com/repos/codice/ddf/pulls/492/comments"},"review_comment":{"href":"https://api.github.com/repos/codice/ddf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codice/ddf/pulls/492/commits"},"statuses":{"href":"https://api.github.com/repos/codice/ddf/statuses/8a7d574b0c50178c4aa2cb1fba66529066d27b41"}}}}