Skip to content

Commit

Permalink
added fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-mazurkiewicz committed Jul 11, 2024
1 parent 6d7c57a commit 18b654c
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
*.json
*.yaml
/*.json
/endpoints*.yaml
!**/*.json
!**/endpoints*.yaml
tmp/
.envrc
.DS_Store
Expand Down
8 changes: 8 additions & 0 deletions tests/ise/integration/fixtures/endpoints.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- endpoint: /api/endpoint_1
name: endpoint_1
- endpoint: /api/endpoint_1/%v/ch_endpoint_1
name: ch_endpoint_1
- endpoint: /api/endpoint_1/%v/ch_endpoint_2
name: ch_endpoint_2
- endpoint: /api/endpoint_2
name: endpoint_2
76 changes: 76 additions & 0 deletions tests/ise/integration/fixtures/ise.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"endpoint_1": [
{
"data": {
"id": "id_1",
"name": "name_1",
"description": "name_1_description"
},
"endpoint": "/api/endpoint_1/id_1",
"children": {
"ch_endpoint_1": [
{
"data": {
"id": "ch_id_1",
"name": "ch_name_1",
"description": "ch_name_1_description"
},
"endpoint": "/api/endpoint_1/id_1/ch_endpoint_1/ch_id_1"
},
{
"data": {
"id": "ch_id_2",
"name": "ch_name_2",
"description": "ch_name_2_description"
},
"endpoint": "/api/endpoint_1/id_1/ch_endpoint_1/ch_id_2"
}
],
"ch_endpoint_2": [
{
"data": {
"id": "ch_id_3",
"name": "ch_name_3",
"description": "ch_name_3_description"
},
"endpoint": "/api/endpoint_1/id_1/ch_endpoint_2/ch_id_3"
},
{
"data": {
"id": "ch_id_4",
"name": "ch_name_4",
"description": "ch_name_4_description"
},
"endpoint": "/api/endpoint_1/id_1/ch_endpoint_2/ch_id_4"
}
]
}
}
],
"endpoint_2": [
{
"data": {
"id": "id_2",
"name": "name_2",
"description": "name_2_description"
},
"endpoint": "/api/endpoint_2/id_2"
},
{
"data": {
"id": "id_3",
"name": "name_3",
"description": "name_3_description"
},
"endpoint": "/api/endpoint_2/id_3"
},
{
"data": {
"id": "id_4",
"name": "name_4",
"description": "name_4_description"
},
"endpoint": "/api/endpoint_2/id_4"
}
]
}

0 comments on commit 18b654c

Please sign in to comment.