-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update m:n tests. Split test descriptors.
- Loading branch information
Logan
committed
Oct 22, 2019
1 parent
32066ba
commit aaf82f7
Showing
3 changed files
with
219 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,142 @@ | ||
custom_descriptor = { | ||
"api": { | ||
"resource": "tests", | ||
"methods": [ | ||
{ | ||
"get": { | ||
"enabled": True, | ||
"secured": False, | ||
"grants": [] | ||
custom_descriptor = [{ | ||
"api": { | ||
"resource": "tests", | ||
"methods": [ | ||
{ | ||
"get": { | ||
"enabled": True, | ||
"secured": False, | ||
"grants": [] | ||
} | ||
} | ||
] | ||
}, | ||
"datastore": { | ||
"tablename": "tests", | ||
"restricted_fields": [], | ||
"schema": { | ||
"fields": [ | ||
{ | ||
"name": "id", | ||
"title": "Test ID", | ||
"description": "Test Desc", | ||
"type": "integer", | ||
"required": True | ||
}, | ||
{ | ||
"name": "name", | ||
"title": "namename", | ||
"description": "test name", | ||
"type": "string", | ||
"required": True | ||
} | ||
], | ||
"primaryKey": "id" | ||
} | ||
] | ||
}, | ||
"datastore": { | ||
"tablename": "tests", | ||
"restricted_fields": [], | ||
"schema": { | ||
"fields": [ | ||
} | ||
} | ||
] | ||
|
||
frameworks_descriptor = { | ||
"api": { | ||
"resource": "frameworks", | ||
"methods": [ | ||
{ | ||
"name": "id", | ||
"title": "Test ID", | ||
"description": "Test Desc", | ||
"type": "integer", | ||
"required": True | ||
}, | ||
"get": { | ||
"enabled": True, | ||
"secured": False, | ||
"grants": [] | ||
}, | ||
"post": { | ||
"enabled": True, | ||
"secured": False, | ||
"grants": [] | ||
}, | ||
"custom": [ | ||
{ | ||
"resource": "/frameworks/skills", | ||
"methods": [ | ||
{ | ||
"get": { | ||
"enabled": True, | ||
"secured": False, | ||
"grants": [] | ||
} | ||
# "post": { | ||
# "enabled": True, | ||
# "secured": False, | ||
# "grants": [] | ||
# }, | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"datastore": { | ||
"tablename": "frameworks", | ||
"restricted_fields": [], | ||
"schema": { | ||
"fields": [ | ||
{ | ||
"name": "id", | ||
"title": "framework ID", | ||
"description": "framework Desc", | ||
"type": "integer", | ||
"required": False | ||
}, | ||
{ | ||
"name": "name", | ||
"title": "framework name", | ||
"description": "framework name", | ||
"type": "string", | ||
"required": True | ||
} | ||
], | ||
"primaryKey": "id" | ||
} | ||
} | ||
} | ||
skills_descriptor= { | ||
"api": { | ||
"resource": "skills", | ||
"methods": [ | ||
{ | ||
"name": "name", | ||
"title": "namename", | ||
"description": "test name", | ||
"type": "string", | ||
"required": True | ||
"get": { | ||
"enabled": True, | ||
"secured": False, | ||
"grants": [] | ||
}, | ||
"post": { | ||
"enabled": True, | ||
"secured": False, | ||
"grants": [] | ||
} | ||
} | ||
], | ||
"primaryKey": "id" | ||
] | ||
}, | ||
"datastore": { | ||
"tablename": "skills", | ||
"restricted_fields": [], | ||
"schema": { | ||
"fields": [ | ||
{ | ||
"name": "id", | ||
"title": "skill ID", | ||
"description": "skill Desc", | ||
"type": "integer", | ||
"required": True | ||
}, | ||
{ | ||
"name": "text", | ||
"title": "skill text", | ||
"description": "skill text", | ||
"type": "string", | ||
"required": True | ||
} | ||
], | ||
"primaryKey": "id" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters