ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaimin Jetly <jai...@hortonworks.com>
Subject Re: ambari-web unit test broken
Date Wed, 14 Jan 2015 20:28:02 GMT
This issue should be fixed after AMBARI-9132
<https://issues.apache.org/jira/browse/AMBARI-9132> commit.


Thanks

Jaimin Jetly




On Wed, Jan 14, 2015 at 12:08 PM, Jaimin Jetly <jaimin@hortonworks.com>
wrote:

> I am able to run ambari-web unit test successfully after reverting
> AMBARI-9127 <https://issues.apache.org/jira/browse/AMBARI-9127>. I have
> reverted AMBARI-9127. So the first error should not be seen.
>
> Second mentioned error does happen when *mvn clean test* command is
> executed.
>
> Interestingly the native mocha command works fine
> *mocha-phantomjs -R min public/test/test.html*
>
>   5190 tests complete (7 seconds)
>
>   60 tests pending
>
> Thanks
>
> Jaimin Jetly
>
> On Wed, Jan 14, 2015 at 12:03 PM, Jonathan Hurley <jhurley@hortonworks.com
> > wrote:
>
>> I am sync’d to head currently and I do see the
>>
>>      [exec] TypeError: 'undefined' is not an object (evaluating
>> 'this.get('controller.content.clientComponents').rejectProperty’)
>>
>> error, so it’s not just you.
>>
>>
>> https://builds.apache.org/view/All/job/Ambari-trunk-Commit/1486/consoleFull
>>
>> b.a.o also reports this error. The build is broken currently in
>> ambari-web.
>>
>>
>> On Jan 14, 2015, at 2:42 PM, Alejandro Fernandez <
>> afernandez@hortonworks.com> wrote:
>>
>> > Is anyone else seeing this? I get the error below, and after reverting
>> > AMBARI-9127, I get a second error.
>> >
>> > mvn clean test
>> > ambari-web unit tests:
>> >     [exec]
>> >     [exec] > Ambari@1.7.0 test
>> >
>> /Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-web
>> >     [exec] > mocha-phantomjs -R min public/test/test.html
>> >     [exec]
>> >     [exec] CLDR.pluralForm not found. Em.I18n will not support
>> count-based
>> > inflection.
>> >     [exec] Trace: Entering db:getAuthenticated function
>> >     [exec] STATEMANAGER: Entering root
>> >     [exec] TRACE: Entering db:getUser function
>> >     [exec] TRACE: Entering db:getupgradeId
>> >     [exec] TRACE: Entering db:getupgradeVersion
>> >     [exec] TRACE: Entering db:getcurrentVersion
>> >     [exec] STATEMANAGER: Sending event 'navigateAway' to state root.
>> >     [exec] STATEMANAGER: Sending event 'unroutePath' to state root.
>> >     [exec] STATEMANAGER: Sending event 'routePath' to state root.
>> >     [exec] STATEMANAGER: Entering root.index
>> >     [exec] STATEMANAGER: Entering root.login
>> >     [exec] Trace: Entering db:getAuthenticated function
>> >     [exec] /login:connectOutlet
>> >     [exec] Trace: Entering db:getLoginName function
>> >     [exec] Trace: Entering db:getWizardCurrentStep function for
>> installer
>> >     [exec] getWizardCurrentStep: loginName=, currentStep=undefined
>> >     [exec] returning currentStep=0
>> >     [exec] currentStep is: 0
>> >     [exec] Trace: Entering db:getAuthenticated function
>> >     [exec] authenticated is: [object Object]
>> >     [exec] failed on loading cluster name
>> >     [exec] STATEMANAGER: Entering root
>> >     [exec] TRACE: Entering db:getUser function
>> >     [exec] TRACE: In success function for the loadClusterConfigSuccess;
>> > url is  /cluster/configurations
>> >     [exec] TypeError: 'undefined' is not an object (evaluating
>> > 'this.get('controller.content.clientComponents').rejectProperty')
>> >     [exec]
>> >     [exec]
>> >
>> file:///Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-web/public/javascripts/app.js:164285
>> >     [exec]
>> >
>> file:///Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-web/public/test/javascripts/test.js:55609
>> >     [exec]
>> >
>> file:///Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-web/node_modules/mocha/mocha.js:881
>> >     [exec]
>> >
>> file:///Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-web/public/test/javascripts/test.js:55629
>> >     [exec]
>> >
>> file:///Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-web/node_modules/mocha/mocha.js:881
>> >     [exec]
>> >
>> file:///Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-web/public/test/javascripts/test.js:56006
>> >     [exec]
>> >
>> file:///Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-web/public/javascripts/vendor.js:47
>> >     [exec]
>> >
>> file:///Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-web/public/javascripts/vendor.js:56
>> >     [exec]
>> >
>> file:///Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-web/public/test/tests.js:263
>> >     [exec]
>> >
>> file:///Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-web/node_modules/mocha/mocha.js:881
>> >     [exec]
>> >
>> file:///Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-web/public/test/tests.js:264
>> >     [exec]
>> >
>> file:///Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-web/node_modules/mocha/mocha.js:881
>> >     [exec]
>> >
>> file:///Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-web/public/test/tests.js:268
>> >     [exec] npm ERR! Test failed.  See above for more details.
>> >     [exec] npm ERR! not ok code 0
>> >     [exec] Error loading resource
>> >
>> http://localhost:3333/api/v1/clusters/testName?fields=Clusters/desired_configs
>> > (5).
>> > Details: Operation canceled
>> >
>> > mvn clean test
>> > ambari-web unit tests:
>> >     [exec]
>> >     [exec] > Ambari@1.7.0 test
>> >
>> /Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-web
>> >     [exec] > mocha-phantomjs -R min public/test/test.html
>> >     [exec]
>> >     [exec] CLDR.pluralForm not found. Em.I18n will not support
>> count-based
>> > inflection.
>> >     [exec] doing a cleanup
>> >     [exec] TRACE: Entering db:cleanup function
>> >     [exec] In cleanup./..
>> >     [exec] Trace: Entering db:getAuthenticated function
>> >     [exec] STATEMANAGER: Entering root
>> >     [exec] TRACE: Entering db:getUser function
>> >     [exec] TRACE: Entering db:getupgradeId
>> >     [exec] TRACE: Entering db:getupgradeVersion
>> >     [exec] TRACE: Entering db:getcurrentVersion
>> >     [exec] STATEMANAGER: Sending event 'navigateAway' to state root.
>> >     [exec] STATEMANAGER: Sending event 'unroutePath' to state root.
>> >     [exec] STATEMANAGER: Sending event 'routePath' to state root.
>> >     [exec] STATEMANAGER: Entering root.index
>> >     [exec] STATEMANAGER: Entering root.login
>> >     [exec] Trace: Entering db:getAuthenticated function
>> >     [exec] /login:connectOutlet
>> >     [exec] Trace: Entering db:getLoginName function
>> >     [exec] Trace: Entering db:getWizardCurrentStep function for
>> installer
>> >     [exec] getWizardCurrentStep: loginName=, currentStep=undefined
>> >     [exec] returning currentStep=0
>> >     [exec] currentStep is: 0
>> >     [exec] Trace: Entering db:getAuthenticated function
>> >     [exec] authenticated is: [object Object]
>> >     [exec] failed on loading cluster name
>> >     [exec] STATEMANAGER: Entering root
>> >     [exec] TRACE: Entering db:getUser function
>> >     [exec] TRACE: In success function for the loadClusterConfigSuccess;
>> > url is  /cluster/configurations
>> >     [exec] TypeError: 'undefined' is not a function (evaluating
>> > 'mocha.useColors(config.useColors)')
>> >     [exec]
>> >     [exec]   phantomjs://webpage.evaluate():2
>> >     [exec]   phantomjs://webpage.evaluate():10
>> >     [exec]   phantomjs://webpage.evaluate():10
>> >     [exec] Error loading resource
>> >
>> http://localhost:3333/api/v1/clusters/testName?fields=Clusters/desired_configs
>> > (5). Details: Operation canceled
>> >     [exec] npm ERR! Test failed.  See above for more details.
>> >     [exec] npm ERR! not ok code 0
>> >
>> > Thanks,
>> > Alejandro
>> >
>> > --
>> > [image: Hortonworks, Inc.] <http://hortonworks.com/> *Alejandro
>> Fernandez
>> > <afernandez@hortonworks.com>**Engineering - Ambari*
>> > 786.303.7149
>> >
>> > --
>> > CONFIDENTIALITY NOTICE
>> > NOTICE: This message is intended for the use of the individual or
>> entity to
>> > which it is addressed and may contain information that is confidential,
>> > privileged and exempt from disclosure under applicable law. If the
>> reader
>> > of this message is not the intended recipient, you are hereby notified
>> that
>> > any printing, copying, dissemination, distribution, disclosure or
>> > forwarding of this communication is strictly prohibited. If you have
>> > received this communication in error, please contact the sender
>> immediately
>> > and delete it from your system. Thank You.
>>
>>
>> --
>> CONFIDENTIALITY NOTICE
>> NOTICE: This message is intended for the use of the individual or entity
>> to
>> which it is addressed and may contain information that is confidential,
>> privileged and exempt from disclosure under applicable law. If the reader
>> of this message is not the intended recipient, you are hereby notified
>> that
>> any printing, copying, dissemination, distribution, disclosure or
>> forwarding of this communication is strictly prohibited. If you have
>> received this communication in error, please contact the sender
>> immediately
>> and delete it from your system. Thank You.
>>
>
>

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message