esp_http_client: added example test case to verify error code received when connecting to non-existent url

This commit is contained in:
David Cermak
2019-04-24 14:49:20 +02:00
parent a001eb39bf
commit dc16b8243f
2 changed files with 23 additions and 1 deletions

View File

@@ -45,8 +45,9 @@ def test_examples_protocol_esp_http_client(env, extra_data):
dut1.expect(re.compile(r"HTTP Absolute path redirect Status = 200, content_length = (\d)"))
dut1.expect(re.compile(r"HTTPS Status = 200, content_length = (\d)"))
dut1.expect(re.compile(r"HTTP redirect to HTTPS Status = 200, content_length = (\d)"), timeout=10)
dut1.expect(re.compile(r"HTTP chunk encoding Status = 200, content_length = -1"))
dut1.expect(re.compile(r"HTTP chunk encoding Status = 200, content_length = (\d)"))
dut1.expect(re.compile(r"HTTP Stream reader Status = 200, content_length = (\d)"))
dut1.expect(re.compile(r"Last esp error code: 0x8001"))
dut1.expect("Finish http example")