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 D0D88200C33 for ; Sat, 11 Mar 2017 12:48:23 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CF601160B7B; Sat, 11 Mar 2017 11:48:23 +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 1ACCA160B5D for ; Sat, 11 Mar 2017 12:48:22 +0100 (CET) Received: (qmail 10346 invoked by uid 500); 11 Mar 2017 11:48:22 -0000 Mailing-List: contact dev-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list dev@brooklyn.apache.org Received: (qmail 10334 invoked by uid 99); 11 Mar 2017 11:48:21 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Mar 2017 11:48:21 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 73452DFE1E; Sat, 11 Mar 2017 11:48:21 +0000 (UTC) From: neykov To: dev@brooklyn.apache.org Reply-To: dev@brooklyn.apache.org References: In-Reply-To: Subject: =?utf-8?q?=5BGitHub=5D_brooklyn-server_issue_=23589=3A_yaml-test_assertions=3A_fix_use_of_=E2=80=9Cmatches=E2=80=9D?= Content-Type: text/plain Message-Id: <20170311114821.73452DFE1E@git1-us-west.apache.org> Date: Sat, 11 Mar 2017 11:48:21 +0000 (UTC) archived-at: Sat, 11 Mar 2017 11:48:24 -0000 Github user neykov commented on the issue: https://github.com/apache/brooklyn-server/pull/589 +1 for `containsMatch` (or just `contains`) with `MULTILINE` + `DOTALL`. It covers all use cases: * simple contains: `xxx` * match all: `^.*xxx.*$` * match single line: `(^|\n)xxx(\n|$)` * match across lines: `expected value:\n\txxx` Most of our tests are the "simple contains" case anyway. I think it's still worth changing `matches` to `MULTILINE` + `DOTALL`. For existing single-line tests there's no change and for multi-line results it's more natural (much like the IDE search works). --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---