Deterministic file_to_flows (#6257)
* made file_to_flows deterministic * [autofix.ci] apply automated fixes * made dummy values easier to understand * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
9c99777e42
commit
1c8c4ab935
|
@ -1,15 +1,15 @@
|
|||
[
|
||||
{
|
||||
"id": "879da12f-bdf2-4211-b7af-a0a11dc080fc",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.767694,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "ccabf761-ecd2-4359-9d21-1c233aa000ba",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -29,7 +29,7 @@
|
|||
"timestamp_end": 1680136769.482
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "b0920770-d583-4f1c-82e7-d1922a8e5591",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": [
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
[
|
||||
{
|
||||
"id": "cb213e8a-a9de-4946-8173-6852481342cd",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.7651358,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "3942c060-8e31-493f-8908-250a2ceb2663",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -29,7 +29,7 @@
|
|||
"timestamp_end": 1680134468.9160001
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "d6f0aa24-647c-410a-b319-b1879a6e7587",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": [
|
||||
|
@ -207,16 +207,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "c15b740b-4e4c-4ef5-8b0d-e1eed496c67d",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.765561,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "eb85da21-edcb-4fef-a3cb-1abab8be3132",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -236,7 +236,7 @@
|
|||
"timestamp_end": 1689251556.795
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "5c6eb024-3d43-4ca0-b574-bef71c9b0def",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -339,16 +339,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "bbbbb709-e652-4dce-afcb-d5eb2cda19ee",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.765755,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "889b02ae-c4d6-4e8c-ae83-fab4dc138962",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -368,7 +368,7 @@
|
|||
"timestamp_end": 1689188415.949
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "01a82235-e771-458e-b622-5124d02a425d",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": [
|
||||
|
@ -428,7 +428,7 @@
|
|||
],
|
||||
[
|
||||
"content-length",
|
||||
"0"
|
||||
"504"
|
||||
],
|
||||
[
|
||||
"content-type",
|
||||
|
@ -479,8 +479,8 @@
|
|||
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
|
||||
]
|
||||
],
|
||||
"contentLength": 0,
|
||||
"contentHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"contentLength": 504,
|
||||
"contentHash": "c7067c21fd61b85ffa7552d454c936f4ad34f8bebc246a3fbb27b4e9488ad8b6",
|
||||
"timestamp_start": 1689188272.05,
|
||||
"timestamp_end": 1689188415.949,
|
||||
"pretty_host": "bi.pst.tech"
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
[
|
||||
{
|
||||
"id": "3c31b8c0-59b0-489c-b57e-b4d56d6357ca",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.757503,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "c190ad67-e105-4dd5-90c2-6de91ac87db6",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -29,7 +29,7 @@
|
|||
"timestamp_end": 1680134362.303
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "0bbd0ab1-0c54-4f24-a31f-77a774efbb9a",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": [
|
||||
|
@ -191,16 +191,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "42e06fa3-ad81-498c-8cc7-e9ec6a4374f0",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.758782,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "0551a251-0e4f-459a-80cf-8993c19ecf15",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -220,7 +220,7 @@
|
|||
"timestamp_end": 1680134339.418
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "2acf94f6-ad1f-42f0-b9cf-a6f7a636eb17",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -295,16 +295,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "fbe710c7-3593-4596-9cfd-250b02942fe3",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.759031,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "a80aa5d5-aaee-40c9-b730-a28f099ae24e",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -324,7 +324,7 @@
|
|||
"timestamp_end": 1680134339.456
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "1579d510-01a4-4a0a-9884-bbfc4cd08840",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -399,16 +399,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "a83f3f43-4a98-4438-993d-a0105fdc21f2",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.759257,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "2027b766-1cbf-4ad5-8c98-99bffea7ef93",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -428,7 +428,7 @@
|
|||
"timestamp_end": 1680134339.457
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "24c838a3-d831-4f46-acd0-164cd478b5dd",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -503,16 +503,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "44c8b719-2134-430f-b9b9-1eaea0a7b440",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.7595258,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "d26adcbd-6a30-4d2c-bc8d-793f044e3cfd",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -532,7 +532,7 @@
|
|||
"timestamp_end": 1680134339.457
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "3bdcd634-c40b-4b2a-8700-c813356c4ad8",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -607,16 +607,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "61a2037c-b2b7-42b7-8ca8-a6f2e46f5a8e",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.759722,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "0e8e7556-c539-4902-9b0f-148ffb0554f0",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -636,7 +636,7 @@
|
|||
"timestamp_end": 1680134339.458
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "b9d55d09-003c-4d73-9d9a-cd8f0747d474",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -711,16 +711,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "8a91464c-cc17-4113-9739-8a52f355b6a9",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.7598999,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "2da8fbbd-5859-4079-866d-f3f58a2d738a",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -740,7 +740,7 @@
|
|||
"timestamp_end": 1680134339.495
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "02df2637-f7c5-4648-bfba-db25e131fa84",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -891,16 +891,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "0bd64880-4aeb-4e6e-8b00-e96e6dccb6a5",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.7604249,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "675f2c06-9b27-4c62-b469-b4675f5372c1",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -920,7 +920,7 @@
|
|||
"timestamp_end": 1680134339.498
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "f1b278dd-03ae-435a-90c4-4a229922bb18",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -1071,16 +1071,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "9bd2e5e1-812f-4d52-bb28-e79a29b1317d",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.760869,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "ae02e017-d809-493b-afd7-1873b05aad01",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -1100,7 +1100,7 @@
|
|||
"timestamp_end": 1680134339.5
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "85f274a5-0a62-4b15-b819-6d4fcfc33ebe",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -1251,16 +1251,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "0c7552ef-35ec-4ec8-8d23-b21e7af947d8",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.7611551,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "44a08eb6-1cb6-4027-b6aa-6e4adcb62f4e",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -1280,7 +1280,7 @@
|
|||
"timestamp_end": 1680134345.527
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "cfc355c2-b6d6-4c6b-a2a4-4eb00514b78f",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": [
|
||||
|
@ -1438,16 +1438,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "0c7c7e2a-a1dd-4e60-852a-a9eedf2f9993",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.7613928,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "85b66807-2083-4711-8b36-96d6147a9a11",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -1467,7 +1467,7 @@
|
|||
"timestamp_end": 1680134346.528
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "a9eaa186-2718-4fd1-b008-8cf7907f9604",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": [
|
||||
|
@ -1625,16 +1625,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "9c642c89-f24f-49e2-ae09-9340ae24b1a4",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.761636,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "ac16d55b-97d5-4569-9a24-3241bb34fecb",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -1654,7 +1654,7 @@
|
|||
"timestamp_end": 1680134586.543
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "dccddda7-e2e5-40bb-88f9-f2e3fc4235dd",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": [
|
||||
|
@ -1796,16 +1796,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "9afc53b9-8085-4bb7-add6-ae7d1fb1732e",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.7619221,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "a6804092-8477-4f21-a926-88c950cbf41b",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -1825,7 +1825,7 @@
|
|||
"timestamp_end": 1680134346.639
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "9bdf878d-1b21-434a-9040-ccf18c6ead3b",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": [
|
||||
|
@ -1971,16 +1971,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "e82c3e38-8895-4c39-b77a-83e06e183972",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.762152,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "f86ab968-1d93-4e7c-89fc-3cad142edcd7",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -2000,7 +2000,7 @@
|
|||
"timestamp_end": 1680134339.643
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "eff4c459-8d85-408f-a89d-4fe3dab6a63d",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
[
|
||||
{
|
||||
"id": "592d7145-7e96-4d7e-8a7f-602131e1d79e",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.766707,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "ff35f868-7c13-434b-877a-31ed3c7b22c6",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -29,7 +29,7 @@
|
|||
"timestamp_end": 1680151229.383
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "acad27bd-1301-4385-89d1-b86d1b46c46b",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
[
|
||||
{
|
||||
"id": "f4876af7-a751-475c-952b-8b4971b44416",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.771476,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "032b6e91-cefb-4534-97bc-03804f414234",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -29,7 +29,7 @@
|
|||
"timestamp_end": 1680135323.7605977
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "cb14932e-cdc0-4d86-abb5-98e400635ae4",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": [
|
||||
|
@ -163,16 +163,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "d1262961-f362-4c20-a80e-394a42af8db2",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.7732291,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "a375ebda-7e26-4d8a-a860-ba3bf36463e9",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -192,7 +192,7 @@
|
|||
"timestamp_end": 1680135212.606069
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "7c0d1b1f-e1a2-4b16-be56-44f72dd50e04",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -295,16 +295,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "6be2376b-2b61-49a7-8d9f-603f61790642",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.781028,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "b74c0e29-9ce7-422f-a3fe-78f371ac0993",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -324,7 +324,7 @@
|
|||
"timestamp_end": 1680135212.625603
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "6020171c-6c38-468d-819c-887a6c1b43b6",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -423,16 +423,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "7c44ce2c-7666-4ab9-a10a-c686a73e358d",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.7812219,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "d38cc0b8-943a-42fb-9653-0549b9a44290",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -452,7 +452,7 @@
|
|||
"timestamp_end": 1680135212.604729
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "e7bd5e23-1b29-480b-a0ea-0647defdabe5",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -551,16 +551,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "8bfc57d8-e8cb-4d31-8d31-f3501be4d029",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.782211,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "2b26608b-bc53-4c5a-b917-27d81ca6e61e",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -580,7 +580,7 @@
|
|||
"timestamp_end": 1680135212.609786
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "70c5c89f-822c-41b7-8f5e-95852fb3b51a",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -679,16 +679,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "bf0eb242-424f-4a8f-9a22-7abee0658abb",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.782657,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "5c52138e-efb1-45a8-a65f-e04150b28066",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -708,7 +708,7 @@
|
|||
"timestamp_end": 1680135212.856044
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "48475d5f-7a4c-4b70-9932-69d4870ce11e",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -807,16 +807,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "949a9e3d-95f1-417c-a61d-9be5ebedc0f6",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.782882,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "0c4dec77-4470-4351-add7-a118b3382da5",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -836,7 +836,7 @@
|
|||
"timestamp_end": 1680135212.8695679
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "18d33711-2db6-491a-a687-c7630a2abf1c",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -939,16 +939,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "91307af8-72ad-4c03-9690-93d8c6c44544",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.783427,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "39a0151a-59c7-4679-aba3-718855bf5b40",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -968,7 +968,7 @@
|
|||
"timestamp_end": 1680135212.631427
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "acbd6141-c45e-4513-922e-388d78cd706d",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -1071,16 +1071,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "9a09fc66-e53d-4af4-b03f-b723a5701a55",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.7838132,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "5834c7bf-8333-4264-a236-5a437e7028e5",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -1100,7 +1100,7 @@
|
|||
"timestamp_end": 1680135212.620405
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "c58f4d31-93a9-4b2a-a25e-3c140aaef6be",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -1203,16 +1203,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "c515e637-d58c-49e1-b992-039d3228e991",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.784089,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "6551e928-2faa-414b-b8c7-ef0739657ca2",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -1232,7 +1232,7 @@
|
|||
"timestamp_end": 1680135247.3946638
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "1c097e43-56cb-4d71-b871-766d2fcc8979",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -1347,16 +1347,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "85fb9670-3483-48b0-945c-69b61b090052",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.784485,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "0d1edf40-35e9-435b-b142-ee084c739bf2",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -1376,7 +1376,7 @@
|
|||
"timestamp_end": 1680135247.3946638
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "1653f855-b851-481b-87c7-6338a831a333",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -1491,16 +1491,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "60d8acde-509c-4910-b1a4-5a7563883170",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.7846851,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "9e1c0662-e10f-4c94-93b2-9205db641931",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -1520,7 +1520,7 @@
|
|||
"timestamp_end": 1680135252.528817
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "c87dbb3a-04f1-4509-bb8b-e2a630766678",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -1635,16 +1635,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "12f7f4e7-b7d9-4a95-b384-d95c401528b3",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.7848508,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "ef523e4f-0adb-4649-8043-397bf6fd0701",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -1664,7 +1664,7 @@
|
|||
"timestamp_end": 1680135252.528817
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "d54fef9b-a3b8-4c40-bfc6-83509476bcbb",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -1779,16 +1779,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "ec9d8422-217c-4081-8c7c-5cee1e88d25d",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.785014,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "d84de632-275e-447a-98e7-6809891e1c37",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -1808,7 +1808,7 @@
|
|||
"timestamp_end": 1680135212.644795
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "a1e65e89-e13e-4b67-8a79-8241dfcc52a3",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -1907,16 +1907,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "7bf2309a-097b-4408-ad29-cb2d6f0953a4",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.785722,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "4a5c02d5-a7f9-4363-9a8c-7ec53ebf2e00",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -1936,7 +1936,7 @@
|
|||
"timestamp_end": 1680135212.609024
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "cdebd621-4f74-4054-9f49-eb09c5183099",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -2035,16 +2035,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "e1bae123-aee2-4d94-b316-902f59a52320",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.785992,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "d298f334-7c67-44ce-870d-7757732a1498",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -2064,7 +2064,7 @@
|
|||
"timestamp_end": 1680135212.622383
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "f784d3d9-a81c-4602-86fb-1bb8a4f01223",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -2163,16 +2163,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "1621c4f8-60f1-4ba4-9d1d-e6b4be5abfad",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.78669,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "bec85699-34b7-4d47-8689-8f1fc9e9bb15",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -2192,7 +2192,7 @@
|
|||
"timestamp_end": 1680135212.729846
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "e9115acd-6dc5-4506-beec-609a471a40d2",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": null,
|
||||
|
@ -2295,16 +2295,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "4d60d1ab-a3ae-44a0-bdaf-d49a90b65a55",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.787083,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "59575f43-a6ef-4bd0-9166-6808cc45a4aa",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -2324,7 +2324,7 @@
|
|||
"timestamp_end": 1680135389.811421
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "e04753a3-c52b-45f3-bb7a-9aa9923e404e",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": [
|
||||
|
@ -2450,16 +2450,16 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "9e4e0672-6d25-4724-9dbf-327053664c84",
|
||||
"id": "hardcoded_for_test",
|
||||
"intercepted": false,
|
||||
"is_replay": null,
|
||||
"type": "http",
|
||||
"modified": false,
|
||||
"marked": "",
|
||||
"comment": "",
|
||||
"timestamp_created": 1689352406.7873752,
|
||||
"timestamp_created": 0,
|
||||
"client_conn": {
|
||||
"id": "be719c3c-a4d3-4d3b-8e56-bfd97f8318c7",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": [
|
||||
"127.0.0.1",
|
||||
0
|
||||
|
@ -2479,7 +2479,7 @@
|
|||
"timestamp_end": 1680135222.496895
|
||||
},
|
||||
"server_conn": {
|
||||
"id": "08be0284-d3f5-4dea-a475-923aa7d74434",
|
||||
"id": "hardcoded_for_test",
|
||||
"peername": null,
|
||||
"sockname": null,
|
||||
"address": [
|
||||
|
|
|
@ -11,6 +11,13 @@ from mitmproxy.tools.web.app import flow_to_json
|
|||
here = Path(__file__).parent.absolute()
|
||||
|
||||
|
||||
def hardcode_variable_fields_for_tests(flow: dict) -> None:
|
||||
flow["id"] = "hardcoded_for_test"
|
||||
flow["timestamp_created"] = 0
|
||||
flow["server_conn"]["id"] = "hardcoded_for_test"
|
||||
flow["client_conn"]["id"] = "hardcoded_for_test"
|
||||
|
||||
|
||||
def file_to_flows(path_name: Path) -> list[dict]:
|
||||
r = ReadHar()
|
||||
with open(path_name, "rb") as f:
|
||||
|
@ -20,6 +27,7 @@ def file_to_flows(path_name: Path) -> list[dict]:
|
|||
for entry in file_json:
|
||||
expected = r.request_to_flow(entry)
|
||||
flow_json = flow_to_json(expected)
|
||||
hardcode_variable_fields_for_tests(flow_json)
|
||||
flows.append(flow_json)
|
||||
|
||||
return flows
|
||||
|
@ -48,11 +56,6 @@ def test_har_to_flow(har_file: Path):
|
|||
for expected, actual in zip(expected_flows, actual_flows):
|
||||
actual = json.loads(json.dumps(actual))
|
||||
|
||||
actual["id"] = expected["id"]
|
||||
actual["timestamp_created"] = expected["timestamp_created"]
|
||||
actual["server_conn"]["id"] = expected["server_conn"]["id"]
|
||||
actual["client_conn"]["id"] = expected["client_conn"]["id"]
|
||||
|
||||
assert actual == expected
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue