{"action":"created","comment":{"url":"https://api.github.com/repos/superdesk/superdesk/pulls/comments/78024990","id":78024990,"diff_hunk":"@@ -1,82 +0,0 @@\n-# -*- coding: utf-8; -*-\n-#\n-# This file is part of Superdesk.\n-#\n-# Copyright 2013, 2014 Sourcefabric z.u. and contributors.\n-#\n-# For the full copyright and license information, please see the\n-# AUTHORS and LICENSE files distributed with this source code, or\n-# at https://www.sourcefabric.org/superdesk/license\n-\n-from flask import json\n-from superdesk.tests import TestCase, setup, setup_db_user, test_user, get_prefixed_url, add_to_context\n-from app import get_app\n-from unittest.mock import patch\n-from settings import LDAP_SERVER\n-from apps.ldap import ADAuth\n-\n-\n-def setup_auth_user(context, user=None):\n-    if LDAP_SERVER:\n-        setup_ad_user(context, user)\n-    else:\n-        setup_db_user(context, user)\n-\n-\n-def setup_ad_user(context, user):\n-    \"\"\"\n-    Setup the AD user for the LDAP authentication.\n-    The method patches the authenticate_and_fetch_profile method of the ADAuth class\n-    :param context: test context\n-    :param dict user: user\n-    \"\"\"\n-    ad_user = user or test_user\n-\n-    '''\n-    This is necessary as test_user is in Global scope and del doc['password'] removes the key from test_user and\n-    for the next scenario, auth_data = json.dumps({'username': ad_user['username'], 'password': ad_user['password']})\n-    will fail as password key is removed by del doc['password']\n-    '''","path":"server/test_factory.py","position":39,"original_position":39,"commit_id":"b04df1d5cab113be252e3f4b0b35022c42010759","original_commit_id":"b04df1d5cab113be252e3f4b0b35022c42010759","user":{"login":"naspeh","id":161289,"avatar_url":"https://avatars.githubusercontent.com/u/161289?v=3","gravatar_id":"","url":"https://api.github.com/users/naspeh","html_url":"https://github.com/naspeh","followers_url":"https://api.github.com/users/naspeh/followers","following_url":"https://api.github.com/users/naspeh/following{/other_user}","gists_url":"https://api.github.com/users/naspeh/gists{/gist_id}","starred_url":"https://api.github.com/users/naspeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naspeh/subscriptions","organizations_url":"https://api.github.com/users/naspeh/orgs","repos_url":"https://api.github.com/users/naspeh/repos","events_url":"https://api.github.com/users/naspeh/events{/privacy}","received_events_url":"https://api.github.com/users/naspeh/received_events","type":"User","site_admin":false},"body":"this file is deleted :)","created_at":"2016-09-08T15:05:10Z","updated_at":"2016-09-08T15:05:10Z","html_url":"https://github.com/superdesk/superdesk/pull/2288#discussion_r78024990","pull_request_url":"https://api.github.com/repos/superdesk/superdesk/pulls/2288","_links":{"self":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/comments/78024990"},"html":{"href":"https://github.com/superdesk/superdesk/pull/2288#discussion_r78024990"},"pull_request":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/2288"}}},"pull_request":{"url":"https://api.github.com/repos/superdesk/superdesk/pulls/2288","id":84442436,"html_url":"https://github.com/superdesk/superdesk/pull/2288","diff_url":"https://github.com/superdesk/superdesk/pull/2288.diff","patch_url":"https://github.com/superdesk/superdesk/pull/2288.patch","issue_url":"https://api.github.com/repos/superdesk/superdesk/issues/2288","number":2288,"state":"open","locked":false,"title":"Use TestCase from superdesk.tests","user":{"login":"naspeh","id":161289,"avatar_url":"https://avatars.githubusercontent.com/u/161289?v=3","gravatar_id":"","url":"https://api.github.com/users/naspeh","html_url":"https://github.com/naspeh","followers_url":"https://api.github.com/users/naspeh/followers","following_url":"https://api.github.com/users/naspeh/following{/other_user}","gists_url":"https://api.github.com/users/naspeh/gists{/gist_id}","starred_url":"https://api.github.com/users/naspeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naspeh/subscriptions","organizations_url":"https://api.github.com/users/naspeh/orgs","repos_url":"https://api.github.com/users/naspeh/repos","events_url":"https://api.github.com/users/naspeh/events{/privacy}","received_events_url":"https://api.github.com/users/naspeh/received_events","type":"User","site_admin":false},"body":"Regarding https://github.com/superdesk/superdesk-core/pull/566","created_at":"2016-09-08T09:23:49Z","updated_at":"2016-09-08T15:05:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"efc840792b3bcc04fea3651166599ba99084ba95","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/superdesk/superdesk/pulls/2288/commits","review_comments_url":"https://api.github.com/repos/superdesk/superdesk/pulls/2288/comments","review_comment_url":"https://api.github.com/repos/superdesk/superdesk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/superdesk/superdesk/issues/2288/comments","statuses_url":"https://api.github.com/repos/superdesk/superdesk/statuses/b04df1d5cab113be252e3f4b0b35022c42010759","head":{"label":"naspeh-sf:ntb","ref":"ntb","sha":"b04df1d5cab113be252e3f4b0b35022c42010759","user":{"login":"naspeh-sf","id":20908746,"avatar_url":"https://avatars.githubusercontent.com/u/20908746?v=3","gravatar_id":"","url":"https://api.github.com/users/naspeh-sf","html_url":"https://github.com/naspeh-sf","followers_url":"https://api.github.com/users/naspeh-sf/followers","following_url":"https://api.github.com/users/naspeh-sf/following{/other_user}","gists_url":"https://api.github.com/users/naspeh-sf/gists{/gist_id}","starred_url":"https://api.github.com/users/naspeh-sf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naspeh-sf/subscriptions","organizations_url":"https://api.github.com/users/naspeh-sf/orgs","repos_url":"https://api.github.com/users/naspeh-sf/repos","events_url":"https://api.github.com/users/naspeh-sf/events{/privacy}","received_events_url":"https://api.github.com/users/naspeh-sf/received_events","type":"Organization","site_admin":false},"repo":{"id":65215389,"name":"superdesk","full_name":"naspeh-sf/superdesk","owner":{"login":"naspeh-sf","id":20908746,"avatar_url":"https://avatars.githubusercontent.com/u/20908746?v=3","gravatar_id":"","url":"https://api.github.com/users/naspeh-sf","html_url":"https://github.com/naspeh-sf","followers_url":"https://api.github.com/users/naspeh-sf/followers","following_url":"https://api.github.com/users/naspeh-sf/following{/other_user}","gists_url":"https://api.github.com/users/naspeh-sf/gists{/gist_id}","starred_url":"https://api.github.com/users/naspeh-sf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naspeh-sf/subscriptions","organizations_url":"https://api.github.com/users/naspeh-sf/orgs","repos_url":"https://api.github.com/users/naspeh-sf/repos","events_url":"https://api.github.com/users/naspeh-sf/events{/privacy}","received_events_url":"https://api.github.com/users/naspeh-sf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/naspeh-sf/superdesk","description":"Superdesk is an end-to-end news creation, production, curation, distribution, and publishing platform.","fork":true,"url":"https://api.github.com/repos/naspeh-sf/superdesk","forks_url":"https://api.github.com/repos/naspeh-sf/superdesk/forks","keys_url":"https://api.github.com/repos/naspeh-sf/superdesk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/naspeh-sf/superdesk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/naspeh-sf/superdesk/teams","hooks_url":"https://api.github.com/repos/naspeh-sf/superdesk/hooks","issue_events_url":"https://api.github.com/repos/naspeh-sf/superdesk/issues/events{/number}","events_url":"https://api.github.com/repos/naspeh-sf/superdesk/events","assignees_url":"https://api.github.com/repos/naspeh-sf/superdesk/assignees{/user}","branches_url":"https://api.github.com/repos/naspeh-sf/superdesk/branches{/branch}","tags_url":"https://api.github.com/repos/naspeh-sf/superdesk/tags","blobs_url":"https://api.github.com/repos/naspeh-sf/superdesk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/naspeh-sf/superdesk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/naspeh-sf/superdesk/git/refs{/sha}","trees_url":"https://api.github.com/repos/naspeh-sf/superdesk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/naspeh-sf/superdesk/statuses/{sha}","languages_url":"https://api.github.com/repos/naspeh-sf/superdesk/languages","stargazers_url":"https://api.github.com/repos/naspeh-sf/superdesk/stargazers","contributors_url":"https://api.github.com/repos/naspeh-sf/superdesk/contributors","subscribers_url":"https://api.github.com/repos/naspeh-sf/superdesk/subscribers","subscription_url":"https://api.github.com/repos/naspeh-sf/superdesk/subscription","commits_url":"https://api.github.com/repos/naspeh-sf/superdesk/commits{/sha}","git_commits_url":"https://api.github.com/repos/naspeh-sf/superdesk/git/commits{/sha}","comments_url":"https://api.github.com/repos/naspeh-sf/superdesk/comments{/number}","issue_comment_url":"https://api.github.com/repos/naspeh-sf/superdesk/issues/comments{/number}","contents_url":"https://api.github.com/repos/naspeh-sf/superdesk/contents/{+path}","compare_url":"https://api.github.com/repos/naspeh-sf/superdesk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/naspeh-sf/superdesk/merges","archive_url":"https://api.github.com/repos/naspeh-sf/superdesk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/naspeh-sf/superdesk/downloads","issues_url":"https://api.github.com/repos/naspeh-sf/superdesk/issues{/number}","pulls_url":"https://api.github.com/repos/naspeh-sf/superdesk/pulls{/number}","milestones_url":"https://api.github.com/repos/naspeh-sf/superdesk/milestones{/number}","notifications_url":"https://api.github.com/repos/naspeh-sf/superdesk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/naspeh-sf/superdesk/labels{/name}","releases_url":"https://api.github.com/repos/naspeh-sf/superdesk/releases{/id}","deployments_url":"https://api.github.com/repos/naspeh-sf/superdesk/deployments","created_at":"2016-08-08T15:22:03Z","updated_at":"2016-08-08T15:22:04Z","pushed_at":"2016-09-08T09:21:30Z","git_url":"git://github.com/naspeh-sf/superdesk.git","ssh_url":"git@github.com:naspeh-sf/superdesk.git","clone_url":"https://github.com/naspeh-sf/superdesk.git","svn_url":"https://github.com/naspeh-sf/superdesk","homepage":"http://www.superdesk.org/","size":69740,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"superdesk:ntb","ref":"ntb","sha":"c50e04c82dfab98c92917bff9997060ca5f707e6","user":{"login":"superdesk","id":5527298,"avatar_url":"https://avatars.githubusercontent.com/u/5527298?v=3","gravatar_id":"","url":"https://api.github.com/users/superdesk","html_url":"https://github.com/superdesk","followers_url":"https://api.github.com/users/superdesk/followers","following_url":"https://api.github.com/users/superdesk/following{/other_user}","gists_url":"https://api.github.com/users/superdesk/gists{/gist_id}","starred_url":"https://api.github.com/users/superdesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superdesk/subscriptions","organizations_url":"https://api.github.com/users/superdesk/orgs","repos_url":"https://api.github.com/users/superdesk/repos","events_url":"https://api.github.com/users/superdesk/events{/privacy}","received_events_url":"https://api.github.com/users/superdesk/received_events","type":"Organization","site_admin":false},"repo":{"id":23570030,"name":"superdesk","full_name":"superdesk/superdesk","owner":{"login":"superdesk","id":5527298,"avatar_url":"https://avatars.githubusercontent.com/u/5527298?v=3","gravatar_id":"","url":"https://api.github.com/users/superdesk","html_url":"https://github.com/superdesk","followers_url":"https://api.github.com/users/superdesk/followers","following_url":"https://api.github.com/users/superdesk/following{/other_user}","gists_url":"https://api.github.com/users/superdesk/gists{/gist_id}","starred_url":"https://api.github.com/users/superdesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superdesk/subscriptions","organizations_url":"https://api.github.com/users/superdesk/orgs","repos_url":"https://api.github.com/users/superdesk/repos","events_url":"https://api.github.com/users/superdesk/events{/privacy}","received_events_url":"https://api.github.com/users/superdesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/superdesk/superdesk","description":"Superdesk is an end-to-end news creation, production, curation, distribution, and publishing platform.","fork":false,"url":"https://api.github.com/repos/superdesk/superdesk","forks_url":"https://api.github.com/repos/superdesk/superdesk/forks","keys_url":"https://api.github.com/repos/superdesk/superdesk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/superdesk/superdesk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/superdesk/superdesk/teams","hooks_url":"https://api.github.com/repos/superdesk/superdesk/hooks","issue_events_url":"https://api.github.com/repos/superdesk/superdesk/issues/events{/number}","events_url":"https://api.github.com/repos/superdesk/superdesk/events","assignees_url":"https://api.github.com/repos/superdesk/superdesk/assignees{/user}","branches_url":"https://api.github.com/repos/superdesk/superdesk/branches{/branch}","tags_url":"https://api.github.com/repos/superdesk/superdesk/tags","blobs_url":"https://api.github.com/repos/superdesk/superdesk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/superdesk/superdesk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/superdesk/superdesk/git/refs{/sha}","trees_url":"https://api.github.com/repos/superdesk/superdesk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/superdesk/superdesk/statuses/{sha}","languages_url":"https://api.github.com/repos/superdesk/superdesk/languages","stargazers_url":"https://api.github.com/repos/superdesk/superdesk/stargazers","contributors_url":"https://api.github.com/repos/superdesk/superdesk/contributors","subscribers_url":"https://api.github.com/repos/superdesk/superdesk/subscribers","subscription_url":"https://api.github.com/repos/superdesk/superdesk/subscription","commits_url":"https://api.github.com/repos/superdesk/superdesk/commits{/sha}","git_commits_url":"https://api.github.com/repos/superdesk/superdesk/git/commits{/sha}","comments_url":"https://api.github.com/repos/superdesk/superdesk/comments{/number}","issue_comment_url":"https://api.github.com/repos/superdesk/superdesk/issues/comments{/number}","contents_url":"https://api.github.com/repos/superdesk/superdesk/contents/{+path}","compare_url":"https://api.github.com/repos/superdesk/superdesk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/superdesk/superdesk/merges","archive_url":"https://api.github.com/repos/superdesk/superdesk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/superdesk/superdesk/downloads","issues_url":"https://api.github.com/repos/superdesk/superdesk/issues{/number}","pulls_url":"https://api.github.com/repos/superdesk/superdesk/pulls{/number}","milestones_url":"https://api.github.com/repos/superdesk/superdesk/milestones{/number}","notifications_url":"https://api.github.com/repos/superdesk/superdesk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/superdesk/superdesk/labels{/name}","releases_url":"https://api.github.com/repos/superdesk/superdesk/releases{/id}","deployments_url":"https://api.github.com/repos/superdesk/superdesk/deployments","created_at":"2014-09-02T07:56:17Z","updated_at":"2016-09-05T21:39:45Z","pushed_at":"2016-09-08T14:49:57Z","git_url":"git://github.com/superdesk/superdesk.git","ssh_url":"git@github.com:superdesk/superdesk.git","clone_url":"https://github.com/superdesk/superdesk.git","svn_url":"https://github.com/superdesk/superdesk","homepage":"http://www.superdesk.org/","size":74975,"stargazers_count":239,"watchers_count":239,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":67,"mirror_url":null,"open_issues_count":17,"forks":67,"open_issues":17,"watchers":239,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/2288"},"html":{"href":"https://github.com/superdesk/superdesk/pull/2288"},"issue":{"href":"https://api.github.com/repos/superdesk/superdesk/issues/2288"},"comments":{"href":"https://api.github.com/repos/superdesk/superdesk/issues/2288/comments"},"review_comments":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/2288/comments"},"review_comment":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/2288/commits"},"statuses":{"href":"https://api.github.com/repos/superdesk/superdesk/statuses/b04df1d5cab113be252e3f4b0b35022c42010759"}}}}
{"actor":{"display_login":"naspeh"}}