Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1389E200C76 for ; Sat, 13 May 2017 21:04:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 120B6160BB2; Sat, 13 May 2017 19:04:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 588B1160BBB for ; Sat, 13 May 2017 21:04:10 +0200 (CEST) Received: (qmail 56696 invoked by uid 500); 13 May 2017 19:04:09 -0000 Mailing-List: contact commits-help@airflow.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airflow.incubator.apache.org Delivered-To: mailing list commits@airflow.incubator.apache.org Received: (qmail 56686 invoked by uid 99); 13 May 2017 19:04:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 May 2017 19:04:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 11833CA847 for ; Sat, 13 May 2017 19:04:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id dgn74FqkU6kS for ; Sat, 13 May 2017 19:04:07 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 8A8715F520 for ; Sat, 13 May 2017 19:04:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id A287FE0662 for ; Sat, 13 May 2017 19:04:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id DF70A24015 for ; Sat, 13 May 2017 19:04:04 +0000 (UTC) Date: Sat, 13 May 2017 19:04:04 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AIRFLOW-1180) Fix flask-wtf version in setup.py for test_csrf_rejection MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 13 May 2017 19:04:11 -0000 [ https://issues.apache.org/jira/browse/AIRFLOW-1180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16009465#comment-16009465 ] ASF subversion and git services commented on AIRFLOW-1180: ---------------------------------------------------------- Commit ae61987945774ea2f9df53eaedac87fb378234a4 in incubator-airflow's branch refs/heads/master from [~sekikn] [ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=ae61987 ] [AIRFLOW-1180] Fix flask-wtf version for test_csrf_rejection For now, SecurityTests.test_csrf_rejection fails because flask-wtf version specified in setup.py is too old. This PR fixes it. Closes #2280 from sekikn/AIRFLOW-1180 > Fix flask-wtf version in setup.py for test_csrf_rejection > --------------------------------------------------------- > > Key: AIRFLOW-1180 > URL: https://issues.apache.org/jira/browse/AIRFLOW-1180 > Project: Apache Airflow > Issue Type: Bug > Reporter: Kengo Seki > Assignee: Kengo Seki > > I locally ran the core tests and got the following error: > {code} > FAIL: test_csrf_rejection (tests.core.SecurityTests) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/home/vagrant/incubator-airflow/tests/core.py", line 1530, in test_csrf_rejection > self.assertIn('CSRF token is missing', response.data.decode('utf-8')) > AssertionError: 'CSRF token is missing' not found in u'\n400 Bad Request\n

Bad Request

\n

CSRF token missing or incorrect.

\n' > {code} > [The expected string is added from Flask-WTF v0.14|https://github.com/lepture/flask-wtf/issues/239], but its version specified in setup.py is v0.12. So this test failed. -- This message was sent by Atlassian JIRA (v6.3.15#6346)