1472 Commits

Author SHA1 Message Date
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
Ruben Verborgh
1dd14692fe feat: Expose types 2020-09-04 23:25:48 +02:00
Ruben Verborgh
063437e5c1 refactor: More precise error messages 2020-09-04 23:15:35 +02:00
Ruben Verborgh
389fb33334 refactor: Simplify MethodPermissionsExtractor 2020-09-04 22:56:57 +02:00
Ruben Verborgh
ba8b3575b0 refactor: Rename BasePermissionsExtractor to MethodPermissionsExtractor 2020-09-04 22:48:43 +02:00
Joachim Van Herwegen
c808dfeff0
fix: metadata file error in FileResourceStore
* Fix: metadata file error in FileResourceStore

* fix: ensure full test coverage

* add stream piping function in util

* Fix typing in util function

* Add requested changes

* add suggested changes

* add suggested change

Co-authored-by: freyavs <freyavanspeybroeck@outlook.com>
2020-09-04 09:12:35 +02:00
Ruben Taelman
7fae3203d5 feat: add package validator to CI 2020-09-04 08:49:30 +02:00
Ruben Verborgh
ab8289a668 docs: Add v0.1.0 link in CHANGELOG 2020-09-03 15:44:18 +02:00
Ruben Verborgh
e492f2e4a6 Release version 0.1.1 of the npm package. v0.1.1 2020-09-03 15:41:04 +02:00
Ruben Verborgh
c3c4424636 docs: Copyfitting on README 2020-09-03 15:38:38 +02:00
Ruben Verborgh
80aad8ab07 fix: Move dependencies to production 2020-09-03 15:34:24 +02:00
Ruben Verborgh
3020b17283 Release version 0.1.0 of the npm package. v0.1.0 2020-09-03 14:39:51 +02:00
Ruben Verborgh
986461f6fe fix: Ensure stream is fully buffered.
Needs a more permanent fix for Very Large Streams.
2020-09-03 14:32:42 +02:00
Ruben Taelman
9fb54b8958 docs: Mention developer notes 2020-09-03 12:10:41 +02:00
Ruben Verborgh
6296dbc89f docs: Add badges 2020-09-03 12:10:41 +02:00
Ruben Verborgh
cb0476683c docs: Explain context
Closes https://github.com/solid/community-server/issues/29
2020-09-03 12:10:41 +02:00
Ruben Taelman
8fe7ed9fa3 docs: Fix dead links in changelog 2020-09-03 11:46:51 +02:00
Joachim Van Herwegen
785ec1ee07 fix: Don't buffer data before sending response with InMemoryResourceStore 2020-09-03 11:13:08 +02:00
Ruben Verborgh
52e1e065df
docs: Add package metadata 2020-09-03 10:40:03 +02:00
Ruben Taelman
d259461c14
docs: initialize CHANGELOG.md 2020-09-03 10:35:52 +02:00
Ruben Verborgh
a06a7ff685 fix: Determine body presence according to RFC7230
Fixes https://github.com/solid/community-server/issues/121
2020-09-03 10:12:16 +02:00
Ruben Verborgh
ee3b847033 refactor: Introduce TEXT_TURTLE constant 2020-09-03 09:52:48 +02:00
Ruben Verborgh
85e3117efe refactor: Drop CONTENT_TYPE prefix 2020-09-03 09:52:48 +02:00
Ruben Verborgh
c5c5d13570 refactor: Replace dataType by binary flag 2020-09-03 09:52:48 +02:00
Ruben Verborgh
385e1a4cdf change: Support all PUT operations, error later 2020-09-03 09:02:20 +02:00
Ruben Verborgh
4965b476c9 feat: Send server identification 2020-09-02 16:33:20 +02:00
Ruben Verborgh
273626a799 fix: Ensure main handler ends 2020-09-02 16:33:20 +02:00
Joachim Van Herwegen
199d657097 refactor: Remove overused "Simple" prefix 2020-09-02 15:42:13 +02:00
Ruben Taelman
6b8d57667b fix: reset lockfile to update to fixed JSON-LD serializer, Closes #105 2020-09-02 09:53:07 +02:00
Joachim Van Herwegen
3931d5f664 feat: Integrate ChainedConverter into the server 2020-09-01 15:39:10 +02:00
Joachim Van Herwegen
af4a82f4c1 feat: Dynamically determine matching types in ChainedConverter 2020-09-01 15:39:10 +02:00
Joachim Van Herwegen
734f7e7f0f feat: Create RepresentationConverter that chains other converters 2020-09-01 15:39:10 +02:00
Ruben Taelman
a1e9410365 change: validate config in precommit and in CI 2020-09-01 14:32:14 +02:00
Ruben Taelman
2c3ae4eded Add generic QuadToRdfConverter 2020-09-01 11:49:49 +02:00
Ruben Taelman
4273c8bc04 change: set bin name to community-solid-server 2020-09-01 11:20:04 +02:00
Ruben Taelman
b952a5790c fix: incorrect root server name in configs 2020-09-01 11:17:31 +02:00
Ruben Taelman
0a0f44cf22 docs: explain supported HTTP methods in README 2020-09-01 09:02:13 +02:00
Ruben Taelman
3f20f79a3c change: improve urn names of components in server config 2020-09-01 09:00:15 +02:00
Ruben Taelman
a6df6e211b change: split core and wrapper storage configs 2020-09-01 09:00:15 +02:00
Ruben Taelman
774e5d80f6 change: decompose LDP configs into separate files 2020-09-01 09:00:15 +02:00
Ruben Taelman
ce924d4ed1 fix: update componentjs-generator to fix failure on Windows 2020-09-01 09:00:15 +02:00
Ruben Taelman
09707a9e6d feat: allow custom config to be passed 2020-09-01 09:00:15 +02:00
Ruben Taelman
f08e97b80c fix: failing conversion test due to N3 update 2020-09-01 09:00:15 +02:00