From patchwork Tue Jul 3 06:37:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Black X-Patchwork-Id: 942300 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41QPVy1NFyz9s1B for ; Wed, 11 Jul 2018 13:21:46 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41QPVx72DnzDrTn for ; Wed, 11 Jul 2018 13:21:45 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=linux.ibm.com (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com; envelope-from=daniel@linux.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41QPVg5WMBzDr1S for ; Wed, 11 Jul 2018 13:21:31 +1000 (AEST) Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6B3JGqB105881 for ; Tue, 10 Jul 2018 23:21:29 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2k56xbn80t-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 10 Jul 2018 23:21:29 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 11 Jul 2018 04:21:27 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 11 Jul 2018 04:21:24 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w6B3LNFn35651702 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 11 Jul 2018 03:21:23 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 11E2F11C054 for ; Wed, 11 Jul 2018 06:21:45 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B4B4211C04A for ; Wed, 11 Jul 2018 06:21:44 +0100 (BST) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP for ; Wed, 11 Jul 2018 06:21:44 +0100 (BST) Received: from volution.ozlabs.ibm.com (haven.au.ibm.com [9.192.254.114]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id 5F78AA0210 for ; Wed, 11 Jul 2018 13:21:21 +1000 (AEST) X-Sieve: CMU Sieve 2.3 X-Virus-Scanned: amavisd-new at linux.ibm.com X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-9999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled From: Daniel Black (by way of Daniel Black ) To: patchwork@lists.ozlabs.org Date: Tue, 3 Jul 2018 16:37:50 +1000 X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180703063751.12068-1-daniel@linux.ibm.com> References: <20180703063751.12068-1-daniel@linux.ibm.com> Resent-Date: Wed, 11 Jul 2018 13:21:20 +1000 Resent-From: Daniel Black Subject: [PATCH 2/3] Default dev settings, set host to empty (unix socket) on postgresql Resent-Message-ID: <20180711132120.1f610265@volution.ozlabs.ibm.com> Resent-To: patchwork@lists.ozlabs.org X-TM-AS-GCONF: 00 x-cbid: 18071103-4275-0000-0000-000002974273 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18071103-4276-0000-0000-0000379EDFC4 Message-Id: <20180703063751.12068-2-daniel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-07-10_09:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=948 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807110031 X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" An empty environment variable resulted in localhost, meaning posgresql connecting to domain sockets wasn't available. Signed-off-by: Daniel Black --- .travis.yml | 2 ++ patchwork/settings/dev.py | 1 + 2 files changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index d61b255..6576f07 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,7 @@ env: - PW_TEST_DB_TYPE=mysql PW_TEST_DB_USER=root global: - PW_TEST_DB_PASS="" + - PW_TEST_DB_HOST="localhost" matrix: include: @@ -33,6 +34,7 @@ matrix: - postgresql-client-10 env: - PGPORT=5433 + - PW_TEST_DB_HOST="" - PW_TEST_DB_PORT=5433 - PW_TEST_DB_TYPE=postgres - PW_TEST_DB_USER=travis diff --git a/patchwork/settings/dev.py b/patchwork/settings/dev.py index 7bdfdff..0f79b61 100644 --- a/patchwork/settings/dev.py +++ b/patchwork/settings/dev.py @@ -41,6 +41,7 @@ DATABASES = { if os.getenv('PW_TEST_DB_TYPE', None) == 'postgres': DATABASES['default']['ENGINE'] = 'django.db.backends.postgresql_psycopg2' + DATABASES['default']['HOST'] = os.getenv('PW_TEST_DB_HOST', '') EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'