source/projects/octorest/test/fixtures/cassettes/test_client.TestClient.test_printer.json

120 lines
3.7 KiB
JSON
Raw Normal View History

2025-02-06 08:55:09 +00:00
{
"http_interactions": [
{
"recorded_at": "2016-07-25T16:09:08",
"request": {
"body": {
"encoding": "utf-8",
"string": ""
},
"headers": {
"Accept": [
"*/*"
],
"Accept-Encoding": [
"gzip, deflate"
],
"Connection": [
"keep-alive"
],
"User-Agent": [
"python-requests/2.10.0"
],
"X-Api-Key": [
"YouShallNotPass"
]
},
"method": "GET",
"uri": "http://printer15.local/api/version"
},
"response": {
"body": {
"encoding": null,
"string": "{\n \"api\": \"0.1\", \n \"server\": \"1.2.2\"\n}"
},
"headers": {
"Content-Length": [
"40"
],
"Content-Type": [
"application/json"
],
"Server": [
"TornadoServer/4.0.1"
],
"Set-Cookie": [
"session=.eJyrVopPK0otzlCyKikqTdVRis9MUbKqVlJIUrJSigpJNvRziTT1DY_K9XPxy_ELca30dXHLigoJyvHLysiOCvc18jUKNYoMcbRVqtVRykxJzSvJLKnUSywtyYgvqSxIVbLKK83JQZJBMj3CyK08MdAWrLO0OLUoHqtcLQB_4zOk.CnfLJA.BMOeOXRLXc0hatn_eHaSDI4bJOc; Path=/; HttpOnly"
],
"X-Clacks-Overhead": [
"GNU Terry Pratchett"
]
},
"status": {
"code": 200,
"message": "OK"
},
"url": "http://printer15.local/api/version"
}
},
{
"recorded_at": "2016-07-25T16:09:08",
"request": {
"body": {
"encoding": "utf-8",
"string": ""
},
"headers": {
"Accept": [
"*/*"
],
"Accept-Encoding": [
"gzip, deflate"
],
"Connection": [
"keep-alive"
],
"Cookie": [
"session=.eJyrVopPK0otzlCyKikqTdVRis9MUbKqVlJIUrJSigpJNvRziTT1DY_K9XPxy_ELca30dXHLigoJyvHLysiOCvc18jUKNYoMcbRVqtVRykxJzSvJLKnUSywtyYgvqSxIVbLKK83JQZJBMj3CyK08MdAWrLO0OLUoHqtcLQB_4zOk.CnfLJA.BMOeOXRLXc0hatn_eHaSDI4bJOc"
],
"User-Agent": [
"python-requests/2.10.0"
],
"X-Api-Key": [
"YouShallNotPass"
]
},
"method": "GET",
"uri": "http://printer15.local/api/printer"
},
"response": {
"body": {
"encoding": null,
"string": "{\n \"sd\": {\n \"ready\": false\n }, \n \"state\": {\n \"flags\": {\n \"closedOrError\": false, \n \"error\": false, \n \"operational\": true, \n \"paused\": false, \n \"printing\": false, \n \"ready\": true, \n \"sdReady\": false\n }, \n \"text\": \"Operational\"\n }, \n \"temperature\": {\n \"bed\": {\n \"actual\": 25.3, \n \"offset\": 0, \n \"target\": 0.0\n }, \n \"tool0\": {\n \"actual\": 25.0, \n \"offset\": 0, \n \"target\": 0.0\n }\n }\n}"
},
"headers": {
"Content-Length": [
"474"
],
"Content-Type": [
"application/json"
],
"Server": [
"TornadoServer/4.0.1"
],
"Set-Cookie": [
"session=.eJyrVopPK0otzlCyKikqTdVRis9MUbKqVlJIUrJSigpJNvRziTT1DY_K9XPxy_ELca30dXHLigoJyvHLysiOCvc18jUKNYoMcbRVqtVRykxJzSvJLKnUSywtyYgvqSxIVbLKK83JQZJBMj3CyK08MdAWrLO0OLUoHqtcLQB_4zOk.CnfLJA.BMOeOXRLXc0hatn_eHaSDI4bJOc; Path=/; HttpOnly"
],
"X-Clacks-Overhead": [
"GNU Terry Pratchett"
]
},
"status": {
"code": 200,
"message": "OK"
},
"url": "http://printer15.local/api/printer"
}
}
],
"recorded_with": "betamax/0.7.1"
}