Skip to content

Commit b2d1a15

Browse files
author
nicola
committed
setting up a test account
1 parent c8c1d36 commit b2d1a15

3 files changed

Lines changed: 17 additions & 4 deletions

File tree

‎test/identity-provider.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('Identity Provider', function () {
1818
this.timeout(10000)
1919

2020
var address = 'https://localhost:3457'
21-
21+
var host = 'localhost:3457'
2222
var ldpHttpsServer
2323
var ldp = ldnode.createServer({
2424
root: __dirname + '/resources',
@@ -58,7 +58,7 @@ describe('Identity Provider', function () {
5858
.expect(302, done)
5959
})
6060

61-
describe('Creating an account with POST', function () {
61+
describe('creating an account with POST', function () {
6262
it('should return 406 if username is not given', function (done) {
6363
server.post('/accounts')
6464
.expect(406, done)
@@ -72,7 +72,7 @@ describe('Identity Provider', function () {
7272
done(err)
7373
})
7474
})
75-
it('should not create an account if the account already exists', function (done) {
75+
it('should not create a WebID if it already exists', function (done) {
7676
server.post('/accounts')
7777
.send('username=nicola')
7878
.expect(201)
@@ -84,7 +84,7 @@ describe('Identity Provider', function () {
8484
.send('username=nicola')
8585
.expect(406)
8686
.end(function (err) {
87-
rm('accounts/nicola.localhost:3457')
87+
rm('accounts/nicola.' + host)
8888
done(err)
8989
})
9090
})
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<#0>
2+
<http://www.w3.org/ns/auth/acl#defaultForNew> <./> ;
3+
<http://www.w3.org/ns/auth/acl#agentClass> <http://xmlns.com/foaf/0.1/Agent> ;
4+
<http://www.w3.org/ns/auth/acl#mode> <http://www.w3.org/ns/auth/acl#Write>, <http://www.w3.org/ns/auth/acl#Read>, <http://www.w3.org/ns/auth/acl#Control>.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title></title>
5+
</head>
6+
<body>
7+
Hello!
8+
</body>
9+
</html>

0 commit comments

Comments
 (0)