commit/galaxy-central: carlfeberhard: QA: update anon API tests due to d46493c
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/5a6b80f9a287/ Changeset: 5a6b80f9a287 User: carlfeberhard Date: 2014-04-11 16:20:09 Summary: QA: update anon API tests due to d46493c Affected #: 1 file diff -r ac7fc8911184064056255224711031153f9421db -r 5a6b80f9a287c05a4138f5252a7c92d7f6f09f23 test/casperjs/api-anon-history-permission-tests.js --- a/test/casperjs/api-anon-history-permission-tests.js +++ b/test/casperjs/api-anon-history-permission-tests.js @@ -82,13 +82,11 @@ 'hda show worked' ); this.test.comment( 'Attempting to copy an accessible hda (default is accessible)' - + ' fails from accessible history (currently login is required): ' + history.name ); - this.api.assertRaises( function(){ - this.api.hdas.create( this.api.histories.show( 'current' ).id, { - source : 'hda', - content : hdas[0].id - }); - }, 403, 'API authentication required for this request', 'update authentication required' ); + + ' should work from accessible history: ' + history.name ); + this.api.hdas.create( this.api.histories.show( 'current' ).id, { + source : 'hda', + content : hdas[0].id + }); } function testAnonReadFunctionsOnInaccessible( history, hdas ){ @@ -121,7 +119,7 @@ content : hdas[0].id }); this.debug( this.jsonStr( returned ) ); - }, 403, 'API authentication required for this request', 'hda copy from failed with error' ); + }, 403, 'History is not accessible to the current user', 'hda copy from failed with error' ); } @@ -158,7 +156,7 @@ // should error before it checks the id content : 'bler' }); - }, 403, 'API authentication required for this request', 'hda copy to failed' ); + }, 403, 'Must be logged in to manage Galaxy histories', 'hda copy to failed' ); } function testAnonInaccessible( history, hdas ){ Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org