Skip to content

Commit

Permalink
Test of returning 404 if accessing unpublished dataset/entity list
Browse files Browse the repository at this point in the history
  • Loading branch information
ktuite committed Sep 13, 2023
1 parent 211dd59 commit d0e2f8c
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 d0e2f8c

Please sign in to comment.