mirror of https://github.com/Ombi-app/Ombi
parent
cd6b70f771
commit
dc0a66f4d8
@ -0,0 +1,23 @@
|
||||
{
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"urlPattern": "/library/sections"
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"jsonBody": {
|
||||
"mediaContainer": {
|
||||
"directory":[
|
||||
{ "key": "1", "title": "lib1"},
|
||||
{ "key": "2", "title": "lib2"},
|
||||
{ "key": "3", "title": "lib3"},
|
||||
{ "key": "4", "title": "lib4"},
|
||||
{ "key": "5", "title": "lib5"}
|
||||
]
|
||||
}
|
||||
},
|
||||
"headers": {
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
{
|
||||
"request": {
|
||||
"method": "GET"
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"jsonBody": {
|
||||
"mediaContainer": {
|
||||
"version": "99"
|
||||
}
|
||||
},
|
||||
"headers": {
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
|
||||
Cypress.Commands.add('addMock', (mapping) => {
|
||||
cy.request({
|
||||
method: 'POST',
|
||||
url: 'http://localhost:32400/__admin/mappings',
|
||||
body: mapping
|
||||
})
|
||||
})
|
||||
|
||||
Cypress.Commands.add('clearMocks', () => {
|
||||
cy.request({
|
||||
method: 'DELETE',
|
||||
url: 'http://localhost:32400/__admin/mappings'
|
||||
})
|
||||
})
|
Loading…
Reference in new issue