Skip to content

Commit

Permalink
Merge pull request #487 from carlfeberhard/testing
Browse files Browse the repository at this point in the history
Testing, casperjs: fix the hda api show assertion in the anon tests
  • Loading branch information
dannon committed Jul 22, 2015
2 parents 96efac8 + d28f1c7 commit 95f63e7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/casperjs/api-anon-history-permission-tests.js
Expand Up @@ -106,9 +106,11 @@ spaceghost.test.begin( 'Test permissions for accessible, published, and inaccess
this.api.assertRaises( function(){
this.api.hdas.index( history.id );
}, 403, 'History is not accessible by user', 'hda index failed with error' );
this.api.assertRaises( function(){
this.api.hdas.show( history.id, hdas[0].id );
}, 403, 'History is not accessible by user', 'hda show failed with error' );
// 150721: accessible hdas in an inaccessible history are considered accessible (since api/datasets does)
// this.api.assertRaises( function(){
// this.api.hdas.show( history.id, hdas[0].id );
// }, 403, 'History is not accessible by user', 'hda show failed with error' );
this.test.assertTrue( utils.isObject( this.api.hdas.show( history.id, hdas[0].id ) ) );

this.test.comment( 'Attempting to copy an accessible hda (default is accessible)'
+ ' from an inaccessible history should fail for: ' + history.name );
Expand Down

0 comments on commit 95f63e7

Please sign in to comment.