33 Commits

Author SHA1 Message Date
Joachim Van Herwegen
4e4d7a7a39 feat: Integrate MetadataSerializer 2020-11-06 09:08:00 +01:00
Joachim Van Herwegen
840965cdef refactor: Create multiple composite handlers 2020-11-06 09:08:00 +01:00
Joachim Van Herwegen
1260c5c14e feat: Store status, body and metadata in ResponseDescription 2020-11-06 09:08:00 +01:00
Joachim Van Herwegen
e8fdcb0ad0 refactor: Split off ErrorResponseWriter 2020-11-06 09:08:00 +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
Joachim Van Herwegen
03c64e5617 refactor: Remove file and in memory stores 2020-10-16 09:35:48 +02:00
Joachim Van Herwegen
b896004bac feat: Create InMemoryDataAccessor 2020-10-14 11:32:27 +02:00
Joachim Van Herwegen
9b26bbef2d feat: Add DataAccessorBasedStore integration 2020-10-14 11:32:27 +02:00
Joachim Van Herwegen
31844a4f40 feat: Integrate MetadataHandler 2020-10-09 12:12:34 +02:00
Joachim Van Herwegen
7dcb3eaa84 feat: Create MetadataHandler 2020-10-09 12:12:34 +02:00
smessie
0644f8d245
feat: Implement HEAD request support
* feat: Implement HEAD request support

* feat: Integrate HEAD handler with other code

* fix: Improve test by using arrayifyStream

* fix: Use Promise chaining

* refactor: Unwrap destroy stream promise
2020-10-06 14:13:37 +02:00
smessie
d8e6c08859 refactor: Remove Turtle to Quad and Quad to Turtle converters 2020-09-30 09:12:42 +02:00
Ruben Taelman
aaa49219dc feat: configure logger during setup 2020-09-23 10:04:31 +02:00
Ruben Taelman
1dd140ab61 refactor: Remove RuntimeConfig in favor of config variables, Closes #106 2020-09-15 08:52:23 +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
Freya
383da24601
feat: Implement resource mapper for the file resource store (#142)
* move file mapping logic to resourcemapper

* make filestore dependent of resource mapper

* set default contenttype

* refactor fileresourcemapper

* fix map function

* refactor

* add normalized parser

* refactor unit test

* fix metadata problem

* refactor names

* reverse change

* add getters

* add comments

* add comments, move code

* change text/turtle to constant

* add changes

* add requested changes

* add more requested changes

* add more requested changes

* more changes
2020-09-11 17:08:53 +02:00
Ruben Verborgh
ba8b3575b0 refactor: Rename BasePermissionsExtractor to MethodPermissionsExtractor 2020-09-04 22:48:43 +02:00
Ruben Verborgh
c5c5d13570 refactor: Replace dataType by binary flag 2020-09-03 09:52:48 +02:00
Joachim Van Herwegen
199d657097 refactor: Remove overused "Simple" prefix 2020-09-02 15:42:13 +02:00
Joachim Van Herwegen
3931d5f664 feat: Integrate ChainedConverter into the server 2020-09-01 15:39:10 +02:00
Ruben Taelman
2c3ae4eded Add generic QuadToRdfConverter 2020-09-01 11:49:49 +02:00
Ruben Taelman
db04c55196 feat: Enable dependency injection with auto-generated components 2020-09-01 09:00:15 +02:00
Ruben Taelman
e88e680ed7 feat: add support for parsing more RDF formats using rdf-parse 2020-08-31 12:01:47 +02:00
Ruben Taelman
5126356c94
feat: Move runtime config into dedicated component, Closes #67
* Move runtime config into dedicated component, Closes #67

* Migrate FileResourceStore to RuntimeConfig
2020-08-26 10:25:47 +02:00
Joachim Van Herwegen
bca4d06c9a fix: Remove unused interfaces 2020-08-25 15:12:01 +02:00
Ruben Taelman
5649903226
fix: Move ACL init into dedicated Setup component 2020-08-25 11:11:29 +02:00
Joachim Van Herwegen
e06d0bc8c5 feat: Add more extensive permission parsing support 2020-08-18 11:21:48 +02:00
Joachim Van Herwegen
769b49293c feat: Integrate acl with rest of server 2020-08-18 10:32:07 +02:00
Joachim Van Herwegen
5e1bb10f81 feat: Convert data from ResourceStore based on preferences 2020-08-17 15:38:26 +02:00
Joachim Van Herwegen
0e486cf6a6 feat: Integrate PATCH functionality 2020-07-23 10:55:53 +02:00
Joachim Van Herwegen
a9b811a5a3 feature: Add lock functionality 2020-07-17 15:26:32 +02:00
Joachim Van Herwegen
a9dc59bf78 feat: Set up server using express 2020-07-15 10:59:45 +02:00