Skip to content

Commit d11aed7

Browse files
committed
Enable WebID-TLS integration tests
1 parent 2cfa32c commit d11aed7

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ jobs:
4949
uses: actions/setup-node@v1
5050
with:
5151
node-version: ${{ matrix.node-version }}
52+
- name: Setup hosts for TLS tests
53+
run: |
54+
echo "127.0.0.1 tim.localhost" | sudo tee -a /etc/hosts
55+
echo "127.0.0.1 nicola.localhost" | sudo tee -a /etc/hosts
5256
- run: npm ci
5357
# test code
5458
- run: npm run lint

test/integration/acl-tls-test.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const userCredentials = {
6464
// a webid-tls client certificate can still use their certificate (and not a
6565
// username/password pair or other login method) to "bridge" from webid-tls to
6666
// webid-oidc.
67-
describe.skip('ACL with WebID+TLS', function () {
67+
describe('ACL with WebID+TLS', function () {
6868
let ldpHttpsServer
6969
const serverConfig = {
7070
root: rootPath,
@@ -131,7 +131,7 @@ describe.skip('ACL with WebID+TLS', function () {
131131
})
132132
})
133133

134-
it.skip('should return a 401 and WWW-Authenticate header without credentials', (done) => {
134+
it('should return a 401 and WWW-Authenticate header without credentials', (done) => {
135135
rm('.acl')
136136
const options = {
137137
url: address + '/acl-tls/no-acl/',
@@ -568,7 +568,7 @@ describe.skip('ACL with WebID+TLS', function () {
568568
})
569569
})
570570

571-
describe.skip('Glob', function () {
571+
describe('Glob', function () {
572572
it('user2 should be able to send glob request', function (done) {
573573
const options = createOptions(globFile, 'user2')
574574
request.get(options, function (error, response, body) {
@@ -613,7 +613,7 @@ describe.skip('ACL with WebID+TLS', function () {
613613
done()
614614
})
615615
})
616-
it.skip('user1 should be able to PATCH a resource', function (done) {
616+
it('user1 should be able to PATCH a resource', function (done) {
617617
const options = createOptions('/acl-tls/append-inherited/test.ttl', 'user1')
618618
options.headers = {
619619
'content-type': 'application/sparql-update'
@@ -943,7 +943,7 @@ describe.skip('ACL with WebID+TLS', function () {
943943
// })
944944
})
945945

946-
describe.skip('Cleanup', function () {
946+
describe('Cleanup', function () {
947947
it('should remove all files and dirs created', function (done) {
948948
try {
949949
// must remove the ACLs in sync

0 commit comments

Comments
 (0)