diff --git a/CHANGELOG.md b/CHANGELOG.md index 76f722b..a9ceca6 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/node/security/edgeCase/tokenWithNoOwner/data.json b/node/security/edgeCase/tokenWithNoOwner/data.json new file mode 100755 index 0000000..fcd3cdd --- /dev/null +++ b/node/security/edgeCase/tokenWithNoOwner/data.json @@ -0,0 +1,8 @@ +{ + "type": "Data", + "id": "ebc364c6-ba06-4e80-9491-9bcc091199c6", + "data": { + "name": "Data 1", + "test": "security.edgeCase.tokenWithNoOwner" + } +} \ No newline at end of file diff --git a/node/security/edgeCase/tokenWithNoOwner/token.json b/node/security/edgeCase/tokenWithNoOwner/token.json new file mode 100644 index 0000000..e8b88e1 --- /dev/null +++ b/node/security/edgeCase/tokenWithNoOwner/token.json @@ -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." + } +} \ No newline at end of file diff --git a/node/security/edgeCase/tokenWithTwoOwners/data.json b/node/security/edgeCase/tokenWithTwoOwners/data.json new file mode 100755 index 0000000..846b92a --- /dev/null +++ b/node/security/edgeCase/tokenWithTwoOwners/data.json @@ -0,0 +1,8 @@ +{ + "type": "Data", + "id": "d69f2e6c-ce6a-4915-a567-acf0c1fc4432", + "data": { + "name": "Data 1", + "test": "security.edgeCase.tokenWithTwoOwners" + } +} \ No newline at end of file diff --git a/node/security/edgeCase/tokenWithTwoOwners/token.json b/node/security/edgeCase/tokenWithTwoOwners/token.json new file mode 100644 index 0000000..ee3eb93 --- /dev/null +++ b/node/security/edgeCase/tokenWithTwoOwners/token.json @@ -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." + } +} \ No newline at end of file diff --git a/node/security/edgeCase/tokenWithTwoOwners/user1.json b/node/security/edgeCase/tokenWithTwoOwners/user1.json new file mode 100755 index 0000000..79a47ee --- /dev/null +++ b/node/security/edgeCase/tokenWithTwoOwners/user1.json @@ -0,0 +1,9 @@ +{ + "type": "User", + "id": "3b9bd45a-a363-434f-8956-2877857c7456", + "data": { + "name": "User 1", + "email": "user1@99-06.localhost.de", + "test": "security.edgeCase.tokenWithTwoOwners" + } +} \ No newline at end of file diff --git a/node/security/edgeCase/tokenWithTwoOwners/user2.json b/node/security/edgeCase/tokenWithTwoOwners/user2.json new file mode 100755 index 0000000..6542d72 --- /dev/null +++ b/node/security/edgeCase/tokenWithTwoOwners/user2.json @@ -0,0 +1,9 @@ +{ + "type": "User", + "id": "9827facc-40b0-40ca-a7a5-ff947e1c4b86", + "data": { + "name": "User 2", + "email": "user2@99-06.localhost.de", + "test": "security.edgeCase.tokenWithTwoOwners" + } +} \ No newline at end of file diff --git a/relation/security/edgeCase/tokenWithNoOwner/owns.json b/relation/security/edgeCase/tokenWithNoOwner/owns.json new file mode 100755 index 0000000..003dec8 --- /dev/null +++ b/relation/security/edgeCase/tokenWithNoOwner/owns.json @@ -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" + } +} \ No newline at end of file diff --git a/relation/security/edgeCase/tokenWithTwoOwners/owns-token1.json b/relation/security/edgeCase/tokenWithTwoOwners/owns-token1.json new file mode 100755 index 0000000..c8b1e68 --- /dev/null +++ b/relation/security/edgeCase/tokenWithTwoOwners/owns-token1.json @@ -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" + } +} \ No newline at end of file diff --git a/relation/security/edgeCase/tokenWithTwoOwners/owns-token2.json b/relation/security/edgeCase/tokenWithTwoOwners/owns-token2.json new file mode 100755 index 0000000..bc124ce --- /dev/null +++ b/relation/security/edgeCase/tokenWithTwoOwners/owns-token2.json @@ -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" + } +} \ No newline at end of file diff --git a/relation/security/edgeCase/tokenWithTwoOwners/owns.json b/relation/security/edgeCase/tokenWithTwoOwners/owns.json new file mode 100755 index 0000000..1ea841f --- /dev/null +++ b/relation/security/edgeCase/tokenWithTwoOwners/owns.json @@ -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" + } +} \ No newline at end of file