31 Commits

Author SHA1 Message Date
Joachim Van Herwegen
dd3fb63d18 test: Update LdpHandlerWithoutAuth to use fetch for tests 2021-05-04 11:27:13 +02:00
Ruben Verborgh
87752ddf20 feat: Support writer prefixes.
Closes https://github.com/solid/community-server/issues/470
2021-01-06 11:36:21 +01:00
Ruben Verborgh
f9a20799eb refactor: Use declarations style for functions. 2021-01-06 11:24:43 +01:00
Ruben Verborgh
d9f18f813e chore: Extend linting to .js files. 2020-12-14 10:08:31 +00:00
Ruben Verborgh
14023e4c0c chore: Add eslint:recommended linter rules. 2020-12-14 10:08:31 +00:00
Ruben Verborgh
9c933fd2d4 chore: Build to dist folder.
Closes https://github.com/solid/community-server/issues/136
2020-12-08 09:30:18 +01:00
Joachim Van Herwegen
9653deec7f feat: add implementations of pod-related interfaces 2020-12-02 13:01:38 +01:00
Joachim Van Herwegen
39745ccf22 feat: create PodHttpHandler with default interfaces 2020-12-02 13:01:38 +01:00
Ruben Verborgh
0099d1d5dc feat: Implement the Solid WebSocket protocol. 2020-11-20 16:14:53 +01:00
Ruben Verborgh
59487410b1 feat: Add WebSocket functionality to server. 2020-11-20 15:39:37 +01:00
Ruben Verborgh
fe870f073a chore: Enable/disable Docker testing with a flag. 2020-11-04 10:31:54 +01:00
Joachim Van Herwegen
5287cd1e41 feat: Create a RoutingResourceStore that takes routing rules 2020-11-02 15:41:32 +01:00
Joachim Van Herwegen
9f7c246104 feat: Support SPARQL store backends 2020-11-02 15:04:05 +01:00
Ruben Verborgh
4b4f737013 chore: Use Jest recommended linting. 2020-11-02 10:03:18 +01:00
Ruben Verborgh
0476ba8069
chore(deps): update all dependencies (#293) 2020-11-02 09:08:14 +01:00
Joachim Van Herwegen
e349e04119 refactor: Apply naming-convention rules 2020-09-17 11:55:49 +02:00
Joachim Van Herwegen
9657fbafb1 refactor: Update eslint related dependencies 2020-09-17 11:55:49 +02:00
Joachim Van Herwegen
85df2e5d7f refactor: Make URI constants consistent 2020-09-16 13:18:58 +02:00
Joachim Van Herwegen
8d3979372b refactor: Streamline RepresentationMetadata interface 2020-09-16 12:10:42 +02:00
Joachim Van Herwegen
b1991cb08a
feat: More integration tests and test configs (#154)
* add todo

* Added configurations folder

* Added config to index

* changed /bin/server to use configfiles

* initiate acl with Setup component

* add last changes

* reset serverconfig

* move authenticatedLdpHandler configs to config files

* failed to read testss

* failed to read testss

* removed import part

* Fix merge conflicts

* add first FileResTests

* fix: fix fileresourcestore metadata error

* fix unit tests

* remove test files

* Added test and changed callFile

* Fix: metadata file error in FileResourceStore

* fix: ensure full test coverage

* added tests

* Fix get tests

* added testfiles

* changed config to use PasstrueStore

* to continue work on

* refactor fileresourcestore config

* refactor tests

* fix content-types, update tests

* replace sync methods with async methods

* move acl function to util

* added testfiles for Fileserver with acl

* update tests

* add first acl filestore test

* refactor

* add resource mapper

* refactor config files

* add more fileresourcestore acl tests

* add locking resource store test files

* move file mapping logic to resourcemapper

* added beforeAll for a permanent file in Auht tests

* make filestore dependent of resource mapper

* moved configs to test/configs

* set default contenttype

* refactor fileresourcemapper

* fix map function

* refactor

* fixed foldercreationtest

* changed some tests so the files are cleaned up when done testing

* add normalized parser

* Auhtenticationtests clean up acl file

* refactor unit test

* lost changes added again

* fix metadata problem

* refactor names

* reverse change

* add getters

* configs and start util

* add comments

* add comments, move code

* added acl helper and changed tests

* linter 7.7.0 -> 7.0.0

* moved test/tesfiles -> test/assets

* removed configs/**/*.ts from tsconfig.json

* Temporary changed threshold so cli test is ignored and commiting goes easier, will revert later

* added FileResourceStore to index

* Changed imports

* Changed imports for all configs

* Removed comment

* Changed names of configs

* added 'Config' to name and removed comment

* removed unused testfile and added testfile 0

* changed beforeAll to just copy permanent file

* change text/turtle to constant

* fix converter issue

* getHandler -> getHttpHandler, and updates to config

* removed ','

* removed trailing /

* changed imports for index.d.js problem

* removed duplicate file and added line that got removed in mergeconflicts

* add jest global teardown

* add ignore for CliRunner

* add changes

* fix copyfile error

* remove unused testfiles

* adding test with image

* add first util functions

* relative paths to absolute paths

* added 3 FileStoreTests

* more refactoring

* more absolute paths

* fix mkdir path

* added test

* add util for easy configs

* add comments

* added some testhelpers and refactor first test

* fix converter test error

* refactor FileResTests

* solved failing test because new converters

* removed afterAll()

* removed setAcl from util

* removed config from Authorization.test.ts

* changed strange linting

* refactored AuthenticatedFileResourceStore tests

* fixed unclear root variable

* fix: Use absolute test paths

* Mock fs correctly and remove teardown

* Clean up after tests

Co-authored-by: freyavs <freyavanspeybroeck@outlook.com>
Co-authored-by: thdossch <dossche.thor@gmail.com>
Co-authored-by: Freya <56410697+freyavs@users.noreply.github.com>
Co-authored-by: thdossch <49074469+thdossch@users.noreply.github.com>
Co-authored-by: Ruben Verborgh <ruben@verborgh.org>
2020-09-14 16:06:27 +02:00
Ruben Taelman
0ed1ae539d lint: enable no-extraneous-dependencies rule
This also uses the new `import type` syntax for importing rdf-js types,
as it is required for making this new linter rule pass.

Closes #132
2020-09-07 08:46:08 +02:00
Ruben Taelman
48740e5cba style: improve linting of imports
A new plugin is used that offers autofixing capabilities.
2020-08-26 13:20:19 +02:00
smessie
381dae42f6
feat: Add file based ResourceStore (#52)
* feat: Add file resource store

* test: Write some tests for FileResourceStore

* fix: Reformat code and fix various small things from reviews

* fix: Change constants to just be the corresponding URL

* fix: Remove extra unnecessary wrap in a Promise

* fix: Write some more tests and fix related bugs

* fix: Use old way to import fs promises to support older Node versions

* refactor: Refactor code and tests

* refactor: Refactor and better document code

* fix: Change comparison with undefined by typeof check

* fix: Invert typeof check
2020-08-18 14:19:25 +02:00
Joachim Van Herwegen
aaba113563 fix: Set max-len to 120 2020-07-24 15:10:34 +02:00
Joachim Van Herwegen
d983fca8f5 feat: add simple permissions related handlers 2020-06-24 14:08:56 +02:00
Joachim Van Herwegen
d4f70d9c59 feat: add simple body parser 2020-06-17 10:10:32 +02:00
Joachim Van Herwegen
a07f440ab6 fix: update eslint settings 2020-06-05 11:28:28 +02:00
Joachim Van Herwegen
14cfe75865 fix: remove prettier
Certain prettier rules were conflicting with those of eslint-config-es,
so it will be removed until we discover cases where it would actually be needed,
since most of it seems to already be covered.
2020-05-25 12:06:30 +02:00
Joachim Van Herwegen
f8e136cadb refactor: support inrupt coding standards 2020-05-25 10:07:38 +02:00
Joachim Van Herwegen
5def53180c Created the initial interfaces based on the architecture document 2020-05-19 12:22:25 +02:00
Joachim Van Herwegen
b949b6cf5e Initial configuration 2020-05-15 11:07:10 +02:00