Skip to content

Commit 7a5bd73

Browse files
committed
updating test tests
1 parent ffbb13d commit 7a5bd73

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

test/acl.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -606,15 +606,15 @@ describe('ACL HTTP', function () {
606606
done()
607607
})
608608
})
609-
it('user2 should be able to modify test file', function (done) {
609+
it('user2 (with append permission) cannot use PUT to append', function (done) {
610610
var options = createOptions('/acl/append-acl/abc.ttl', 'user2')
611611
options.headers = {
612612
'content-type': 'text/turtle'
613613
}
614614
options.body = '<d> <e> <f> .\n'
615615
request.put(options, function (error, response, body) {
616616
assert.equal(error, null)
617-
assert.equal(response.statusCode, 201)
617+
assert.equal(response.statusCode, 403)
618618
done()
619619
})
620620
})
@@ -626,15 +626,15 @@ describe('ACL HTTP', function () {
626626
done()
627627
})
628628
})
629-
it('agent should be able to modify test file', function (done) {
629+
it('agent (with append permissions) should not PUT', function (done) {
630630
var options = createOptions('/acl/append-acl/abc.ttl')
631631
options.headers = {
632632
'content-type': 'text/turtle'
633633
}
634634
options.body = '<g> <h> <i> .\n'
635635
request.put(options, function (error, response, body) {
636636
assert.equal(error, null)
637-
assert.equal(response.statusCode, 201)
637+
assert.equal(response.statusCode, 401)
638638
done()
639639
})
640640
})
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<g> <h> <i> .
1+
<a> <b> <c> .

0 commit comments

Comments
 (0)