Skip to content

Commit 1a46e6e

Browse files
committed
Additional tests
1 parent b92c325 commit 1a46e6e

File tree

1 file changed

+42
-3
lines changed

1 file changed

+42
-3
lines changed

test.http

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,36 @@ Content-Type: application/json
110110
"mqtt_user": "emonpi",
111111
"mqtt_pass": "emonpimqtt2016",
112112
"mqtt_solar": "",
113-
"mqtt_grid_ie": "emon/test/grid_ie",
114-
"mqtt_announce_topic": "openevse/announce/a7d4"
113+
"mqtt_grid_ie": "emon/test/grid_ie"
114+
}
115+
116+
###
117+
118+
POST {{baseUrl}}/config HTTP/1.1
119+
Content-Type: application/json
120+
121+
{
122+
"tesla_enabled": false
123+
}
124+
125+
###
126+
127+
POST {{baseUrl}}/config HTTP/1.1
128+
Content-Type: application/json
129+
130+
{
131+
"tesla_enabled": true,
132+
"tesla_username": "username",
133+
"tesla_password": "password"
134+
}
135+
136+
###
137+
138+
POST {{baseUrl}}/config HTTP/1.1
139+
Content-Type: application/json
140+
141+
{
142+
"tesla_vehidx": 0
115143
}
116144

117145
###
@@ -142,6 +170,7 @@ ssid={{ssid}}&pass={{pass}}
142170
POST {{baseUrl}}/saveemoncms HTTP/1.1
143171
Content-Type: application/x-www-form-urlencoded
144172

173+
enable=true&server=home.lan&apikey=_DUMMY_PASSWORD&node=openevse-esp8266&fingerprint=
145174

146175
###
147176

@@ -303,4 +332,14 @@ Content-Disposition: form-data; name="image"; filename="firmware.bin"
303332
Content-Type: application/octet-stream
304333

305334
< ./.pio/build/openevse_esp-wrover-kit_idf/firmware.bin
306-
----WebKitFormBoundary7MA4YWxkTrZu0gW
335+
----WebKitFormBoundary7MA4YWxkTrZu0gW
336+
337+
###
338+
339+
GET {{baseUrl}}/debug HTTP/1.1
340+
341+
###
342+
343+
GET {{baseUrl}}/evse HTTP/1.1
344+
345+
###

0 commit comments

Comments
 (0)