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
13 changes: 13 additions & 0 deletions .deployed/versions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"apihost": "https://faas-ams3-2a2df116.doserverless.co",
"namespace": "fn-5369a627-86bd-4113-98cb-5cd714fd1256",
"packageVersions": {},
"actionVersions": {
"scim/verify": {
"digest": "302cb01bd761564fee108a3242c6e7037c2c45eb91191f9e99b804200e4141ed",
"version": "0.0.4"
}
}
}
]
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ RUN npm install
# Copy the rest of the application code
COPY . .

# Run the tests
CMD ["node", "--test", "--test-reporter", "spec"]
# Expose the port the app runs on
EXPOSE 3000

# Command to run the server
CMD ["node", "server.js"]
4 changes: 4 additions & 0 deletions FAQ.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

# Why don't you come up with user creations/updates

Because SCIM doesn't specify - or in a very limited form - the field value formatting.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ For organizations requiring additional assistance, commercial support options ar

## Contact

For more information, please visit [verify.scim.dev](https://verify.scim.dev/) or contact us at [email protected].
For more information, please visit [verify.scim.dev](https://verify.scim.dev/) or contact us at [email protected].

## TODO:

1. Generate example requests and response schemas based on Schema and Resource Types. Leverage AI??
35 changes: 33 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,40 @@
version: '3.8'

services:
app:
# Node server for running SCIM verification tests
scimserver:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
volumes:
- .:/app
- ./:/usr/src/app
command: ["npx", "nodemon", "server.js"]
environment:
- NODE_ENV=development
- PORT=3000
networks:
- scim-network
restart: unless-stopped

# VitePress documentation site
vitepress:
build:
context: ./site
dockerfile: Dockerfile
ports:
- "5173:5173"
volumes:
- .:/usr/src/app
working_dir: /usr/src/app/site/docs
command: sh -c "npm install && npm run dev -- --host 0.0.0.0"
environment:
- NODE_ENV=development
networks:
- scim-network
restart: unless-stopped

networks:
scim-network:
driver: bridge
19 changes: 13 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
const { spec } = require('node:test/reporters');
const { run } = require('node:test');
const path = require('node:path');
const { tap } = require('node:test/reporters');
import { run } from 'node:test';
import path from 'path';
import { fileURLToPath } from 'url';


const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

// Run tests sequentially and pipe directly to NDJSON reporter and stdout
run({
files: [path.resolve(__dirname, 'scim.test.js')]
files: [path.resolve(__dirname, 'scim.test.js')],
concurrency: 1,
reporter: 'spec'
}).on('test:fail', () => {
process.exitCode = 1;
}).compose(spec).pipe(process.stdout);
})
.pipe(process.stdout);
Loading
Loading