Merge remote-tracking branch 'origin/master' #3
Annotations
9 errors and 1 warning
PythonHttpClient.generate › should build a basic GET request:
src/gimmeHTTP/targets/python.http.test.ts#L13
expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
import http.client
import json
conn = http.client.HTTPSConnection("example.com", 443)
- conn.request("GET", "/api")
+ conn.request("GET", "/")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
at Object.<anonymous> (src/gimmeHTTP/targets/python.http.test.ts:13:20)
|
PythonHttpClient.generate › should build a POST request with headers:
src/gimmeHTTP/targets/python.http.test.ts#L40
expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
@@ -6,10 +6,10 @@
headers = {
"Content-Type": "application/json",
"Authorization": "***",
}
- conn.request("POST", "/api", headers)
+ conn.request("POST", "/", headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
at Object.<anonymous> (src/gimmeHTTP/targets/python.http.test.ts:40:20)
|
PythonHttpClient.generate › should build a POST request with body:
src/gimmeHTTP/targets/python.http.test.ts#L71
expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
@@ -3,10 +3,10 @@
conn = http.client.HTTPSConnection("example.com", 443)
payload = json.dumps({"key1":"value1"})
- conn.request("POST", "/api", payload)
+ conn.request("POST", "/", payload)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
at Object.<anonymous> (src/gimmeHTTP/targets/python.http.test.ts:71:20)
|
PythonHttpClient.generate › should build a POST request with headers and cookies:
src/gimmeHTTP/targets/python.http.test.ts#L103
expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
@@ -10,10 +10,10 @@
cookies = {
"session": "1234",
}
- conn.request("POST", "/api", headers, cookies)
+ conn.request("POST", "/", headers, cookies)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
at Object.<anonymous> (src/gimmeHTTP/targets/python.http.test.ts:103:20)
|
Index › should run custom language client with advanced builder usage:
src/gimmeHTTP/index.test.ts#L126
expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 1
- url: https://example.com
- method: GET
+ url: https://example.com method: GET
at Object.<anonymous> (src/gimmeHTTP/index.test.ts:126:18)
|
Node.generate › should build a POST request with error handling:
src/gimmeHTTP/targets/node.http.test.ts#L19
expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
@@ -1,11 +1,11 @@
const http = require("http");
const options = {
method: "POST",
hostname: "example.com",
- path: "/api",
+ path: "/",
headers: {
"Content-Type": "application/json",
},
};
↵
at Object.<anonymous> (src/gimmeHTTP/targets/node.http.test.ts:19:20)
|
Node.generate › should build a basic GET request:
src/gimmeHTTP/targets/node.http.test.ts#L60
expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
@@ -1,11 +1,11 @@
const http = require("http");
const options = {
method: "GET",
hostname: "example.com",
- path: "/api",
+ path: "/",
};
const req = http.request(options, (res) => {
let data = "";
↵
at Object.<anonymous> (src/gimmeHTTP/targets/node.http.test.ts:60:20)
|
Node.generate › should build a POST request with headers:
src/gimmeHTTP/targets/node.http.test.ts#L98
expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
@@ -1,11 +1,11 @@
const http = require("http");
const options = {
method: "POST",
hostname: "example.com",
- path: "/api",
+ path: "/",
headers: {
"Content-Type": "application/json",
"Authorization": "***",
},
};
at Object.<anonymous> (src/gimmeHTTP/targets/node.http.test.ts:98:20)
|
jest
Process completed with exit code 1.
|
jest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|