Skip to content

Commit

Permalink
Added
Browse files Browse the repository at this point in the history
- Add test scenario `security.edgeCase.tokenWithNoOwner` and `security.edgeCase.tokenWithTwoOwners`, closes #10.
  • Loading branch information
Syndesi committed Sep 26, 2023
1 parent e628613 commit 7f555fd
Show file tree
Hide file tree
Showing 11 changed files with 92 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
### Added
- Add test scenario `security.edgeCase.tokenWithNoOwner` and `security.edgeCase.tokenWithTwoOwners`, closes #10.

## 0.0.9 - 2023-09-14
### Changed
Expand Down
8 changes: 8 additions & 0 deletions node/security/edgeCase/tokenWithNoOwner/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "Data",
"id": "ebc364c6-ba06-4e80-9491-9bcc091199c6",
"data": {
"name": "Data 1",
"test": "security.edgeCase.tokenWithNoOwner"
}
}
10 changes: 10 additions & 0 deletions node/security/edgeCase/tokenWithNoOwner/token.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"type": "Token",
"id": "adc8ae1e-d86c-4fe4-8a12-1fb7c485d360",
"data": {
"token": "secret-token:D44551NKEtvd9KgHXTPd32",
"hash": "b392c63b12d58dbb06a8c79b933de399ac6826b1f3b53f9f9f272d8f8bcbdb01",
"test": "security.edgeCase.tokenWithNoOwner",
"note": "Token contains token only due to testing purposes."
}
}
8 changes: 8 additions & 0 deletions node/security/edgeCase/tokenWithTwoOwners/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "Data",
"id": "d69f2e6c-ce6a-4915-a567-acf0c1fc4432",
"data": {
"name": "Data 1",
"test": "security.edgeCase.tokenWithTwoOwners"
}
}
10 changes: 10 additions & 0 deletions node/security/edgeCase/tokenWithTwoOwners/token.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"type": "Token",
"id": "bbf1baf9-c665-4470-9a1d-47483da18bf3",
"data": {
"token": "secret-token:Fqd0dnLYhXdPSMvMi3c8Bp",
"hash": "f653db301feb9592bdd5000accb591c316f39df7f8cec730b5c0559049a68217",
"test": "security.edgeCase.tokenWithTwoOwners",
"note": "Token contains token only due to testing purposes."
}
}
9 changes: 9 additions & 0 deletions node/security/edgeCase/tokenWithTwoOwners/user1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "User",
"id": "3b9bd45a-a363-434f-8956-2877857c7456",
"data": {
"name": "User 1",
"email": "[email protected]",
"test": "security.edgeCase.tokenWithTwoOwners"
}
}
9 changes: 9 additions & 0 deletions node/security/edgeCase/tokenWithTwoOwners/user2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "User",
"id": "9827facc-40b0-40ca-a7a5-ff947e1c4b86",
"data": {
"name": "User 2",
"email": "[email protected]",
"test": "security.edgeCase.tokenWithTwoOwners"
}
}
9 changes: 9 additions & 0 deletions relation/security/edgeCase/tokenWithNoOwner/owns.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "OWNS",
"id": "5e40ab34-6aa3-41ac-8c0a-0902ed491b0e",
"start": "adc8ae1e-d86c-4fe4-8a12-1fb7c485d360",
"end": "ebc364c6-ba06-4e80-9491-9bcc091199c6",
"data": {
"test": "security.edgeCase.tokenWithNoOwner"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "OWNS",
"id": "9ebf3a30-fcfe-42a5-9842-4b0cceab1bcb",
"start": "3b9bd45a-a363-434f-8956-2877857c7456",
"end": "bbf1baf9-c665-4470-9a1d-47483da18bf3",
"data": {
"test": "security.edgeCase.tokenWithTwoOwners"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "OWNS",
"id": "eb2d3e59-bb20-4b7a-86e8-448560fd287a",
"start": "9827facc-40b0-40ca-a7a5-ff947e1c4b86",
"end": "bbf1baf9-c665-4470-9a1d-47483da18bf3",
"data": {
"test": "security.edgeCase.tokenWithTwoOwners"
}
}
9 changes: 9 additions & 0 deletions relation/security/edgeCase/tokenWithTwoOwners/owns.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "OWNS",
"id": "5816dad6-b94a-433f-a7d7-61a7d647da14",
"start": "bbf1baf9-c665-4470-9a1d-47483da18bf3",
"end": "d69f2e6c-ce6a-4915-a567-acf0c1fc4432",
"data": {
"test": "security.edgeCase.tokenWithTwoOwners"
}
}

0 comments on commit 7f555fd

Please sign in to comment.