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 E7AE2200BB9 for ; Mon, 7 Nov 2016 12:25:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E6429160AF9; Mon, 7 Nov 2016 11:25:59 +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 3C17F160AEB for ; Mon, 7 Nov 2016 12:25:59 +0100 (CET) Received: (qmail 84307 invoked by uid 500); 7 Nov 2016 11:25:58 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 84296 invoked by uid 99); 7 Nov 2016 11:25:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2016 11:25:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 548DA2C0087 for ; Mon, 7 Nov 2016 11:25:58 +0000 (UTC) Date: Mon, 7 Nov 2016 11:25:58 +0000 (UTC) From: "Pravin Dsilva (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-18808) mocha-phantomjs tests do not run using PhantomJS version 2.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 07 Nov 2016 11:26:00 -0000 [ https://issues.apache.org/jira/browse/AMBARI-18808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pravin Dsilva updated AMBARI-18808: ----------------------------------- Attachment: AMBARI-18808.patch > mocha-phantomjs tests do not run using PhantomJS version 2.1.1 > -------------------------------------------------------------- > > Key: AMBARI-18808 > URL: https://issues.apache.org/jira/browse/AMBARI-18808 > Project: Ambari > Issue Type: Bug > Components: ambari-web > Affects Versions: 2.4.0 > Environment: x86, ppc64le > Red Hat Enterprise Linux Server release 7.2 (Maipo) > Reporter: Pravin Dsilva > Priority: Minor > Attachments: AMBARI-18808.patch > > > We are trying to build Ambari on ppc64le architecture. The current working version for PhantomJS on ppc64le is version 2.1.1. > For running mocha-phantomjs tests using PhantomJS 2.1.1 the following version changes have been made in ambari-web/package.json: > --- a/ambari-web/package.json > +++ b/ambari-web/package.json > @@ -19,8 +19,8 @@ > }, > "devDependencies": { > -- "phantomjs": "^1.9.2", > -- "mocha":"1.9.0", > -- "mocha-phantomjs": "~3.1.6", > + "phantomjs": "2.1.1", > + "mocha":"1.21.5", > + "mocha-phantomjs": "~4.1.0", > On running the tests, the below error is seen: > mocha-phantomjs -R min public/test/test.html > CLDR.pluralForm not found. Em.I18n will not support count-based inflection. > STATEMANAGER: Entering root > STATEMANAGER: Sending event 'navigateAway' to state root. > STATEMANAGER: Sending event 'unroutePath' to state root. > STATEMANAGER: Sending event 'routePath' to state root. > STATEMANAGER: Entering root.index > STATEMANAGER: Entering root.login > STATEMANAGER: Entering root > Error loading resource file:///img/logo-white.png (203). Details: Error opening /img/logo-white.png: No such file or directory > Likely due to external resource loading and timing, your tests require calling `window.initMochaPhantomJS()` before calling any mocha setup functions. See https://github.com/nathanboktae/mocha-phantomjs-core/issues/12 -- This message was sent by Atlassian JIRA (v6.3.4#6332)