1564 Commits

Author SHA1 Message Date
Joachim Van Herwegen
63f891c0f1 fix: Remove metadata file if no new metadata is stored 2020-10-14 15:35:22 +02:00
Joachim Van Herwegen
e861b080c2 feat: Fully support storing content-type in file extensions 2020-10-14 15:20:26 +02:00
Joachim Van Herwegen
626b3114f4 refactor: Rename instances of data resource to document 2020-10-14 15:20:26 +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
9a857b7581 feat: Create file-based DataAccessor 2020-10-14 11:32:27 +02:00
Joachim Van Herwegen
6ad40763f9 feat: Create DataAccessorBasedStore to have a standard store implementation 2020-10-14 11:32:27 +02:00
Joachim Van Herwegen
e00cb05dc3 feat: Add support for mocking fs 2020-10-14 11:32:27 +02:00
Joachim Van Herwegen
006f7ea7aa refactor: Let caller decide which error pipeStreamAndErrors should throw 2020-10-14 11:32:27 +02:00
Joachim Van Herwegen
fa935cc4c7 refactor: Move file related metadata to FileResourceStore 2020-10-14 11:32:27 +02:00
Joachim Van Herwegen
22962192ff fix: Fix test issues
The root container wasn't being created for file based tests.
Containers should be POSTed as RDF bodies.
Containment triples of child containers had no trailing slash.
2020-10-14 11:32:27 +02:00
Joachim Van Herwegen
e85ca622da fix: Make sure all URI characters are correctly encoded 2020-10-14 11:32:27 +02:00
smessie
e8e96b903d
test: Write unit tests for CliRunner
* test: Write unit tests for CliRunner

* test: fix Loader mock and add new mock and test

* test: Put function definition in beforeEach

* test: Add comments to code

* refactor: Move outsideResolve to setup call
2020-10-13 14:20:27 +02:00
Ruben Verborgh
79defc3abb Fix typo. 2020-10-12 16:14:28 +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
Joachim Van Herwegen
bb28af937b feat: Decode URI in target extractor 2020-10-07 09:31:08 +02:00
Joachim Van Herwegen
b47dc3f7f6 feat: Have ExtensionBasedMapper handle extensions correctly 2020-10-07 09:31:08 +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
Joachim Van Herwegen
4d34cdd12f fix: Have AsyncHandlers only check what is necessary 2020-10-05 15:32:08 +02:00
Joachim Van Herwegen
10723bb6b8 fix: Retain status codes when combining errors 2020-10-02 09:37:10 +02:00
Joachim Van Herwegen
7a41108931 build: Add eslint cache 2020-10-02 09:20:23 +02:00
smessie
d8e6c08859 refactor: Remove Turtle to Quad and Quad to Turtle converters 2020-09-30 09:12:42 +02:00
Renovate Bot
f6f45c0ece chore(deps): update dependency supertest to v5 2020-09-28 08:59:52 +02:00
Ruben Taelman
f186bece9f change: use regular getters and setters in LazyLoggerFactory 2020-09-23 10:04:31 +02:00
Ruben Taelman
b62f4eb016 change: improve getLoggerFactoryOrThrow error message 2020-09-23 10:04:31 +02:00
Ruben Taelman
4c534e9d5d change: add global setGlobalLoggerFactory function 2020-09-23 10:04:31 +02:00
Ruben Taelman
db9aefe551 feature: add level-based logger methods for convenience 2020-09-23 10:04:31 +02:00
Ruben Taelman
6212c15352 change: log messages in ExpressHttpServer 2020-09-23 10:04:31 +02:00
Ruben Taelman
aaa49219dc feat: configure logger during setup 2020-09-23 10:04:31 +02:00
Ruben Taelman
09ac83caa5 feat: add lazy logger wrapper 2020-09-23 10:04:31 +02:00
Ruben Taelman
5b825bc2d4 feat: add winston-based logger 2020-09-23 10:04:31 +02:00
Ruben Taelman
b0671031f1 feat: add void logger 2020-09-23 10:04:31 +02:00
Ruben Taelman
1e255ca2e4 feat: add basic logging interfaces 2020-09-23 10:04:31 +02:00
Joachim Van Herwegen
e1533a0869 refactor: Rename UriUtil functions
Forgot to do this when rebasing
2020-09-17 11:58:38 +02: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
c150da337e refactor: Fix typo
Fixes #155
2020-09-16 15:27:12 +02:00
Renovate Bot
fc4df9dbae fix(deps): update dependency yargs to v16 2020-09-16 14:16:10 +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
76319ba360 feat: Update RepresentationMetadata to store triples 2020-09-16 12:10:42 +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 Taelman
e9983d5837 chore: update to componentsjs-generator with generics support 2020-09-07 10:42:31 +02:00
Ruben Verborgh
3d9507879b refactor: Make PassthroughStore generic 2020-09-07 10:42:31 +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 Verborgh
7bf4c7cb7c fix: Make deployment test install packages 2020-09-07 08:34:35 +02:00
Ruben Verborgh
092906f257 docs: Fix comment 2020-09-05 00:10:06 +02:00