Skip to content

Commit

Permalink
Add tests for permission validation
Browse files Browse the repository at this point in the history
Closes: #333
PR-URL: #400
  • Loading branch information
mille-nium authored and belochub committed Jun 12, 2019
1 parent 7cfae84 commit 075d4f7
Show file tree
Hide file tree
Showing 27 changed files with 2,706 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ addons:
postgresql: '10'
before_script:
- psql -c 'create database test_globalstorage_database;' -U postgres
- psql -c 'create database test_permission_validation;' -U postgres
script:
- npm test
4 changes: 4 additions & 0 deletions test/fixtures/permission-validation/schemas/Document.category
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Registry({
Name: { domain: 'Nomen', required: true },
Catalog: Catalog()
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Action({
Execute: async () => 'getDocumentName called',
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Application({
Categories: ['Document'],
});
4 changes: 4 additions & 0 deletions test/fixtures/permission-validation/schemas/Person.category
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Registry({
Name: { domain: 'Nomen', required: true },
Subsystem: Subsystem()
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Action({
Execute: async () => 'getPersonName called',
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Application({
Categories: ['Person'],
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Registry({
Name: { domain: 'Nomen', required: true },
Subsystem: Subsystem(),
Catalog: Catalog()
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Action({
Execute: async () => 'getPersonDocumentName called',
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Action({
Public: true,
Execute: async () => 'PublicAction called',
})
Loading

0 comments on commit 075d4f7

Please sign in to comment.