{"action":"created","comment":{"url":"https://api.github.com/repos/owncloud/android/pulls/comments/120855664","pull_request_review_id":42836733,"id":120855664,"diff_hunk":"@@ -97,4 +97,18 @@ public static void deleteAllAccounts(Context context) {\n             }\n         }\n     }\n+\n+\n+    //To regularize the URL to build the URL inserted in the account device\n+    public static String regularURL(String url){\n+        String url_regularized = null;\n+        if (url.startsWith(\"https://\")){\n+            url_regularized = url.substring(8, url.length()); //skipping the protocol\n+        } else if (url.startsWith(\"http://\")) {","path":"androidTest/java/com/owncloud/android/utils/AccountsManager.java","position":20,"original_position":20,"commit_id":"dccee8e0aa89e259ae1b93c2615725ead97aa2ec","original_commit_id":"dccee8e0aa89e259ae1b93c2615725ead97aa2ec","user":{"login":"davigonz","id":15261363,"avatar_url":"https://avatars3.githubusercontent.com/u/15261363?v=3","gravatar_id":"","url":"https://api.github.com/users/davigonz","html_url":"https://github.com/davigonz","followers_url":"https://api.github.com/users/davigonz/followers","following_url":"https://api.github.com/users/davigonz/following{/other_user}","gists_url":"https://api.github.com/users/davigonz/gists{/gist_id}","starred_url":"https://api.github.com/users/davigonz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davigonz/subscriptions","organizations_url":"https://api.github.com/users/davigonz/orgs","repos_url":"https://api.github.com/users/davigonz/repos","events_url":"https://api.github.com/users/davigonz/events{/privacy}","received_events_url":"https://api.github.com/users/davigonz/received_events","type":"User","site_admin":false},"body":"You can create a constant to include the \"http://\" string and named as **HTTP_SCHEME** for instance.","created_at":"2017-06-08T10:42:07Z","updated_at":"2017-06-08T10:50:52Z","html_url":"https://github.com/owncloud/android/pull/1981#discussion_r120855664","pull_request_url":"https://api.github.com/repos/owncloud/android/pulls/1981","_links":{"self":{"href":"https://api.github.com/repos/owncloud/android/pulls/comments/120855664"},"html":{"href":"https://github.com/owncloud/android/pull/1981#discussion_r120855664"},"pull_request":{"href":"https://api.github.com/repos/owncloud/android/pulls/1981"}}},"pull_request":{"url":"https://api.github.com/repos/owncloud/android/pulls/1981","id":124241041,"html_url":"https://github.com/owncloud/android/pull/1981","diff_url":"https://github.com/owncloud/android/pull/1981.diff","patch_url":"https://github.com/owncloud/android/pull/1981.patch","issue_url":"https://api.github.com/repos/owncloud/android/issues/1981","number":1981,"state":"open","locked":false,"title":"[Espresso] Add UI tests on login view with SAML auth","user":{"login":"jesmrec","id":14894746,"avatar_url":"https://avatars3.githubusercontent.com/u/14894746?v=3","gravatar_id":"","url":"https://api.github.com/users/jesmrec","html_url":"https://github.com/jesmrec","followers_url":"https://api.github.com/users/jesmrec/followers","following_url":"https://api.github.com/users/jesmrec/following{/other_user}","gists_url":"https://api.github.com/users/jesmrec/gists{/gist_id}","starred_url":"https://api.github.com/users/jesmrec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesmrec/subscriptions","organizations_url":"https://api.github.com/users/jesmrec/orgs","repos_url":"https://api.github.com/users/jesmrec/repos","events_url":"https://api.github.com/users/jesmrec/events{/privacy}","received_events_url":"https://api.github.com/users/jesmrec/received_events","type":"User","site_admin":false},"body":"Test cases to check the login view with SAML servers. Checked positive cases ftm.\r\n\r\nSAML servers use a web view to validate credentials against an idP. For this reason, `WebEspresso` was added as a dependence for instrumented tests in gradle build file.\r\n\r\n@davigonz @davivel ","created_at":"2017-06-06T17:02:52Z","updated_at":"2017-06-08T10:50:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1fee6f0527fdd0c0b69701d4e1effad2091ddf31","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/owncloud/android/pulls/1981/commits","review_comments_url":"https://api.github.com/repos/owncloud/android/pulls/1981/comments","review_comment_url":"https://api.github.com/repos/owncloud/android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/owncloud/android/issues/1981/comments","statuses_url":"https://api.github.com/repos/owncloud/android/statuses/dccee8e0aa89e259ae1b93c2615725ead97aa2ec","head":{"label":"owncloud:saml_login_espresso","ref":"saml_login_espresso","sha":"dccee8e0aa89e259ae1b93c2615725ead97aa2ec","user":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars0.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"repo":{"id":5550567,"name":"android","full_name":"owncloud/android","owner":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars0.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/owncloud/android","description":":phone: The ownCloud Android App","fork":false,"url":"https://api.github.com/repos/owncloud/android","forks_url":"https://api.github.com/repos/owncloud/android/forks","keys_url":"https://api.github.com/repos/owncloud/android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owncloud/android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owncloud/android/teams","hooks_url":"https://api.github.com/repos/owncloud/android/hooks","issue_events_url":"https://api.github.com/repos/owncloud/android/issues/events{/number}","events_url":"https://api.github.com/repos/owncloud/android/events","assignees_url":"https://api.github.com/repos/owncloud/android/assignees{/user}","branches_url":"https://api.github.com/repos/owncloud/android/branches{/branch}","tags_url":"https://api.github.com/repos/owncloud/android/tags","blobs_url":"https://api.github.com/repos/owncloud/android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owncloud/android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owncloud/android/git/refs{/sha}","trees_url":"https://api.github.com/repos/owncloud/android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owncloud/android/statuses/{sha}","languages_url":"https://api.github.com/repos/owncloud/android/languages","stargazers_url":"https://api.github.com/repos/owncloud/android/stargazers","contributors_url":"https://api.github.com/repos/owncloud/android/contributors","subscribers_url":"https://api.github.com/repos/owncloud/android/subscribers","subscription_url":"https://api.github.com/repos/owncloud/android/subscription","commits_url":"https://api.github.com/repos/owncloud/android/commits{/sha}","git_commits_url":"https://api.github.com/repos/owncloud/android/git/commits{/sha}","comments_url":"https://api.github.com/repos/owncloud/android/comments{/number}","issue_comment_url":"https://api.github.com/repos/owncloud/android/issues/comments{/number}","contents_url":"https://api.github.com/repos/owncloud/android/contents/{+path}","compare_url":"https://api.github.com/repos/owncloud/android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owncloud/android/merges","archive_url":"https://api.github.com/repos/owncloud/android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owncloud/android/downloads","issues_url":"https://api.github.com/repos/owncloud/android/issues{/number}","pulls_url":"https://api.github.com/repos/owncloud/android/pulls{/number}","milestones_url":"https://api.github.com/repos/owncloud/android/milestones{/number}","notifications_url":"https://api.github.com/repos/owncloud/android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owncloud/android/labels{/name}","releases_url":"https://api.github.com/repos/owncloud/android/releases{/id}","deployments_url":"https://api.github.com/repos/owncloud/android/deployments","created_at":"2012-08-25T10:35:56Z","updated_at":"2017-06-08T07:40:01Z","pushed_at":"2017-06-07T14:49:40Z","git_url":"git://github.com/owncloud/android.git","ssh_url":"git@github.com:owncloud/android.git","clone_url":"https://github.com/owncloud/android.git","svn_url":"https://github.com/owncloud/android","homepage":"","size":165932,"stargazers_count":2140,"watchers_count":2140,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2402,"mirror_url":null,"open_issues_count":328,"forks":2402,"open_issues":328,"watchers":2140,"default_branch":"master"}},"base":{"label":"owncloud:master","ref":"master","sha":"d3f9ecf9c0499ffd86b3b2c61f82c28ee1b77a57","user":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars0.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"repo":{"id":5550567,"name":"android","full_name":"owncloud/android","owner":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars0.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/owncloud/android","description":":phone: The ownCloud Android App","fork":false,"url":"https://api.github.com/repos/owncloud/android","forks_url":"https://api.github.com/repos/owncloud/android/forks","keys_url":"https://api.github.com/repos/owncloud/android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owncloud/android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owncloud/android/teams","hooks_url":"https://api.github.com/repos/owncloud/android/hooks","issue_events_url":"https://api.github.com/repos/owncloud/android/issues/events{/number}","events_url":"https://api.github.com/repos/owncloud/android/events","assignees_url":"https://api.github.com/repos/owncloud/android/assignees{/user}","branches_url":"https://api.github.com/repos/owncloud/android/branches{/branch}","tags_url":"https://api.github.com/repos/owncloud/android/tags","blobs_url":"https://api.github.com/repos/owncloud/android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owncloud/android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owncloud/android/git/refs{/sha}","trees_url":"https://api.github.com/repos/owncloud/android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owncloud/android/statuses/{sha}","languages_url":"https://api.github.com/repos/owncloud/android/languages","stargazers_url":"https://api.github.com/repos/owncloud/android/stargazers","contributors_url":"https://api.github.com/repos/owncloud/android/contributors","subscribers_url":"https://api.github.com/repos/owncloud/android/subscribers","subscription_url":"https://api.github.com/repos/owncloud/android/subscription","commits_url":"https://api.github.com/repos/owncloud/android/commits{/sha}","git_commits_url":"https://api.github.com/repos/owncloud/android/git/commits{/sha}","comments_url":"https://api.github.com/repos/owncloud/android/comments{/number}","issue_comment_url":"https://api.github.com/repos/owncloud/android/issues/comments{/number}","contents_url":"https://api.github.com/repos/owncloud/android/contents/{+path}","compare_url":"https://api.github.com/repos/owncloud/android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owncloud/android/merges","archive_url":"https://api.github.com/repos/owncloud/android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owncloud/android/downloads","issues_url":"https://api.github.com/repos/owncloud/android/issues{/number}","pulls_url":"https://api.github.com/repos/owncloud/android/pulls{/number}","milestones_url":"https://api.github.com/repos/owncloud/android/milestones{/number}","notifications_url":"https://api.github.com/repos/owncloud/android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owncloud/android/labels{/name}","releases_url":"https://api.github.com/repos/owncloud/android/releases{/id}","deployments_url":"https://api.github.com/repos/owncloud/android/deployments","created_at":"2012-08-25T10:35:56Z","updated_at":"2017-06-08T07:40:01Z","pushed_at":"2017-06-07T14:49:40Z","git_url":"git://github.com/owncloud/android.git","ssh_url":"git@github.com:owncloud/android.git","clone_url":"https://github.com/owncloud/android.git","svn_url":"https://github.com/owncloud/android","homepage":"","size":165932,"stargazers_count":2140,"watchers_count":2140,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2402,"mirror_url":null,"open_issues_count":328,"forks":2402,"open_issues":328,"watchers":2140,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/owncloud/android/pulls/1981"},"html":{"href":"https://github.com/owncloud/android/pull/1981"},"issue":{"href":"https://api.github.com/repos/owncloud/android/issues/1981"},"comments":{"href":"https://api.github.com/repos/owncloud/android/issues/1981/comments"},"review_comments":{"href":"https://api.github.com/repos/owncloud/android/pulls/1981/comments"},"review_comment":{"href":"https://api.github.com/repos/owncloud/android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/owncloud/android/pulls/1981/commits"},"statuses":{"href":"https://api.github.com/repos/owncloud/android/statuses/dccee8e0aa89e259ae1b93c2615725ead97aa2ec"}}}}
{"actor":{"display_login":"davigonz"}}