-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add solid-crud tests #20
Merged
Merged
Changes from 21 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
4672c4b
Build and run solid-crud tests
michielbdejong b04e577
skip webid-provider tests that currently still fail in master
michielbdejong 6416a47
Run solid-crud-tests as per https://github.com/solid/solid-crud-tests…
michielbdejong 2afd2f1
load env.list from pdsinterop/test-suites
michielbdejong 5c72a56
add specific storage url
ylebre 5545031
adding storage controller
ylebre 4a43e9a
typofix
ylebre a9fbbfd
added solid-crud in composer
ylebre d982d3f
adding websocket for pubsub
ylebre befc5cb
make sure the config dir is writable for apache
ylebre a2384d8
Merge remote-tracking branch 'origin/master' into add-solid-crud-tests
ylebre b8a03dd
Merge branch 'add-solid-crud-tests' of https://github.com/pdsinterop/…
ylebre 111215b
merging from master
ylebre dbda405
do create testnet
ylebre 7aa57e0
use proper routing for the resource server
ylebre 17cd937
Merge branch 'add-solid-crud-tests' of https://github.com/pdsinterop/…
ylebre 23596a4
moving websocket to own repo
ylebre d318211
added php-solid-pubsub-server docker container
poef 050822f
Merge branch 'add-solid-crud-tests' of https://github.com/pdsinterop/…
poef 0def9d5
integration with flysystem rdf content negotiation
ylebre 62fcbec
Merge branch 'add-solid-crud-tests' of https://github.com/pdsinterop/…
ylebre 5a01237
use servername instead of hardcoded value
ylebre f970766
Fix docker logs command in run-solid-test-suite.sh
michielbdejong 796bf68
chown all of /app in Dockerfile
michielbdejong 6544379
use solid-crud Dockerfile from solid/test-suite
michielbdejong 3c820b2
no caching
ylebre 0077976
cleanup after running
ylebre 13e13e8
Re-enable webid-provider tests
michielbdejong 9ef50d3
Fix cookie-getter
michielbdejong d35af0b
Merge branch 'add-solid-crud-tests' of github.com:pdsinterop/php-soli…
michielbdejong dee5e80
Use own cookie-getter
michielbdejong ed9d972
Merge branch 'master' into add-solid-crud-tests
michielbdejong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Pdsinterop\Solid\Controller; | ||
|
||
use Psr\Http\Message\ResponseInterface; | ||
use Psr\Http\Message\ServerRequestInterface; | ||
|
||
class StorageController extends ServerController | ||
{ | ||
final public function __invoke(ServerRequestInterface $request, array $args): ResponseInterface | ||
{ | ||
$body = <<< EOF | ||
@prefix : <#>. | ||
@prefix inbox: <>. | ||
@prefix ldp: <http://www.w3.org/ns/ldp#>. | ||
@prefix terms: <http://purl.org/dc/terms/>. | ||
@prefix XML: <http://www.w3.org/2001/XMLSchema#>. | ||
@prefix st: <http://www.w3.org/ns/posix/stat#>. | ||
|
||
inbox: | ||
a ldp:BasicContainer, ldp:Container, ldp:Resource; | ||
terms:modified "2019-12-20T14:52:54Z"^^XML:dateTime; | ||
st:mtime 1576853574.389; | ||
st:size 4096. | ||
EOF; | ||
$response = $this->getResponse(); | ||
|
||
$response->getBody()->write($body); | ||
return $response | ||
->withHeader("Content-type", "text/turtle"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this a duplication of line 22?