Skip to content

Commit

Permalink
Test of returning 404 if accessing unpublished dataset/entity list (#974
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ktuite authored Sep 13, 2023
1 parent 211dd59 commit 2cf7c27
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/integration/api/datasets.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,15 @@ describe('datasets and entities', () => {

}));

it('should reject if dataset is not published', testService((service) =>
service.login('alice', (asAlice) =>
asAlice.post('/v1/projects/1/forms')
.send(testData.forms.simpleEntity)
.set('Content-Type', 'application/xml')
.expect(200)
.then(() => asAlice.get('/v1/projects/1/datasets/people')
.expect(404)))));

it('should not return duplicate linkedForms', testService(async (service) => {
const asAlice = await service.login('alice');

Expand Down

0 comments on commit 2cf7c27

Please sign in to comment.