Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion runTesterAgainstServer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ docker build -t $2 servers/$2

echo Starting server ...
docker run -d --name=server --network=testnet $2
if [[ "$1" == nextcloud-server ]]
if [[ "$2" == nextcloud-server ]]
then
echo Waiting for Nextcloud server to start ...
sleep 10
Expand Down
3 changes: 3 additions & 0 deletions runTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ docker run --network=testnet --env-file servers/$1/env.list webid-provider 2> re
echo Running solid-crud tester...
docker run --network=testnet --env-file servers/$1/env.list solid-crud 2> reports/$1-solid-crud.txt

echo Running open-cloud-mesh tester...
docker run --network=testnet --env-file servers/$1/env.list open-cloud-mesh 2> reports/$1-open-cloud-mesh.txt

echo Stopping server...
docker stop server

Expand Down
1 change: 0 additions & 1 deletion servers/nextcloud-server/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
php console.php maintenance:install --admin-user alice --admin-pass nextcloud123
php console.php status
php console.php app:enable pdsinterop

2 changes: 2 additions & 0 deletions testers/open-cloud-mesh/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tester/node_modules
Dockerfile
9 changes: 9 additions & 0 deletions testers/open-cloud-mesh/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM node
RUN apt-get update && apt-get install -yq \
vim \
&& apt-get clean
ADD tester /app
WORKDIR /app
RUN npm install
ENV NODE_TLS_REJECT_UNAUTHORIZED 0
CMD npm run jest
104 changes: 104 additions & 0 deletions testers/open-cloud-mesh/tester/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port
21 changes: 21 additions & 0 deletions testers/open-cloud-mesh/tester/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Solid

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
14 changes: 14 additions & 0 deletions testers/open-cloud-mesh/tester/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Open Cloud Mesh Tests (under construction)
Surface tests for Open Cloud Mesh (under construction)

## Usage
### In development
Start your server with a self-signed cert on port 443 of localhost and run:
```sh
NODE_TLS_REJECT_UNAUTHORIZED=0 SERVER_ROOT=https://localhost npm run jest
```

### Against production
```sh
SERVER_ROOT=https://example.com npm run jest
```
14 changes: 14 additions & 0 deletions testers/open-cloud-mesh/tester/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
roots: [
"<rootDir>/test",
],
preset: 'ts-jest',
testEnvironment: 'node',
verbose: false,
collectCoverage: false,
globals: {
'ts-jest': {
// reference: https://kulshekhar.github.io/ts-jest/user/config/
}
}
};
Loading