Return-Path: X-Original-To: apmail-brooklyn-dev-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4AC5418D92 for ; Tue, 24 Nov 2015 15:51:23 +0000 (UTC) Received: (qmail 99354 invoked by uid 500); 24 Nov 2015 15:51:23 -0000 Delivered-To: apmail-brooklyn-dev-archive@brooklyn.apache.org Received: (qmail 99324 invoked by uid 500); 24 Nov 2015 15:51:23 -0000 Mailing-List: contact dev-help@brooklyn.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.incubator.apache.org Delivered-To: mailing list dev@brooklyn.incubator.apache.org Received: (qmail 99313 invoked by uid 99); 24 Nov 2015 15:51:22 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2015 15:51:22 +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 6D8A7C2972 for ; Tue, 24 Nov 2015 15:51:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.439 X-Spam-Level: X-Spam-Status: No, score=0.439 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.562, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 5xafuBG-fxEc for ; Tue, 24 Nov 2015 15:51:08 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 25F1C20CF5 for ; Tue, 24 Nov 2015 15:51:08 +0000 (UTC) Received: (qmail 99065 invoked by uid 99); 24 Nov 2015 15:51:08 -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; Tue, 24 Nov 2015 15:51:08 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B6106DFFB9; Tue, 24 Nov 2015 15:51:07 +0000 (UTC) From: geomacy To: dev@brooklyn.incubator.apache.org Reply-To: dev@brooklyn.incubator.apache.org Message-ID: Subject: [GitHub] incubator-brooklyn pull request: Updates to Test framework asserti... Content-Type: text/plain Date: Tue, 24 Nov 2015 15:51:07 +0000 (UTC) GitHub user geomacy opened a pull request: https://github.com/apache/incubator-brooklyn/pull/1066 Updates to Test framework assertions to support multiple assertion failures. At the moment in the test framework, as noted in [#1030](https://github.com/apache/incubator-brooklyn/pull/1030#issuecomment-158995925), when assertions fail it's not easy to see from the error text in the Activity log what went wrong. In particular if there are multiple assertions that failed this isn't apparent. This update merges the assertion code from SimpleShellCommand and TestFrameworkAssertions to give: - Updates test framework assertions so that multiple failures are described in the assertion failure message, such as ``` Assertions failed: exit code equals 1 stdout equals bogus stdout contains porkpie ``` - Supports generic 'actual' parameter, so we can avoid doing type coercions to String in order to check assertions. - Adds "hasTruthValue" condition. You can merge this pull request into a Git repository by running: $ git pull https://github.com/geomacy/incubator-brooklyn update-test-assertions-for-multiple-failures Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-brooklyn/pull/1066.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1066 ---- commit d3d120c5c0ed96231cbc7a4034ada8ae387cc9d1 Author: Geoff Macartney Date: 2015-11-24T09:05:08Z Updates to Test framework assertions to support multiple assertion failures. Merges the assertion code from SimpleShellCommand and TestFrameworkAssertions to give: Updates test framework assertions so that multiple failures are described in the assertion failure message, such as Assertions failed: exit code equals 1 stdout equals bogus stdout contains porkpie stderr Supports generic 'actual' parameter, so we can avoid doing type coercions to String in order to check assertions. Adds "hasTruthValue" condition. ---- --- 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. ---