{"action":"created","comment":{"url":"https://api.github.com/repos/apache/reef/pulls/comments/166754823","pull_request_review_id":94869398,"id":166754823,"diff_hunk":"@@ -0,0 +1,240 @@\n+﻿// Licensed to the Apache Software Foundation (ASF) under one\n+// or more contributor license agreements.  See the NOTICE file\n+// distributed with this work for additional information\n+// regarding copyright ownership.  The ASF licenses this file\n+// to you under the Apache License, Version 2.0 (the\n+// \"License\"); you may not use this file except in compliance\n+// with the License.  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+using System;\n+using System.IO;\n+using System.Linq;\n+using Microsoft.Azure.DataLake.Store;\n+using NSubstitute;\n+using Org.Apache.REEF.IO.FileSystem.AzureDataLake;\n+using Org.Apache.REEF.Tang.Implementations.Tang;\n+using Xunit;\n+\n+namespace Org.Apache.REEF.IO.Tests\n+{\n+    public sealed class TestAzureDataLakeFileSystem\n+    {\n+        private readonly static Uri FakeBaseUri = new Uri(\"http://fakeadls.com\");\n+        private readonly static Uri FakeDirUri = new Uri(FakeBaseUri, \"dir\");\n+        private readonly static Uri FakeFileUri = new Uri($\"{FakeDirUri}/fakefile\");\n+        private readonly TestContext context;\n+        private readonly AzureDataLakeFileSystem fs;\n+\n+        public TestAzureDataLakeFileSystem()\n+        {\n+            context = new TestContext();\n+            fs = context.GetAdlsFileSystem();\n+        }\n+\n+        [Fact]\n+        public void TestOpen()\n+        {\n+            context.MockAdlsClient.CreateFile(FakeFileUri.AbsolutePath, IfExists.Overwrite);\n+            var stream = fs.Open(FakeBaseUri);\n+            Assert.Equal(typeof(AdlsInputStream), stream.GetType().BaseType);","path":"lang/cs/Org.Apache.REEF.IO.Tests/TestAzureDataLakeFileSystem.cs","position":48,"original_position":48,"commit_id":"879ba70d8f62e331195d5de74d370bcef2d2d754","original_commit_id":"879ba70d8f62e331195d5de74d370bcef2d2d754","user":{"login":"dwaijam","id":640582,"avatar_url":"https://avatars2.githubusercontent.com/u/640582?v=4","gravatar_id":"","url":"https://api.github.com/users/dwaijam","html_url":"https://github.com/dwaijam","followers_url":"https://api.github.com/users/dwaijam/followers","following_url":"https://api.github.com/users/dwaijam/following{/other_user}","gists_url":"https://api.github.com/users/dwaijam/gists{/gist_id}","starred_url":"https://api.github.com/users/dwaijam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwaijam/subscriptions","organizations_url":"https://api.github.com/users/dwaijam/orgs","repos_url":"https://api.github.com/users/dwaijam/repos","events_url":"https://api.github.com/users/dwaijam/events{/privacy}","received_events_url":"https://api.github.com/users/dwaijam/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2018-02-07T21:04:04Z","updated_at":"2018-02-07T21:04:04Z","html_url":"https://github.com/apache/reef/pull/1427#discussion_r166754823","pull_request_url":"https://api.github.com/repos/apache/reef/pulls/1427","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/apache/reef/pulls/comments/166754823"},"html":{"href":"https://github.com/apache/reef/pull/1427#discussion_r166754823"},"pull_request":{"href":"https://api.github.com/repos/apache/reef/pulls/1427"}},"in_reply_to_id":165794360},"pull_request":{"url":"https://api.github.com/repos/apache/reef/pulls/1427","id":165807992,"html_url":"https://github.com/apache/reef/pull/1427","diff_url":"https://github.com/apache/reef/pull/1427.diff","patch_url":"https://github.com/apache/reef/pull/1427.patch","issue_url":"https://api.github.com/repos/apache/reef/issues/1427","number":1427,"state":"open","locked":false,"title":"[REEF-1976] Implement Azure Data Lake Storage FileSystem","user":{"login":"dwaijam","id":640582,"avatar_url":"https://avatars2.githubusercontent.com/u/640582?v=4","gravatar_id":"","url":"https://api.github.com/users/dwaijam","html_url":"https://github.com/dwaijam","followers_url":"https://api.github.com/users/dwaijam/followers","following_url":"https://api.github.com/users/dwaijam/following{/other_user}","gists_url":"https://api.github.com/users/dwaijam/gists{/gist_id}","starred_url":"https://api.github.com/users/dwaijam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwaijam/subscriptions","organizations_url":"https://api.github.com/users/dwaijam/orgs","repos_url":"https://api.github.com/users/dwaijam/repos","events_url":"https://api.github.com/users/dwaijam/events{/privacy}","received_events_url":"https://api.github.com/users/dwaijam/received_events","type":"User","site_admin":false},"body":"This addressed the issue by\r\n    * Implementing all the IFileSystem apis for Azure Datalake Storage FileSystem\r\n    * Adding unit and functional tests for the same\r\n\r\nJIRA\r\n    [REEF-1976] (https://issues.apache.org/jira/browse/REEF-1976)\r\n","created_at":"2018-01-29T20:23:23Z","updated_at":"2018-02-07T21:04:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d658dbbbad1d3cc39a8e90439e952b78d996656","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/reef/pulls/1427/commits","review_comments_url":"https://api.github.com/repos/apache/reef/pulls/1427/comments","review_comment_url":"https://api.github.com/repos/apache/reef/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/reef/issues/1427/comments","statuses_url":"https://api.github.com/repos/apache/reef/statuses/879ba70d8f62e331195d5de74d370bcef2d2d754","head":{"label":"dwaijam:REEF-1976","ref":"REEF-1976","sha":"879ba70d8f62e331195d5de74d370bcef2d2d754","user":{"login":"dwaijam","id":640582,"avatar_url":"https://avatars2.githubusercontent.com/u/640582?v=4","gravatar_id":"","url":"https://api.github.com/users/dwaijam","html_url":"https://github.com/dwaijam","followers_url":"https://api.github.com/users/dwaijam/followers","following_url":"https://api.github.com/users/dwaijam/following{/other_user}","gists_url":"https://api.github.com/users/dwaijam/gists{/gist_id}","starred_url":"https://api.github.com/users/dwaijam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwaijam/subscriptions","organizations_url":"https://api.github.com/users/dwaijam/orgs","repos_url":"https://api.github.com/users/dwaijam/repos","events_url":"https://api.github.com/users/dwaijam/events{/privacy}","received_events_url":"https://api.github.com/users/dwaijam/received_events","type":"User","site_admin":false},"repo":{"id":116431109,"name":"reef","full_name":"dwaijam/reef","owner":{"login":"dwaijam","id":640582,"avatar_url":"https://avatars2.githubusercontent.com/u/640582?v=4","gravatar_id":"","url":"https://api.github.com/users/dwaijam","html_url":"https://github.com/dwaijam","followers_url":"https://api.github.com/users/dwaijam/followers","following_url":"https://api.github.com/users/dwaijam/following{/other_user}","gists_url":"https://api.github.com/users/dwaijam/gists{/gist_id}","starred_url":"https://api.github.com/users/dwaijam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwaijam/subscriptions","organizations_url":"https://api.github.com/users/dwaijam/orgs","repos_url":"https://api.github.com/users/dwaijam/repos","events_url":"https://api.github.com/users/dwaijam/events{/privacy}","received_events_url":"https://api.github.com/users/dwaijam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dwaijam/reef","description":"Mirror of Apache REEF","fork":true,"url":"https://api.github.com/repos/dwaijam/reef","forks_url":"https://api.github.com/repos/dwaijam/reef/forks","keys_url":"https://api.github.com/repos/dwaijam/reef/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dwaijam/reef/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dwaijam/reef/teams","hooks_url":"https://api.github.com/repos/dwaijam/reef/hooks","issue_events_url":"https://api.github.com/repos/dwaijam/reef/issues/events{/number}","events_url":"https://api.github.com/repos/dwaijam/reef/events","assignees_url":"https://api.github.com/repos/dwaijam/reef/assignees{/user}","branches_url":"https://api.github.com/repos/dwaijam/reef/branches{/branch}","tags_url":"https://api.github.com/repos/dwaijam/reef/tags","blobs_url":"https://api.github.com/repos/dwaijam/reef/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dwaijam/reef/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dwaijam/reef/git/refs{/sha}","trees_url":"https://api.github.com/repos/dwaijam/reef/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dwaijam/reef/statuses/{sha}","languages_url":"https://api.github.com/repos/dwaijam/reef/languages","stargazers_url":"https://api.github.com/repos/dwaijam/reef/stargazers","contributors_url":"https://api.github.com/repos/dwaijam/reef/contributors","subscribers_url":"https://api.github.com/repos/dwaijam/reef/subscribers","subscription_url":"https://api.github.com/repos/dwaijam/reef/subscription","commits_url":"https://api.github.com/repos/dwaijam/reef/commits{/sha}","git_commits_url":"https://api.github.com/repos/dwaijam/reef/git/commits{/sha}","comments_url":"https://api.github.com/repos/dwaijam/reef/comments{/number}","issue_comment_url":"https://api.github.com/repos/dwaijam/reef/issues/comments{/number}","contents_url":"https://api.github.com/repos/dwaijam/reef/contents/{+path}","compare_url":"https://api.github.com/repos/dwaijam/reef/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dwaijam/reef/merges","archive_url":"https://api.github.com/repos/dwaijam/reef/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dwaijam/reef/downloads","issues_url":"https://api.github.com/repos/dwaijam/reef/issues{/number}","pulls_url":"https://api.github.com/repos/dwaijam/reef/pulls{/number}","milestones_url":"https://api.github.com/repos/dwaijam/reef/milestones{/number}","notifications_url":"https://api.github.com/repos/dwaijam/reef/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dwaijam/reef/labels{/name}","releases_url":"https://api.github.com/repos/dwaijam/reef/releases{/id}","deployments_url":"https://api.github.com/repos/dwaijam/reef/deployments","created_at":"2018-01-05T22:02:52Z","updated_at":"2018-01-05T22:03:02Z","pushed_at":"2018-02-07T20:38:11Z","git_url":"git://github.com/dwaijam/reef.git","ssh_url":"git@github.com:dwaijam/reef.git","clone_url":"https://github.com/dwaijam/reef.git","svn_url":"https://github.com/dwaijam/reef","homepage":"","size":39336,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"e43019f40d31341818e921c6180e6fd53e5f3df1","user":{"login":"apache","id":47359,"avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":25623941,"name":"reef","full_name":"apache/reef","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/reef","description":"Mirror of Apache REEF","fork":false,"url":"https://api.github.com/repos/apache/reef","forks_url":"https://api.github.com/repos/apache/reef/forks","keys_url":"https://api.github.com/repos/apache/reef/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/reef/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/reef/teams","hooks_url":"https://api.github.com/repos/apache/reef/hooks","issue_events_url":"https://api.github.com/repos/apache/reef/issues/events{/number}","events_url":"https://api.github.com/repos/apache/reef/events","assignees_url":"https://api.github.com/repos/apache/reef/assignees{/user}","branches_url":"https://api.github.com/repos/apache/reef/branches{/branch}","tags_url":"https://api.github.com/repos/apache/reef/tags","blobs_url":"https://api.github.com/repos/apache/reef/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/reef/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/reef/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/reef/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/reef/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/reef/languages","stargazers_url":"https://api.github.com/repos/apache/reef/stargazers","contributors_url":"https://api.github.com/repos/apache/reef/contributors","subscribers_url":"https://api.github.com/repos/apache/reef/subscribers","subscription_url":"https://api.github.com/repos/apache/reef/subscription","commits_url":"https://api.github.com/repos/apache/reef/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/reef/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/reef/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/reef/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/reef/contents/{+path}","compare_url":"https://api.github.com/repos/apache/reef/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/reef/merges","archive_url":"https://api.github.com/repos/apache/reef/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/reef/downloads","issues_url":"https://api.github.com/repos/apache/reef/issues{/number}","pulls_url":"https://api.github.com/repos/apache/reef/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/reef/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/reef/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/reef/labels{/name}","releases_url":"https://api.github.com/repos/apache/reef/releases{/id}","deployments_url":"https://api.github.com/repos/apache/reef/deployments","created_at":"2014-10-23T07:00:10Z","updated_at":"2018-01-22T18:45:19Z","pushed_at":"2018-02-07T20:38:13Z","git_url":"git://github.com/apache/reef.git","ssh_url":"git@github.com:apache/reef.git","clone_url":"https://github.com/apache/reef.git","svn_url":"https://github.com/apache/reef","homepage":"","size":39319,"stargazers_count":74,"watchers_count":74,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":99,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":99,"open_issues":8,"watchers":74,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/reef/pulls/1427"},"html":{"href":"https://github.com/apache/reef/pull/1427"},"issue":{"href":"https://api.github.com/repos/apache/reef/issues/1427"},"comments":{"href":"https://api.github.com/repos/apache/reef/issues/1427/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/reef/pulls/1427/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/reef/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/reef/pulls/1427/commits"},"statuses":{"href":"https://api.github.com/repos/apache/reef/statuses/879ba70d8f62e331195d5de74d370bcef2d2d754"}},"author_association":"NONE"}}
{"actor":{"display_login":"dwaijam"}}