Compare commits
1171 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
ed92031d87 | |
|
|
00f9b08f98 | |
|
|
8570167037 | |
|
|
8894fcabc0 | |
|
|
d7d7fbf917 | |
|
|
d7cd04f5af | |
|
|
7067201976 | |
|
|
25fade1fad | |
|
|
be3f658fbd | |
|
|
802ef42ab5 | |
|
|
c5f866738e | |
|
|
11c5829b6b | |
|
|
00cdaad3e2 | |
|
|
10e56ff441 | |
|
|
cd3534e411 | |
|
|
28d3544269 | |
|
|
e00f6bc34e | |
|
|
f6d8c88969 | |
|
|
c6e73e0892 | |
|
|
27d529b6c2 | |
|
|
c5b77cbedd | |
|
|
556ea3c813 | |
|
|
6b1ff56bc1 | |
|
|
ea87045f7c | |
|
|
e620c2d415 | |
|
|
9b7b150d6b | |
|
|
2480304699 | |
|
|
7a1ea6c68a | |
|
|
6b4139a490 | |
|
|
647cf76e25 | |
|
|
29f34e87e8 | |
|
|
08cc799f2c | |
|
|
323535e4cb | |
|
|
37bff429c7 | |
|
|
c509a0504a | |
|
|
f540e2e735 | |
|
|
f3a09ebf49 | |
|
|
26323ecac0 | |
|
|
2d1a37d8e8 | |
|
|
45f7e025a7 | |
|
|
49a4c7fd96 | |
|
|
0aef313fff | |
|
|
9817a273b5 | |
|
|
a28bc8c091 | |
|
|
6b8d2f475b | |
|
|
19deca6137 | |
|
|
6fed3975b3 | |
|
|
e81eecdc0f | |
|
|
6df5fc13ff | |
|
|
adb50a9a2f | |
|
|
8080545d5f | |
|
|
9c66dc12b4 | |
|
|
80f187d3ee | |
|
|
2ff0257dd4 | |
|
|
7779842490 | |
|
|
b9e0cd0f33 | |
|
|
0e5d5eefc7 | |
|
|
46ba79561a | |
|
|
c66cd2f11d | |
|
|
2accfd67bb | |
|
|
105f7f4451 | |
|
|
d6e3fa033b | |
|
|
67d5fa8253 | |
|
|
0d32708daf | |
|
|
5c9ca69fc2 | |
|
|
444feef736 | |
|
|
919e9a6f2b | |
|
|
222b5795af | |
|
|
2ed1e59058 | |
|
|
b898c8ac14 | |
|
|
e3dbe03d11 | |
|
|
31bf0a699d | |
|
|
ea2cc14201 | |
|
|
33bc4757b7 | |
|
|
7795121fd1 | |
|
|
0c82a77b83 | |
|
|
233bb9c94f | |
|
|
12fd83bb52 | |
|
|
7b1e93c116 | |
|
|
9b184cd33c | |
|
|
d6e3e6bd0e | |
|
|
2dfe800614 | |
|
|
cb32b30e0c | |
|
|
fd8ae6c510 | |
|
|
39986a9be2 | |
|
|
1e96255d2c | |
|
|
8db29b7410 | |
|
|
b7becf1faa | |
|
|
0ee3cb4830 | |
|
|
2a070fad3e | |
|
|
619b35222f | |
|
|
6ecd314036 | |
|
|
6128ecd275 | |
|
|
40ad4c4ae3 | |
|
|
91206f79e5 | |
|
|
0f074ce561 | |
|
|
c5582387d7 | |
|
|
58138140b0 | |
|
|
2964d71af2 | |
|
|
7ae81bc339 | |
|
|
ca482dc36f | |
|
|
a02339b121 | |
|
|
be0b93cf44 | |
|
|
cacc94b53d | |
|
|
3d91fb70cd | |
|
|
4c080fc340 | |
|
|
0846e4c0a8 | |
|
|
33a1783487 | |
|
|
92df579744 | |
|
|
ee7eda436e | |
|
|
1d571c0da4 | |
|
|
1ddd00c432 | |
|
|
0086f8585a | |
|
|
707baa976a | |
|
|
51ec81e1cd | |
|
|
7b95fd4acf | |
|
|
6cf11dbf23 | |
|
|
4402afceaf | |
|
|
acd85a5876 | |
|
|
bf91b7ef5b | |
|
|
901d58a5c1 | |
|
|
59e025abb3 | |
|
|
56176f83e4 | |
|
|
fce829ea0f | |
|
|
d9c4bef6a8 | |
|
|
a375243fd1 | |
|
|
597e47dcc9 | |
|
|
1ded8d1fe0 | |
|
|
94a3ad7350 | |
|
|
f21deed07f | |
|
|
66b7b5b1e6 | |
|
|
76b4ef8b0c | |
|
|
0bb5b964cf | |
|
|
2a8096b507 | |
|
|
c9a642c369 | |
|
|
9fbf64be51 | |
|
|
443fd9d022 | |
|
|
211696485d | |
|
|
5d65e75f5e | |
|
|
de7f2a0f4d | |
|
|
4bc3ef432b | |
|
|
34d11ae27b | |
|
|
0ef7184790 | |
|
|
2346942e7a | |
|
|
d527b66aaf | |
|
|
0a06cb7cee | |
|
|
743b8128e7 | |
|
|
b2ebdc9483 | |
|
|
f1cb9f36f6 | |
|
|
a44816372f | |
|
|
433e61dc15 | |
|
|
b0f564f4bd | |
|
|
c750aa1a98 | |
|
|
c420e2f5ce | |
|
|
2f9be6f7ed | |
|
|
e8d45da351 | |
|
|
a8bd2c8725 | |
|
|
a3fde1f285 | |
|
|
a970467716 | |
|
|
8d6ceca06e | |
|
|
9f15dd2003 | |
|
|
982653e8d3 | |
|
|
fb1464e3f7 | |
|
|
49768b12a3 | |
|
|
e3a878c083 | |
|
|
8bc7fe72d0 | |
|
|
1c0677d5f7 | |
|
|
18ef75ac1c | |
|
|
8921bc708e | |
|
|
55f0b1c16f | |
|
|
dbc392c229 | |
|
|
4ed06d565f | |
|
|
417503d9e1 | |
|
|
4f52291a84 | |
|
|
2f54903dcd | |
|
|
48e20ecc48 | |
|
|
1df5d7e70a | |
|
|
fb3a67531a | |
|
|
e2a7bb0582 | |
|
|
72bab12e1e | |
|
|
5da1f00b2c | |
|
|
610cbf7038 | |
|
|
1b344ded80 | |
|
|
d9a114e1b2 | |
|
|
41169ce4b1 | |
|
|
6e6175800e | |
|
|
63d9cfe4eb | |
|
|
4394eaf87f | |
|
|
b756e18468 | |
|
|
11a36d7b83 | |
|
|
fcf233e646 | |
|
|
5a4994959b | |
|
|
f7bb906902 | |
|
|
5d14ebc2b2 | |
|
|
f91ed7c2cd | |
|
|
9de2099f65 | |
|
|
8a7fdbde7d | |
|
|
8aab832a4b | |
|
|
9c8edf7462 | |
|
|
613e842aa6 | |
|
|
54248f842e | |
|
|
a84cb939f2 | |
|
|
f89f08a832 | |
|
|
209583b1bd | |
|
|
c13ffa75a1 | |
|
|
c8fc37fcc6 | |
|
|
de89346ef5 | |
|
|
f01f33d4a7 | |
|
|
080674299f | |
|
|
e3031c8265 | |
|
|
8773dfbe13 | |
|
|
035bc86efd | |
|
|
58dc348933 | |
|
|
ba1816da4e | |
|
|
69ee61be77 | |
|
|
b8e3fb32a9 | |
|
|
02c8cfbafb | |
|
|
1aefabd749 | |
|
|
1b23529f4f | |
|
|
0f715f9e73 | |
|
|
c5f3ec10c5 | |
|
|
9455853d6c | |
|
|
c4bd34a4c7 | |
|
|
8b7591819a | |
|
|
12ca0de857 | |
|
|
ab33df2426 | |
|
|
545326c7ed | |
|
|
a9cea22d7f | |
|
|
8634deaf41 | |
|
|
b1874a83e2 | |
|
|
2567f7d451 | |
|
|
d266955d14 | |
|
|
2c93493418 | |
|
|
2ff48ae540 | |
|
|
900f5a0815 | |
|
|
61fa8a19c7 | |
|
|
627bcccb57 | |
|
|
90c6150ffb | |
|
|
f55326baac | |
|
|
3e042440c1 | |
|
|
8e180a5473 | |
|
|
e9faa6db9c | |
|
|
2e6186674f | |
|
|
2ce8280073 | |
|
|
cbbd4ed626 | |
|
|
c2e103dd6b | |
|
|
0005ffd841 | |
|
|
a4c8da133b | |
|
|
0c8ecfb75e | |
|
|
f8a11c9efe | |
|
|
c4e2d79805 | |
|
|
a784ac3be7 | |
|
|
17feef422a | |
|
|
149bc5bf66 | |
|
|
ccb129e0b8 | |
|
|
44481aae22 | |
|
|
cf4b31d705 | |
|
|
2f04773bdc | |
|
|
afecae6c58 | |
|
|
63b3824fed | |
|
|
36ffa76ad4 | |
|
|
27b4c12c68 | |
|
|
1086dc7dcb | |
|
|
4efd35d980 | |
|
|
689a5e2a34 | |
|
|
4d0e594fe9 | |
|
|
801f32a4cd | |
|
|
321edde504 | |
|
|
da4b1ea312 | |
|
|
378f5034fd | |
|
|
cdb58f2d2b | |
|
|
c68f4cc028 | |
|
|
695e806827 | |
|
|
c6e38fe97b | |
|
|
6d2e1b7750 | |
|
|
acd0e62ad5 | |
|
|
950b8236ef | |
|
|
9951912b92 | |
|
|
2238e4888a | |
|
|
be1f1c3887 | |
|
|
7c97c453fa | |
|
|
2663d6a318 | |
|
|
bc8af249df | |
|
|
e4c17013ac | |
|
|
19835abf4a | |
|
|
70cdceca69 | |
|
|
f90a3c0416 | |
|
|
6f0f7b2439 | |
|
|
f7b97f3257 | |
|
|
9ef0c310a4 | |
|
|
bd3f64d087 | |
|
|
fef0b7eefe | |
|
|
35154843a5 | |
|
|
56f5bdbf0b | |
|
|
c68e503650 | |
|
|
de21eda655 | |
|
|
2a6a9af188 | |
|
|
4220b4d25c | |
|
|
04d053ab4c | |
|
|
55c53559fe | |
|
|
41165ad59b | |
|
|
607ca0dac1 | |
|
|
9c3096eb6a | |
|
|
568d8fbd00 | |
|
|
b0fa7010bb | |
|
|
399bc2794f | |
|
|
302dd7efd3 | |
|
|
1c8eb5b9e1 | |
|
|
716ec572d9 | |
|
|
6756a6c02f | |
|
|
fe48eda608 | |
|
|
c361a4aa28 | |
|
|
302b0b2457 | |
|
|
fcbeb8fe12 | |
|
|
b76ee7b33c | |
|
|
4bb05dad42 | |
|
|
6521c42ad1 | |
|
|
3b0ab5403f | |
|
|
433f43bab0 | |
|
|
e5e51cae12 | |
|
|
4e9ef9a523 | |
|
|
7b88461066 | |
|
|
c45b85759a | |
|
|
8b3b797992 | |
|
|
29f4f8d05e | |
|
|
d0903ada37 | |
|
|
0810ed92d2 | |
|
|
cfbcbe676e | |
|
|
6a8c98554c | |
|
|
1e105fd0dd | |
|
|
c070c739e6 | |
|
|
4371ac9118 | |
|
|
5bc4a0d114 | |
|
|
27bc9a7eb7 | |
|
|
d79e60848d | |
|
|
9503559bc3 | |
|
|
898d8f496e | |
|
|
92aa88f412 | |
|
|
ddeac72e33 | |
|
|
4057195e1c | |
|
|
2f09d4a1f8 | |
|
|
372e6912c8 | |
|
|
62eaac0fb8 | |
|
|
a1a2ae106b | |
|
|
521404eebb | |
|
|
4083288281 | |
|
|
60838fe184 | |
|
|
fa9ad5633a | |
|
|
0c3acf06a7 | |
|
|
b2e12e0725 | |
|
|
5f29389f75 | |
|
|
89e2bb1e09 | |
|
|
a5e1f3d87f | |
|
|
4435c3c233 | |
|
|
658b8caad0 | |
|
|
a3cad69bfc | |
|
|
ce5f26886e | |
|
|
0f75ff5db3 | |
|
|
97a9423d72 | |
|
|
234556f465 | |
|
|
a314f3085c | |
|
|
d28e05e99d | |
|
|
ae3cc1ec69 | |
|
|
f586986c0e | |
|
|
c50d1a2018 | |
|
|
b6a72f1006 | |
|
|
a3d46629ae | |
|
|
85aeff183c | |
|
|
d4a1b103dc | |
|
|
89d720fa22 | |
|
|
33014ac3fa | |
|
|
925d684189 | |
|
|
8641a2e91e | |
|
|
3e90acfc72 | |
|
|
6fa28f2789 | |
|
|
81be6a6c25 | |
|
|
0ecdf2f0b7 | |
|
|
598e8361b2 | |
|
|
9af4d372dd | |
|
|
9e8a1cff54 | |
|
|
6116a622d7 | |
|
|
6e3cc2546d | |
|
|
1b6d25abc5 | |
|
|
5f9f4bc8a4 | |
|
|
ad6ac8d8af | |
|
|
17b89cdb23 | |
|
|
7f60c5fe28 | |
|
|
14145f02dd | |
|
|
24618d0137 | |
|
|
d246c2366a | |
|
|
c0473a34cb | |
|
|
877bf98320 | |
|
|
d568b13180 | |
|
|
0eb5c6ab2d | |
|
|
6364342643 | |
|
|
61159d9d34 | |
|
|
6ad7e5f00a | |
|
|
61847124cc | |
|
|
b43beb3f0a | |
|
|
cc83adddd3 | |
|
|
e2b67864f3 | |
|
|
41acdba54d | |
|
|
7b9d411a05 | |
|
|
0d65694696 | |
|
|
aabf7d33f8 | |
|
|
14895db571 | |
|
|
da79c894dd | |
|
|
248ac41cfa | |
|
|
7dcdbd1796 | |
|
|
3385d02289 | |
|
|
7ec649e8dd | |
|
|
7363536234 | |
|
|
bad34ff70e | |
|
|
5e1e65706f | |
|
|
88bc0dce51 | |
|
|
2dfbab6208 | |
|
|
9f0980c789 | |
|
|
502b6328c4 | |
|
|
a0af1f2e13 | |
|
|
250fbbec8c | |
|
|
059cd4c894 | |
|
|
ca2628227b | |
|
|
f9796b7c03 | |
|
|
325c7630e0 | |
|
|
a23bbf5537 | |
|
|
e1f9919bc7 | |
|
|
154dfa0cc5 | |
|
|
4ba8336a54 | |
|
|
06d92652a3 | |
|
|
6d9417ed63 | |
|
|
ed8db060b0 | |
|
|
06756c524d | |
|
|
4501a99d37 | |
|
|
fd869455ae | |
|
|
2c34116613 | |
|
|
3bb73c4255 | |
|
|
a57637dd65 | |
|
|
7331ad7fe6 | |
|
|
2f4d623f86 | |
|
|
bc78163159 | |
|
|
3e43c751e6 | |
|
|
4c54eaabca | |
|
|
ea0f10c381 | |
|
|
933bdbf313 | |
|
|
2a910d12ff | |
|
|
943f9446cf | |
|
|
1e5cc7bf45 | |
|
|
a78cdd0811 | |
|
|
97c263a915 | |
|
|
bb24c88516 | |
|
|
e96f793e3a | |
|
|
b37355a8a9 | |
|
|
81e100366d | |
|
|
305e9962ab | |
|
|
1c68a7b4cb | |
|
|
e40cafbee6 | |
|
|
fdda98783d | |
|
|
873a2618a3 | |
|
|
304e50ed28 | |
|
|
5f721f1ace | |
|
|
876719f446 | |
|
|
4c0dbab8ad | |
|
|
91a20aea51 | |
|
|
53beeceed1 | |
|
|
09f0dc33ff | |
|
|
2903a3da6d | |
|
|
f6d130c648 | |
|
|
8e4a7bad84 | |
|
|
d1278d8725 | |
|
|
f5c1284480 | |
|
|
b5c1361046 | |
|
|
de29db8af6 | |
|
|
29c80fc200 | |
|
|
a85c880f0f | |
|
|
204e81a844 | |
|
|
46c379a2a2 | |
|
|
8359cea0a5 | |
|
|
df5979df67 | |
|
|
df44118115 | |
|
|
073d48812d | |
|
|
c4293f03d2 | |
|
|
eef7454709 | |
|
|
bc3bc2f4d0 | |
|
|
034cf77c3b | |
|
|
2c109824f5 | |
|
|
ede22dd610 | |
|
|
c8afb25c8a | |
|
|
2feded093a | |
|
|
668f888fc2 | |
|
|
5926653248 | |
|
|
fa97ac47d0 | |
|
|
efe2c6c3d2 | |
|
|
a86b4e4ec8 | |
|
|
35023dbf03 | |
|
|
2bcffb5388 | |
|
|
b3d68984be | |
|
|
019ea24391 | |
|
|
7e470905f8 | |
|
|
54ac9beff0 | |
|
|
282d629acd | |
|
|
6d8de7e92f | |
|
|
e7e1ce0342 | |
|
|
ef26155c33 | |
|
|
037b23ad4d | |
|
|
56ae85b4ff | |
|
|
af8856c852 | |
|
|
7339fc0bab | |
|
|
7f64f58ebc | |
|
|
dbb7eb6696 | |
|
|
25a6cd28d5 | |
|
|
9892a9e288 | |
|
|
4946166f84 | |
|
|
40faa677b7 | |
|
|
9cdfdf8f96 | |
|
|
ec202be326 | |
|
|
69fd5015e3 | |
|
|
42417ff600 | |
|
|
543b8ab82a | |
|
|
5cb96bfbc2 | |
|
|
116620a093 | |
|
|
72f6d48663 | |
|
|
4441f1a0aa | |
|
|
8fac41d808 | |
|
|
bad437ea4b | |
|
|
979de7fda2 | |
|
|
67e956eda9 | |
|
|
fe1e2e0894 | |
|
|
324d2a2ad7 | |
|
|
1cfdf18a58 | |
|
|
4528ed4410 | |
|
|
d031c3c3f5 | |
|
|
b85e025dd8 | |
|
|
9a9a995bd3 | |
|
|
b94a486e4c | |
|
|
430caa941c | |
|
|
b7cb210653 | |
|
|
ef62f92ffa | |
|
|
e6a473cb21 | |
|
|
092c1c9dec | |
|
|
794ac38109 | |
|
|
30c85e8acd | |
|
|
feaa22734c | |
|
|
942b7d1937 | |
|
|
f92b3345d9 | |
|
|
dafc5ccdef | |
|
|
a25d4c117d | |
|
|
ae83960769 | |
|
|
f2c760d27c | |
|
|
38461fb037 | |
|
|
b387bc1980 | |
|
|
b23ac6ec3d | |
|
|
7c7540817a | |
|
|
ef6e92637c | |
|
|
5c615c7e07 | |
|
|
ec53ca4488 | |
|
|
fa91ba51c8 | |
|
|
eb048a9261 | |
|
|
1adb18313c | |
|
|
d76bdb196c | |
|
|
137244daf2 | |
|
|
667da38de5 | |
|
|
6ad3711b8c | |
|
|
cfd0a3a5c2 | |
|
|
4114c83f6b | |
|
|
99c4025006 | |
|
|
7340d5d7b2 | |
|
|
566c454035 | |
|
|
e1e4e17180 | |
|
|
44321a68e6 | |
|
|
8e50da0a3f | |
|
|
afb6199383 | |
|
|
1403160a72 | |
|
|
72be53e56f | |
|
|
63bc8f92e4 | |
|
|
f1fa81b079 | |
|
|
ba3e29b419 | |
|
|
cfa3068a73 | |
|
|
b93bc46944 | |
|
|
ff3076a091 | |
|
|
39aeddf0a0 | |
|
|
6705c92ece | |
|
|
f76e2476e5 | |
|
|
aa40d01fdc | |
|
|
200741e55d | |
|
|
42aeeeb6ea | |
|
|
59d419dea3 | |
|
|
7c7b410c30 | |
|
|
11849eadbf | |
|
|
d5c681df51 | |
|
|
a1484bf1d3 | |
|
|
1ef5e684d2 | |
|
|
dc72b07738 | |
|
|
e7e268bac6 | |
|
|
5034e510f1 | |
|
|
3c0fba54d3 | |
|
|
9fd76ea9e0 | |
|
|
4cc19fe5b1 | |
|
|
87425aebac | |
|
|
441489b509 | |
|
|
bfa08cfdea | |
|
|
4cc46abedf | |
|
|
e4007f65d8 | |
|
|
68fc09a1db | |
|
|
9866cab7d4 | |
|
|
6497604a5e | |
|
|
e33c01e8fd | |
|
|
535649b2fa | |
|
|
0bd0253925 | |
|
|
1dded94a31 | |
|
|
b18c16cb6e | |
|
|
8880ea2a28 | |
|
|
cb62edfa7b | |
|
|
37b03782b6 | |
|
|
9cc2aa92ca | |
|
|
a049476ee8 | |
|
|
4ec67dbe23 | |
|
|
1c143ed3cd | |
|
|
903f6cb13f | |
|
|
31f43d1e6e | |
|
|
b0a65cd710 | |
|
|
d35d28479e | |
|
|
79d277a8ed | |
|
|
b28ddefb7a | |
|
|
11e409764b | |
|
|
0e14972e1a | |
|
|
5c43de7540 | |
|
|
73d2d07e5e | |
|
|
a8fbbe3ce0 | |
|
|
90f87161ea | |
|
|
d0038161de | |
|
|
402421e6e9 | |
|
|
fa735e6bf0 | |
|
|
2298457741 | |
|
|
5578c6d281 | |
|
|
602c96e3a4 | |
|
|
9b2475bd4b | |
|
|
0e8ed9e246 | |
|
|
670e0d8de4 | |
|
|
9bab458b93 | |
|
|
8d480538ab | |
|
|
054e8d9173 | |
|
|
376b7e0e45 | |
|
|
1c9c826701 | |
|
|
ae921ffbd8 | |
|
|
35ae7ff019 | |
|
|
6fb1fc2f35 | |
|
|
0ee62ae125 | |
|
|
6b5ef21bdb | |
|
|
03f26c71c4 | |
|
|
9f7bae9f75 | |
|
|
3ce7843c3d | |
|
|
569cde1e34 | |
|
|
95a2cc55dd | |
|
|
ca560a4d40 | |
|
|
de91a5c198 | |
|
|
39ca8041b2 | |
|
|
0e5f8ec6a0 | |
|
|
ff6128def3 | |
|
|
37d81acb90 | |
|
|
1099557bc1 | |
|
|
bb51574f83 | |
|
|
de47716b5a | |
|
|
d2546f11ab | |
|
|
31d736242b | |
|
|
f19778825d | |
|
|
fa07a2fea8 | |
|
|
bfe3b2489a | |
|
|
2ae36e3963 | |
|
|
a16ed4a8f3 | |
|
|
cdfe7549db | |
|
|
0ad7ff1d66 | |
|
|
778bd3828d | |
|
|
62109a41b9 | |
|
|
92a92ad28f | |
|
|
7f8052a352 | |
|
|
8fec13529b | |
|
|
f5da03edbf | |
|
|
697e07a608 | |
|
|
61296efb17 | |
|
|
29c1b9ab6a | |
|
|
41fd77a02a | |
|
|
9b77d8d3c8 | |
|
|
936fc904f1 | |
|
|
4157172864 | |
|
|
efc160efb1 | |
|
|
8dce163818 | |
|
|
bd063eeb0b | |
|
|
41530fa754 | |
|
|
f320207573 | |
|
|
763443b302 | |
|
|
0154af5f1a | |
|
|
72b26aa13c | |
|
|
319f5072d2 | |
|
|
e072031ed0 | |
|
|
2557157eb7 | |
|
|
0f6aefb41c | |
|
|
b48967ac9f | |
|
|
0b99e9f22b | |
|
|
2ea63a5491 | |
|
|
5d318aabe1 | |
|
|
5188b915aa | |
|
|
2628171e0d | |
|
|
4d0241da65 | |
|
|
3b6efef1b9 | |
|
|
dece792fb3 | |
|
|
152460428d | |
|
|
1de58b023e | |
|
|
d5856bae8c | |
|
|
4a61d5e04a | |
|
|
1fc5a6568f | |
|
|
9fd48757a3 | |
|
|
0b04b5290b | |
|
|
08b91207a0 | |
|
|
5beee6364b | |
|
|
4dbc636b2f | |
|
|
140c3205fd | |
|
|
27100e3ea3 | |
|
|
acb47274c2 | |
|
|
d7ce2f881d | |
|
|
250874c181 | |
|
|
76da4993dc | |
|
|
e3be293e40 | |
|
|
5444f1ac93 | |
|
|
404876cbc3 | |
|
|
068d062f0b | |
|
|
f714fcbcad | |
|
|
07481b1589 | |
|
|
15a9d979b4 | |
|
|
3574486ac4 | |
|
|
f79afa3724 | |
|
|
0356fc1c57 | |
|
|
bd5a204e80 | |
|
|
119d3b619d | |
|
|
d80e0b7181 | |
|
|
51c39f291b | |
|
|
dc1a32189c | |
|
|
7370316386 | |
|
|
e87fa0522a | |
|
|
460eae8ffe | |
|
|
62059ae29e | |
|
|
fc582f1f41 | |
|
|
68a2b2d2f1 | |
|
|
cbdfdc697d | |
|
|
ac2f8fa3c8 | |
|
|
85325a643e | |
|
|
708cc5aeb6 | |
|
|
74809f6196 | |
|
|
825a8a6dde | |
|
|
dce5e1d242 | |
|
|
82119c2110 | |
|
|
3db2367ef3 | |
|
|
6b70b495b3 | |
|
|
32640a9d32 | |
|
|
cd84970fc6 | |
|
|
311881d4d1 | |
|
|
3d3097dc47 | |
|
|
2a26a78f3d | |
|
|
ede7df4ef1 | |
|
|
86d0e42fa4 | |
|
|
2f107ddc74 | |
|
|
310083a11e | |
|
|
6c75cb3d00 | |
|
|
7e97ed412c | |
|
|
6c34178b5c | |
|
|
844c23d572 | |
|
|
195abfc18a | |
|
|
0fb503015f | |
|
|
e41abb02aa | |
|
|
c4bdea4b25 | |
|
|
37550ea85d | |
|
|
8dd8451506 | |
|
|
0f1703a2ca | |
|
|
a84dda3ed4 | |
|
|
30d03cfa17 | |
|
|
62275934dc | |
|
|
fd955e3db5 | |
|
|
e6b4e167a8 | |
|
|
ea1a7b76ae | |
|
|
6e1f421ac2 | |
|
|
c2da541d6e | |
|
|
f0bf4cdd9f | |
|
|
501aadfc60 | |
|
|
bbf6a4a80c | |
|
|
c0e12b81dd | |
|
|
bf003df42e | |
|
|
13fc5b7ca0 | |
|
|
a7ca363b2d | |
|
|
f657a90997 | |
|
|
870e09552f | |
|
|
3620334c41 | |
|
|
a84f288e24 | |
|
|
04c9ccb5cd | |
|
|
ece330703d | |
|
|
c632346ab9 | |
|
|
4d71bba50e | |
|
|
3f3f9e9c0f | |
|
|
bcbdbd65a4 | |
|
|
a5fae9180d | |
|
|
07745d3584 | |
|
|
7c42440a9d | |
|
|
0887fcb590 | |
|
|
583cf901bc | |
|
|
7265f3007f | |
|
|
e1908c90f9 | |
|
|
c6b264ee36 | |
|
|
2e75a53327 | |
|
|
d71d873053 | |
|
|
104feddd96 | |
|
|
db9b241f22 | |
|
|
3d39ff0d5d | |
|
|
bc96085f39 | |
|
|
d7afe5d029 | |
|
|
815135ed5a | |
|
|
ab8f7373de | |
|
|
6870a6d588 | |
|
|
8732f726fe | |
|
|
07805fae28 | |
|
|
b8e09474da | |
|
|
0e280b40fd | |
|
|
cb427e3143 | |
|
|
4e2f2d166b | |
|
|
eda3bd7ffa | |
|
|
2206a5b0e7 | |
|
|
24a2d4e75c | |
|
|
7594d043ec | |
|
|
b8ef07d3cf | |
|
|
62f8c101b6 | |
|
|
d1f3a045dd | |
|
|
15e7100ef9 | |
|
|
8f603e90ca | |
|
|
4c78c9918c | |
|
|
b815b8ed95 | |
|
|
039697d10e | |
|
|
0268b081c0 | |
|
|
2d14abee6f | |
|
|
d078d285ac | |
|
|
56317e4606 | |
|
|
deaddbf293 | |
|
|
85b85ca513 | |
|
|
7b0c84ac84 | |
|
|
af53237363 | |
|
|
0853e6937c | |
|
|
974b724bab | |
|
|
f7732deb23 | |
|
|
8449c1afeb | |
|
|
dd36549216 | |
|
|
3d9948c188 | |
|
|
66fe26eeb8 | |
|
|
819085b3dd | |
|
|
1f14a73323 | |
|
|
f9f81ce904 | |
|
|
617a7c5b7d | |
|
|
0cf921dd32 | |
|
|
2472aa90e9 | |
|
|
fee90a8dfd | |
|
|
7d7357b5c2 | |
|
|
dc8cf59061 | |
|
|
42444f6856 | |
|
|
9328eca0ae | |
|
|
5dcc03540b | |
|
|
96b80afe86 | |
|
|
baddf607d9 | |
|
|
a9de5f60e0 | |
|
|
be6fbf9db4 | |
|
|
0a6ee2f917 | |
|
|
cc3085169a | |
|
|
198f72cac1 | |
|
|
07e2fc7edd | |
|
|
7513cb7f4d | |
|
|
75f8dea685 | |
|
|
10285be765 | |
|
|
30b9a1bb5a | |
|
|
fe968563de | |
|
|
95227508ba | |
|
|
f40e815d2f | |
|
|
f9796ff5ff | |
|
|
6c49c9f74a | |
|
|
31c19ccd10 | |
|
|
32417157cd | |
|
|
f0ec07340e | |
|
|
bed8d116ee | |
|
|
b774284deb | |
|
|
3fa9d37686 | |
|
|
d268153d9d | |
|
|
e0d13290c5 | |
|
|
50e086056a | |
|
|
34d21df6f7 | |
|
|
b6463d2300 | |
|
|
17d8dc577e | |
|
|
c829d28e19 | |
|
|
e7f9708e46 | |
|
|
34f5899886 | |
|
|
293fa2bd47 | |
|
|
2be16ae5cc | |
|
|
7a3da13c75 | |
|
|
31f514acb5 | |
|
|
44ea0eabe6 | |
|
|
f869ba53b2 | |
|
|
647dd2fdc2 | |
|
|
291f92aec2 | |
|
|
ff8bb64ceb | |
|
|
93aaba960e | |
|
|
4c8d59f581 | |
|
|
5d1a6f9e67 | |
|
|
0051116908 | |
|
|
8b3ff229f0 | |
|
|
92a6cd5eb6 | |
|
|
14a14637a8 | |
|
|
fe43b0cd14 | |
|
|
1aa80d7d57 | |
|
|
4ef4f4f73f | |
|
|
4b2552b198 | |
|
|
c25d04cda8 | |
|
|
bf65e1c08f | |
|
|
ab29198641 | |
|
|
08ef7274ba | |
|
|
bc414f836f | |
|
|
4816724076 | |
|
|
e254a39b3b | |
|
|
d98d7cc3d5 | |
|
|
89e0088aaf | |
|
|
cacec561b6 | |
|
|
61aa70c320 | |
|
|
3c1dd9d200 | |
|
|
67bd84b077 | |
|
|
bd56f94ee0 | |
|
|
8525f2d752 | |
|
|
caaaa33958 | |
|
|
946c27ad20 | |
|
|
07a042f732 | |
|
|
6737edd513 | |
|
|
5b61be2af5 | |
|
|
e9e025dd3b | |
|
|
04cd8f506d | |
|
|
b61062becd | |
|
|
8975542371 | |
|
|
46a6494a67 | |
|
|
f81fa71ab8 | |
|
|
64a171727e | |
|
|
cb91bb623b | |
|
|
77dec42e60 | |
|
|
260a990f9c | |
|
|
a97c60b501 | |
|
|
d36d7aa50f | |
|
|
751825a493 | |
|
|
926bea4721 | |
|
|
3971e918e9 | |
|
|
1a13135638 | |
|
|
ca4b26f01a | |
|
|
397fb46732 | |
|
|
31a0bbfa6c | |
|
|
983779fc91 | |
|
|
5f91b14413 | |
|
|
c6c8fcb270 | |
|
|
35278d79ca | |
|
|
e38d5c165c | |
|
|
28d5717170 | |
|
|
5f0153548f | |
|
|
d66815e44d | |
|
|
98663e797a | |
|
|
2a89114402 | |
|
|
67a9e23061 | |
|
|
a5b2931bbd | |
|
|
66bbc9c89d | |
|
|
beb60fe902 | |
|
|
8b58a2be0b | |
|
|
74e63ee12c | |
|
|
337c0861b1 | |
|
|
92e162f639 | |
|
|
b2530469dc | |
|
|
a7eb25014a | |
|
|
0f15b10198 | |
|
|
1025eae405 | |
|
|
bad439942d | |
|
|
d5be6565b5 | |
|
|
cf69cdfe05 | |
|
|
d2e0000076 | |
|
|
efa6b0cb8b | |
|
|
242cfa7adf | |
|
|
9e6388f001 | |
|
|
3c9715f17d | |
|
|
e0da84a7f0 | |
|
|
1f2ea65d95 | |
|
|
836ecf6dd3 | |
|
|
5649b4fde6 | |
|
|
41fac8cbf2 | |
|
|
4660d35473 | |
|
|
59dbec80e7 | |
|
|
6b386b5cf2 | |
|
|
072a292a4b | |
|
|
5213bd30dd | |
|
|
494808babf | |
|
|
fda5b3fee4 | |
|
|
c792710f50 | |
|
|
04c31f3a71 | |
|
|
e3a67a34bf | |
|
|
58b281234b | |
|
|
f351792c08 | |
|
|
ea23052e02 | |
|
|
ce9d41c2c0 | |
|
|
474dcc672c | |
|
|
078183a009 | |
|
|
def69bc5ab | |
|
|
184dad25dd | |
|
|
d81b5254c3 | |
|
|
4ea2933c65 | |
|
|
77731b6ed4 | |
|
|
6f28ab19f6 | |
|
|
aae693d698 | |
|
|
8bc07977a9 | |
|
|
d9557522f2 | |
|
|
ac90de8a43 | |
|
|
ace0757204 | |
|
|
5df1431d32 | |
|
|
5487a59d5b | |
|
|
eb16dde4c3 | |
|
|
fd3890fc87 | |
|
|
5adeaec74d | |
|
|
2ad1ec912e | |
|
|
eb648a5588 | |
|
|
d0c7d02345 | |
|
|
f64a5322bf | |
|
|
f2d60f2ed0 | |
|
|
71d4756047 | |
|
|
828917b79d | |
|
|
812a22b2ca | |
|
|
1d0b98440f | |
|
|
b523244793 | |
|
|
f8eaf89656 | |
|
|
64ef4e12c7 | |
|
|
9f565f9227 | |
|
|
506c7b040d | |
|
|
eb24030e57 | |
|
|
9c91fe8dba | |
|
|
fc1634d0f6 | |
|
|
1908c6c23e | |
|
|
dd6519b82f | |
|
|
5aa7ad577b | |
|
|
4c96ef8b92 | |
|
|
41ae24a848 | |
|
|
9ab2e17716 | |
|
|
fb85f78137 | |
|
|
6bc76e6b84 | |
|
|
7fc2d56aa7 | |
|
|
9774c8c450 | |
|
|
b9aa4e0d83 | |
|
|
f3eaf96ed0 | |
|
|
2c48754ea9 | |
|
|
e341af50c2 | |
|
|
9cfc5b90b0 | |
|
|
7898e58af7 | |
|
|
6bbbafcaaa | |
|
|
2a182f194b | |
|
|
6a9645ed72 | |
|
|
9b3defe208 | |
|
|
64b93a505b | |
|
|
36203a3c78 | |
|
|
4c55eeaac7 | |
|
|
afcd47fd01 | |
|
|
86a7b6bf29 | |
|
|
fa5068fb63 | |
|
|
fa7539b63d | |
|
|
22a879ca68 | |
|
|
368f5b8a39 | |
|
|
1a6eb881a5 | |
|
|
f7ecbfd323 | |
|
|
fa34ee782b | |
|
|
f1bd23656a | |
|
|
a04f5d2cfd | |
|
|
0399382730 | |
|
|
3b37755544 | |
|
|
f1a35a08ef | |
|
|
e8e5f2f92c | |
|
|
6d7371bf6b | |
|
|
244177d296 | |
|
|
79eca83e71 | |
|
|
d5f1b3eb3f | |
|
|
1a4c949e5d | |
|
|
1efd816035 | |
|
|
2eb7d02d4e | |
|
|
9fd010b30e | |
|
|
035d844f1d | |
|
|
85fdf0f6a5 | |
|
|
f765b0d8f2 | |
|
|
ad06a45345 | |
|
|
c7704af0e7 | |
|
|
c62fb43eea | |
|
|
2491637b3d | |
|
|
dc15773323 | |
|
|
9283dff948 | |
|
|
7224a5e0ae | |
|
|
f3091d9cb3 | |
|
|
ba9e5b5b46 | |
|
|
d7fe2318c9 | |
|
|
9f74004026 | |
|
|
77c94004e8 | |
|
|
7f18216d7e | |
|
|
5a52728c8c | |
|
|
deeaf020c0 | |
|
|
12dc0cdaeb | |
|
|
5dbce19ba4 | |
|
|
893c2dc937 | |
|
|
4cf44ffe0c | |
|
|
cb4206bef2 | |
|
|
7e68faa1fb | |
|
|
a80a4645a9 | |
|
|
069c533276 | |
|
|
395c2bc7ec | |
|
|
3b843238a2 | |
|
|
625a0a3aad | |
|
|
949963cfc8 | |
|
|
a854201606 | |
|
|
629c133762 | |
|
|
edcb67734b | |
|
|
3a0033cf51 | |
|
|
250bd54157 | |
|
|
545ef6eb40 | |
|
|
9027540376 | |
|
|
13e1e5649c | |
|
|
dd1c2ed5e2 | |
|
|
1988aa817a | |
|
|
8007988979 | |
|
|
9d94720551 | |
|
|
6957b9fa38 | |
|
|
b896ffb938 | |
|
|
e1100acbaf | |
|
|
d9535fba89 | |
|
|
2a2e737a00 | |
|
|
4c48d57c8b | |
|
|
bd9678fbba | |
|
|
cd7bb24c3b | |
|
|
f2e1dd6f4f | |
|
|
860fbf4aa5 | |
|
|
c92df5a3dc | |
|
|
b0169379ae | |
|
|
07512a9cbf | |
|
|
3c1fbe572d | |
|
|
087a45f208 | |
|
|
55452d09cb | |
|
|
7aeff6dae9 | |
|
|
d8924d5b5c | |
|
|
ce2e2e9095 | |
|
|
50a5b7567f | |
|
|
49e55913f4 | |
|
|
298d0eea0c | |
|
|
d8dd240acf | |
|
|
e9c33bd716 | |
|
|
bd9d26e599 | |
|
|
3849c720ea | |
|
|
1db27c92c5 | |
|
|
5af5889b7f | |
|
|
64b7e4cd22 | |
|
|
56492a2519 | |
|
|
32f142a251 | |
|
|
d50eb5695e | |
|
|
68cd6f215b | |
|
|
1084170731 | |
|
|
86c7929132 | |
|
|
6bf371a05b | |
|
|
8a6e9626e7 | |
|
|
f7b90b96dd | |
|
|
74081db93b | |
|
|
0aa544e59c | |
|
|
af36905521 | |
|
|
93218e35ee | |
|
|
062e2ab0f8 | |
|
|
16b1e6b72d | |
|
|
7ffca41abb | |
|
|
bfceed782b | |
|
|
c9225a1c52 | |
|
|
0f4ce03652 |
|
|
@ -1,46 +0,0 @@
|
|||
version: 2.1
|
||||
|
||||
jobs:
|
||||
test-ubuntu-arm64:
|
||||
machine:
|
||||
image: ubuntu-2004:current
|
||||
resource_class: arm.medium
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Environment
|
||||
command: |
|
||||
bin/environment.sh
|
||||
- run:
|
||||
name: Install prerequisites
|
||||
command: |
|
||||
bin/install_prerequisites_ubuntu.sh
|
||||
sudo apt update -qq
|
||||
sudo apt install -y -qq libxml2-dev libxslt-dev libxml2-utils libcurl4-openssl-dev
|
||||
- run:
|
||||
name: Install rust
|
||||
command: |
|
||||
bin/install_rust.sh
|
||||
- run:
|
||||
name: Tests units
|
||||
command: |
|
||||
bin/test/test_prerequisites.sh
|
||||
bin/test/test_unit.sh
|
||||
- run:
|
||||
name: Build release
|
||||
command: |
|
||||
bin/release/release.sh
|
||||
- run:
|
||||
name: Integration tests
|
||||
command: |
|
||||
PATH="${PWD}/target/release:${PATH}"
|
||||
export PATH
|
||||
bin/test/test_prerequisites.sh
|
||||
bin/test/test_integ.sh
|
||||
- store_artifacts:
|
||||
path: integration/build/*.log
|
||||
|
||||
workflows:
|
||||
tests-arm64:
|
||||
jobs:
|
||||
- test-ubuntu-arm64
|
||||
|
|
@ -67,8 +67,9 @@ jobs:
|
|||
echo "base_ref=$(jq -rc .base.ref ${pr_detail_file})" | tee -a "${GITHUB_OUTPUT}"
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: true
|
||||
ref: ${{ env.BASE_REF }}
|
||||
token: ${{ secrets.HURL_BOT_TOKEN }}
|
||||
fetch-depth: 0
|
||||
|
|
@ -87,7 +88,7 @@ jobs:
|
|||
echo "ORDER=${order}" | tee -a "${GITHUB_ENV}"
|
||||
|
||||
- name: Init git bot context
|
||||
uses: crazy-max/ghaction-import-gpg@v6.1.0
|
||||
uses: crazy-max/ghaction-import-gpg@v6.3.0
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY }}
|
||||
passphrase: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY_PASSPHRASE }}
|
||||
|
|
@ -287,21 +288,12 @@ jobs:
|
|||
gh pr comment "${PR_NUMBER}" --body "${comment}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Close pull request
|
||||
- name: Final comment
|
||||
if: ${{ github.event.comment.body == '/accept' || github.event.comment.body == '/accept --force' }}
|
||||
run: |
|
||||
if [[ "${PR_COMMENT}" =~ "--force" ]] ; then
|
||||
comment="✅ Pull request merged without waiting for checks and closed by \`${COMMENT_USER_LOGIN}\` with fast forward merge."
|
||||
comment="✅ Pull request merged with fast forward by \`${COMMENT_USER_LOGIN}\` without waiting for checks."
|
||||
else
|
||||
comment="✅ Pull request merged and closed by \`${COMMENT_USER_LOGIN}\` with fast forward merge."
|
||||
fi
|
||||
gh pr close "${PR_NUMBER}" --delete-branch --comment "${comment}.<br><br>\# List of commits merged from \`${{ env.HEAD_REPO_FULL_NAME}}/${{ env.HEAD_REF }}\` branch into \`${{ env.BASE_REPO_FULL_NAME}}/${{ env.BASE_REF }}\` branch:<br>$(echo ; sed "s/+/-/g" ${{ env.NEW_COMMITS_FILE }})" && exit_code=0 || exit_code=1
|
||||
if [ ${exit_code} -eq 0 ] ; then
|
||||
echo " - ${comment}"
|
||||
else
|
||||
comment="❌ A problem occurred when closing pull request and/or deleting branch."
|
||||
echo " - ${comment}"
|
||||
#gh pr comment "${PR_NUMBER}" --body "${comment} Please refer to ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} logs."
|
||||
#exit 1
|
||||
comment="✅ Pull request merged with fast forward by \`${COMMENT_USER_LOGIN}\`."
|
||||
fi
|
||||
gh pr comment "${PR_NUMBER}" --body "${comment}.<br><br>\# List of commits merged from \`${{ env.HEAD_REPO_FULL_NAME}}/${{ env.HEAD_REF }}\` branch into \`${{ env.BASE_REPO_FULL_NAME}}/${{ env.BASE_REF }}\` branch:<br>$(echo ; sed 's/+/-/g' ${{ env.NEW_COMMITS_FILE }})"
|
||||
|
|
|
|||
|
|
@ -17,7 +17,9 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Auto close inactive PR
|
||||
run: .github/workflows/bin/auto-close-inactive-pr.sh --github-project-path "${REPO}" --github-token "${GITHUB_TOKEN}" --max-days-of-inactivity 15
|
||||
|
||||
|
|
|
|||
|
|
@ -10,18 +10,25 @@ on:
|
|||
required: true
|
||||
type: string
|
||||
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref_name }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
|
||||
checks:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
|
||||
- name: Shellcheck
|
||||
|
|
@ -44,22 +51,37 @@ jobs:
|
|||
if: always()
|
||||
run: bin/check/hadolint.sh ./contrib/docker/Dockerfile
|
||||
|
||||
- name: Install Python 3.12
|
||||
uses: actions/setup-python@v6.1.0
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- name: Install prerequisites
|
||||
if: always()
|
||||
run: |
|
||||
bin/check/install_prerequisites.sh
|
||||
bin/install_python3_venv.sh
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH="/tmp/hurl-python3-venv/bin:$PATH"
|
||||
echo "PATH=$PATH" >> $GITHUB_ENV
|
||||
which python3
|
||||
python3 --version
|
||||
pip --version
|
||||
bin/check/install_prerequisites.sh
|
||||
|
||||
- name: Zizmor
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
if: always()
|
||||
run: |
|
||||
pip install zizmor
|
||||
bin/check/zizmor.sh --github-token ${GITHUB_TOKEN} .github/workflows/*.yml
|
||||
|
||||
- name: Check Rust version
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
if: always()
|
||||
run: |
|
||||
python3 -m pip install requests --quiet
|
||||
bin/check/rust_version.py 7
|
||||
bin/check/rust_version.py --token ${GITHUB_TOKEN} 7
|
||||
|
||||
- name: Generated
|
||||
if: always()
|
||||
|
|
@ -73,9 +95,9 @@ jobs:
|
|||
if: always()
|
||||
run: bin/check/clippy.sh
|
||||
|
||||
- name: Black
|
||||
- name: Ruff
|
||||
if: always()
|
||||
run: bin/check/black.sh
|
||||
run: bin/check/ruff.sh
|
||||
|
||||
- name: Check XML/HTML files
|
||||
if: always()
|
||||
|
|
@ -100,6 +122,13 @@ jobs:
|
|||
if: always()
|
||||
run: bin/check/doc.sh
|
||||
|
||||
- name: Check Valgrind
|
||||
if: always()
|
||||
run: |
|
||||
sudo apt-get install -y valgrind
|
||||
cargo install cargo-valgrind
|
||||
bin/check/valgrind.sh
|
||||
|
||||
- name: Check completion files
|
||||
if: always()
|
||||
run: |
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
name: coverage
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 8 * * *"
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
|
|
@ -16,31 +17,38 @@ jobs:
|
|||
rust: [stable]
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
|
||||
- name: Environment
|
||||
run: bin/environment.sh
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Install Prerequisites
|
||||
run: bin/install_prerequisites_ubuntu.sh
|
||||
|
||||
- name: Install Python 3.11
|
||||
uses: actions/setup-python@v6.1.0
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Tests prerequisites
|
||||
run: bin/test/test_prerequisites.sh
|
||||
|
||||
- name: Install Rust
|
||||
run: bin/install_rust.sh
|
||||
|
||||
- name: Install Grcov
|
||||
run: bin/install_grcov.sh
|
||||
|
||||
- name: Environment
|
||||
run: bin/environment.sh
|
||||
|
||||
- name: Build
|
||||
run: cargo build
|
||||
|
||||
- name: Test Prerequisites
|
||||
run: bin/test/test_prerequisites.sh
|
||||
|
||||
- name: Run Coverage
|
||||
run: bin/coverage_run.sh
|
||||
|
||||
- name: Init git bot context
|
||||
uses: crazy-max/ghaction-import-gpg@v6.1.0
|
||||
uses: crazy-max/ghaction-import-gpg@v6.3.0
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY }}
|
||||
passphrase: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY_PASSPHRASE }}
|
||||
|
|
@ -60,7 +68,7 @@ jobs:
|
|||
destination_dir: coverage
|
||||
|
||||
- name: Archive Artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: coverage
|
||||
|
|
|
|||
|
|
@ -15,10 +15,6 @@ on:
|
|||
description: 'Push to winget'
|
||||
type: boolean
|
||||
default: false
|
||||
package-generic-linux-aarch64:
|
||||
description: 'Create generic linux aarch64 package'
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
concurrency: extra-package
|
||||
|
||||
|
|
@ -31,8 +27,9 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: true
|
||||
fetch-depth: 1
|
||||
ref: ${{ github.event.inputs.set-release-version }}
|
||||
- name: Check if branch is a published release
|
||||
|
|
@ -54,8 +51,9 @@ jobs:
|
|||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
fetch-depth: 1
|
||||
ref: ${{ github.event.inputs.set-release-version }}
|
||||
- name: Push to chocolatey
|
||||
|
|
@ -71,8 +69,9 @@ jobs:
|
|||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: true
|
||||
fetch-depth: 1
|
||||
ref: ${{ github.event.inputs.set-release-version }}
|
||||
- name: Push to winget
|
||||
|
|
@ -80,56 +79,3 @@ jobs:
|
|||
Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile .\wingetcreate.exe
|
||||
.\wingetcreate.exe version
|
||||
.\bin\release\push_package_to_winget.ps1 "$env:RELEASE_VERSION" "$env:WINGET_TOKEN"
|
||||
|
||||
package-generic-linux-aarch64:
|
||||
if: github.event.inputs.package-generic-linux-aarch64 == 'true'
|
||||
needs: check-release
|
||||
name: Create generic linux aarch64 package
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
with:
|
||||
fetch-depth: 1
|
||||
ref: ${{ github.event.inputs.set-release-version }}
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3.2.0
|
||||
- name: Create package
|
||||
uses: addnab/docker-run-action@v3
|
||||
with:
|
||||
image: ubuntu:22.04
|
||||
options: --platform linux/arm64/v8 --volume ${{ github.workspace }}:/work --workdir /work --privileged --env CARGO_TERM_COLOR=always --env CARGO_BUILD_TARGET=aarch64-unknown-linux-gnu
|
||||
run: |
|
||||
set -e
|
||||
echo "::group::Install Prerequisites"
|
||||
bin/install_prerequisites_ubuntu.sh
|
||||
sudo apt-get install -y g++-aarch64-linux-gnu libc6-dev-arm64-cross
|
||||
./bin/export_cross_compile_env.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Install Rust"
|
||||
bin/install_rust.sh
|
||||
. "$HOME/.cargo/env"
|
||||
echo "::endgroup::"
|
||||
echo "::group::Environment"
|
||||
bin/environment.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Build"
|
||||
./bin/release/release.sh
|
||||
cp -frp target/$CARGO_BUILD_TARGET/release/hurl ./target/release/
|
||||
cp -frp target/$CARGO_BUILD_TARGET/release/hurlfmt ./target/release/
|
||||
echo "::endgroup::"
|
||||
echo "::group::Get version"
|
||||
export VERSION=$(bin/release/get_version.sh)
|
||||
echo "::endgroup::"
|
||||
echo "::group::Create man"
|
||||
bin/release/man.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Create tarball"
|
||||
bin/release/create_tarball.sh
|
||||
bin/release/sha256sum.sh --write target/upload/hurl-$VERSION-aarch64-unknown-linux-gnu.tar.gz
|
||||
echo "::endgroup::"
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
with:
|
||||
name: release-generic-linux-aarch64-artifacts
|
||||
path: target/upload/*
|
||||
|
|
|
|||
|
|
@ -11,33 +11,42 @@ on:
|
|||
required: true
|
||||
type: string
|
||||
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref_name }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
package-generic-linux-x64:
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Install Python 3.10
|
||||
uses: actions/setup-python@v5.1.1
|
||||
- name: Install prerequisites
|
||||
run: bin/install_prerequisites_ubuntu.sh
|
||||
- name: Install Python 3.11
|
||||
uses: actions/setup-python@v6.1.0
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: Install python3 venv
|
||||
python-version: '3.11'
|
||||
- name: Activate python3 venv
|
||||
run: |
|
||||
bin/install_python3_venv.sh
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH="/tmp/hurl-python3-venv/bin:$PATH"
|
||||
echo "PATH=$PATH" >> $GITHUB_ENV
|
||||
which python3
|
||||
python3 --version
|
||||
pip --version
|
||||
- name: Install
|
||||
run: |
|
||||
bin/install_prerequisites_ubuntu.sh
|
||||
bin/install_rust.sh
|
||||
- name : Environment
|
||||
run: bin/environment.sh
|
||||
- name: Install rust
|
||||
run: bin/install_rust.sh
|
||||
- name: Build
|
||||
run: |
|
||||
bin/release/release.sh
|
||||
|
|
@ -51,7 +60,7 @@ jobs:
|
|||
bin/release/man.sh
|
||||
bin/release/create_tarball.sh
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
with:
|
||||
name: release-generic-linux-x64-artifacts
|
||||
path: target/upload/*
|
||||
|
|
@ -61,46 +70,49 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Retrieve release-generic-linux-x64-artifacts
|
||||
uses: actions/download-artifact@v4.1.8
|
||||
uses: actions/download-artifact@v7.0.0
|
||||
with:
|
||||
name: release-generic-linux-x64-artifacts
|
||||
path: target/upload
|
||||
- name: Install package and tests integ
|
||||
uses: addnab/docker-run-action@v3
|
||||
with:
|
||||
image: ubuntu
|
||||
image: ubuntu:22.04
|
||||
options: --volume ${{ github.workspace }}:/work --workdir /work --privileged
|
||||
run: |
|
||||
set -e
|
||||
echo "::group::Install system prerequisites"
|
||||
echo "::group::Install Prerequisites"
|
||||
bin/install_prerequisites_ubuntu.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Install python3 venv"
|
||||
bin/install_python3_venv.sh
|
||||
echo "::group::Install python 3.11"
|
||||
bin/install_pythonx_for_ubuntu.sh 11
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH=/tmp/hurl-python3-venv/bin:$PATH
|
||||
which python3
|
||||
python3 --version
|
||||
pip --version
|
||||
echo "::endgroup::"
|
||||
echo "::group::Install Rust"
|
||||
bin/install_rust.sh
|
||||
. "$HOME/.cargo/env"
|
||||
echo "::endgroup::"
|
||||
echo "::group::Environment"
|
||||
bin/environment.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Install generic linux package"
|
||||
bin/release/install_generic_linux_package.sh
|
||||
export PATH="/tmp/hurl-generic-linux/bin:$PATH"
|
||||
export PATH="/tmp/hurl-generic-linux/bin:$PATH"
|
||||
echo "::endgroup::"
|
||||
echo "::group::Install tests prerequisites"
|
||||
echo "::group::Install tests integ prerequisistes"
|
||||
bin/test/test_prerequisites.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Tests"
|
||||
bin/test/test_integ.sh
|
||||
echo "::endgroup::"
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: test-generic-linux-package-docker-ubuntu-x64-artifacts
|
||||
|
|
@ -112,11 +124,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Retrieve release-generic-linux-x64-artifacts
|
||||
uses: actions/download-artifact@v4.1.8
|
||||
uses: actions/download-artifact@v7.0.0
|
||||
with:
|
||||
name: release-generic-linux-x64-artifacts
|
||||
path: target/upload
|
||||
|
|
@ -128,10 +141,10 @@ jobs:
|
|||
run: |
|
||||
set -e
|
||||
echo "::group::Install system prerequisites"
|
||||
bin/install_prerequisites_ubuntu.sh
|
||||
bin/install_prerequisites_debian.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Install python3 venv"
|
||||
bin/install_python3_venv.sh
|
||||
echo "::group::Activate python3 venv"
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH=/tmp/hurl-python3-venv/bin:$PATH
|
||||
which python3
|
||||
python3 --version
|
||||
|
|
@ -151,7 +164,7 @@ jobs:
|
|||
bin/test/test_integ.sh
|
||||
echo "::endgroup::"
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: test-generic-linux-package-docker-debian-x64-artifacts
|
||||
|
|
@ -163,11 +176,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Retrieve release-generic-linux-x64-artifacts
|
||||
uses: actions/download-artifact@v4.1.8
|
||||
uses: actions/download-artifact@v7.0.0
|
||||
with:
|
||||
name: release-generic-linux-x64-artifacts
|
||||
path: target/upload
|
||||
|
|
@ -176,13 +190,24 @@ jobs:
|
|||
with:
|
||||
image: archlinux
|
||||
options: --volume ${{ github.workspace }}:/work --workdir /work --privileged
|
||||
# Revert to libxml 2.13.8 that has a soname libxml2.so.2 required by our Ubuntu Hurl build (using `libxml2-legacy` package).
|
||||
# Starting from libxml 2.14, <https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.14.0>:
|
||||
#
|
||||
# > Binary compatibility is restricted to versions 2.14 or newer. On ELF systems, the soname was bumped from
|
||||
# > libxml2.so.2 to libxml2.so.16.
|
||||
#
|
||||
# We downgrade when testing the Hurl generic package, not when we're building the Hurl package on Arch Linux as the soname
|
||||
# problem arise only with the generic package.
|
||||
run: |
|
||||
set -e
|
||||
echo "::group::Install system prerequisites"
|
||||
bin/install_prerequisites_archlinux.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Install python3 venv"
|
||||
bin/install_python3_venv.sh
|
||||
echo "::group::Downgrade libxml2"
|
||||
pacman --sync --noconfirm libxml2-legacy
|
||||
echo "::endgroup::"
|
||||
echo "::group::Activate python3 venv"
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH=/tmp/hurl-python3-venv/bin:$PATH
|
||||
which python3
|
||||
python3 --version
|
||||
|
|
@ -202,7 +227,7 @@ jobs:
|
|||
bin/test/test_integ.sh
|
||||
echo "::endgroup::"
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: test-generic-linux-package-docker-archlinux-x64-artifacts
|
||||
|
|
@ -214,11 +239,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Retrieve release-generic-linux-x64-artifacts
|
||||
uses: actions/download-artifact@v4.1.8
|
||||
uses: actions/download-artifact@v7.0.0
|
||||
with:
|
||||
name: release-generic-linux-x64-artifacts
|
||||
path: target/upload
|
||||
|
|
@ -229,11 +255,14 @@ jobs:
|
|||
options: --volume ${{ github.workspace }}:/work --workdir /work --privileged
|
||||
run: |
|
||||
set -e
|
||||
echo "::group::Disable PAM for sudo with root and no tty"
|
||||
bin/disable_pam_for_sudo.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Install system prerequisites"
|
||||
bin/install_prerequisites_fedora.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Install python3 venv"
|
||||
bin/install_python3_venv.sh
|
||||
echo "::group::Activate python3 venv"
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH=/tmp/hurl-python3-venv/bin:$PATH
|
||||
which python3
|
||||
python3 --version
|
||||
|
|
@ -253,22 +282,23 @@ jobs:
|
|||
bin/test/test_integ.sh
|
||||
echo "::endgroup::"
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: test-generic-linux-package-docker-fedora-x64-artifacts
|
||||
path: |
|
||||
./**/*.log
|
||||
|
||||
test-docker-x64-packages:
|
||||
test-dockerfile-x64:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3.6.1
|
||||
uses: docker/setup-buildx-action@v3.11.1
|
||||
- name: Build docker images
|
||||
run: |
|
||||
echo "::group::Docker build prerequisites"
|
||||
|
|
@ -306,7 +336,7 @@ jobs:
|
|||
bash bin/install_prerequisites_alpine.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Install tests prerequisites"
|
||||
bash bin/install_python3_venv.sh
|
||||
bash bin/activate_python3_venv.sh
|
||||
export PATH=/tmp/hurl-python3-venv/bin:$PATH
|
||||
which python3
|
||||
python3 --version
|
||||
|
|
@ -319,34 +349,87 @@ jobs:
|
|||
echo "::group::Integration tests"
|
||||
bash bin/test/test_integ.sh
|
||||
echo "::endgroup::"
|
||||
- name: find artifacts
|
||||
- name: Find artifacts
|
||||
run: |
|
||||
pwd
|
||||
find . -name "*.log"
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: test-docker-amd64-package-artifacts
|
||||
path: |
|
||||
./**/*.log
|
||||
|
||||
package-deb-x64:
|
||||
runs-on: ubuntu-20.04
|
||||
package-generic-linux-aarch64:
|
||||
runs-on: ubuntu-22.04-arm
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Install Python 3.10
|
||||
uses: actions/setup-python@v5.1.1
|
||||
- name: Install prerequisites
|
||||
run: bin/install_prerequisites_ubuntu.sh
|
||||
- name: Install Python 3.11
|
||||
uses: actions/setup-python@v6.1.0
|
||||
with:
|
||||
python-version: '3.10'
|
||||
python-version: '3.11'
|
||||
- name: Activate python3 venv
|
||||
run: |
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH="/tmp/hurl-python3-venv/bin:$PATH"
|
||||
echo "PATH=$PATH" >> $GITHUB_ENV
|
||||
which python3
|
||||
python3 --version
|
||||
pip --version
|
||||
- name : Environment
|
||||
run: bin/environment.sh
|
||||
- name: Install rust
|
||||
run: bin/install_rust.sh
|
||||
- name: Build
|
||||
run: |
|
||||
bin/release/release.sh
|
||||
echo "PATH=:${PWD}/target/release:$PATH" >> "${GITHUB_ENV}"
|
||||
- name: Get version
|
||||
run: |
|
||||
VERSION=$(bin/release/get_version.sh)
|
||||
echo "VERSION=${VERSION}" | tee -a "${GITHUB_ENV}"
|
||||
- name: Create generic linux package
|
||||
run: |
|
||||
bin/release/man.sh
|
||||
bin/release/create_tarball.sh
|
||||
- name: Install generic linux package
|
||||
run: |
|
||||
bin/release/install_generic_linux_package.sh
|
||||
export PATH="/tmp/hurl-generic-linux/bin:$PATH"
|
||||
- name: Test integ
|
||||
run: |
|
||||
bin/test/test_prerequisites.sh
|
||||
bin/test/test_integ.sh
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
with:
|
||||
name: release-generic-linux-aarch64-artifacts
|
||||
path: target/upload/*
|
||||
|
||||
package-deb-x64:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Install Prerequisites
|
||||
run: bin/install_prerequisites_ubuntu.sh
|
||||
- name: Install python3 venv
|
||||
- name: Install Python 3.11
|
||||
uses: actions/setup-python@v6.1.0
|
||||
with:
|
||||
python-version: '3.11'
|
||||
- name: Activate python3 venv
|
||||
run: |
|
||||
bin/install_python3_venv.sh
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH="/tmp/hurl-python3-venv/bin:$PATH"
|
||||
echo "PATH=$PATH" >> $GITHUB_ENV
|
||||
which python3
|
||||
|
|
@ -377,25 +460,78 @@ jobs:
|
|||
bin/test/test_prerequisites.sh
|
||||
bin/test/test_integ.sh
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
with:
|
||||
name: release-deb-x64-artifacts
|
||||
path: target/upload/*
|
||||
|
||||
package-macos-x64:
|
||||
runs-on: macos-13
|
||||
package-deb-aarch64:
|
||||
runs-on: ubuntu-22.04-arm
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Install Prerequisites
|
||||
run: bin/install_prerequisites_ubuntu.sh
|
||||
- name: Install Python 3.11
|
||||
uses: actions/setup-python@v6.1.0
|
||||
with:
|
||||
python-version: '3.11'
|
||||
- name: Activate python3 venv
|
||||
run: |
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH="/tmp/hurl-python3-venv/bin:$PATH"
|
||||
echo "PATH=$PATH" >> $GITHUB_ENV
|
||||
which python3
|
||||
python3 --version
|
||||
pip --version
|
||||
- name: Install Rust
|
||||
run: bin/install_rust.sh
|
||||
- name: Environment
|
||||
run: bin/environment.sh
|
||||
- name: Build
|
||||
run: |
|
||||
bin/release/release.sh
|
||||
echo "PATH=:${PWD}/target/release:$PATH" >> "${GITHUB_ENV}"
|
||||
- name: Get version
|
||||
run: |
|
||||
VERSION=$(bin/release/get_version.sh)
|
||||
echo "VERSION=${VERSION}" | tee -a "${GITHUB_ENV}"
|
||||
- name: Create deb package
|
||||
run: |
|
||||
bin/release/man.sh
|
||||
bin/release/create_deb_package.sh
|
||||
- name: Install package
|
||||
run: |
|
||||
bin/release/install_deb_package.sh
|
||||
echo "PATH=/tmp/hurl-deb-package/usr/bin:$PATH" >> "${GITHUB_ENV}"
|
||||
- name: Test integ
|
||||
run: |
|
||||
bin/test/test_prerequisites.sh
|
||||
bin/test/test_integ.sh
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
with:
|
||||
name: release-deb-aarch64-artifacts
|
||||
path: target/upload/*
|
||||
|
||||
package-macos-x64:
|
||||
runs-on: macos-15-intel
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Install Prerequisites
|
||||
run: |
|
||||
bin/install_prerequisites_macos.sh
|
||||
echo "PATH=$PATH" >> $GITHUB_ENV
|
||||
- name: Install python3 venv
|
||||
- name: Activate python3 venv
|
||||
run: |
|
||||
bin/install_python3_venv.sh
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH="/tmp/hurl-python3-venv/bin:$PATH"
|
||||
echo "PATH=$PATH" >> $GITHUB_ENV
|
||||
which python3
|
||||
|
|
@ -426,25 +562,26 @@ jobs:
|
|||
bin/test/test_prerequisites.sh
|
||||
bin/test/test_integ.sh
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
with:
|
||||
name: release-macos-x64-artifacts
|
||||
path: target/upload/*
|
||||
|
||||
package-macos-aarch64:
|
||||
runs-on: macos-14
|
||||
runs-on: macos-15
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Install Prerequisites
|
||||
run: |
|
||||
bin/install_prerequisites_macos.sh
|
||||
echo "PATH=$PATH" >> $GITHUB_ENV
|
||||
- name: Install python3 venv
|
||||
- name: Activate python3 venv
|
||||
run: |
|
||||
bin/install_python3_venv.sh
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH="/tmp/hurl-python3-venv/bin:$PATH"
|
||||
echo "PATH=$PATH" >> $GITHUB_ENV
|
||||
which python3
|
||||
|
|
@ -475,44 +612,49 @@ jobs:
|
|||
bin/test/test_prerequisites.sh
|
||||
bin/test/test_integ.sh
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
with:
|
||||
name: release-macos-aarch64-artifacts
|
||||
path: target/upload/*
|
||||
|
||||
package-windows-x64:
|
||||
runs-on: windows-latest
|
||||
env:
|
||||
VCPKGRS_DYNAMIC: 1
|
||||
steps:
|
||||
- name: Set git to use LF
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Install Rust
|
||||
run: |
|
||||
.\bin\install_rust.ps1
|
||||
- name: Manage vcpkg cache
|
||||
uses: actions/cache@v4.0.2
|
||||
uses: actions/cache@v5.0.1
|
||||
with:
|
||||
path: C:\vcpkg
|
||||
key: ${{ runner.os }}-release-windows-x64
|
||||
- name: Environment
|
||||
run: .\bin\environment.ps1
|
||||
- name: Install prerequisites
|
||||
run: .\bin\install_prerequisites_windows.ps1
|
||||
- name: Build
|
||||
- name: Install Python 3.11
|
||||
uses: actions/setup-python@v6.1.0
|
||||
with:
|
||||
python-version: '3.11'
|
||||
- name: Environment
|
||||
run: |
|
||||
.\bin\release\release.ps1
|
||||
.\bin\activate_python3_venv.ps1
|
||||
.\bin\environment.ps1
|
||||
- name: Build
|
||||
run: .\bin\release\release.ps1
|
||||
- name: Create windows64 Zip package
|
||||
run: .\bin\release\create_windows64_zip_package.ps1
|
||||
- name: Install win64 zip and test integ
|
||||
run: |
|
||||
.\bin\release\install_windows64_zip_package.ps1
|
||||
.\bin\activate_python3_venv.ps1
|
||||
.\bin\test\test_prerequisites.ps1
|
||||
.\bin\test\test_integ.ps1
|
||||
- name: Create windows64 installer
|
||||
|
|
@ -520,10 +662,11 @@ jobs:
|
|||
- name: Install win64 installer and test integ
|
||||
run: |
|
||||
.\bin\release\install_windows64_installer.ps1
|
||||
.\bin\activate_python3_venv.ps1
|
||||
.\bin\test\test_prerequisites.ps1
|
||||
.\bin\test\test_integ.ps1
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
with:
|
||||
name: release-windows-x64-artifacts
|
||||
path: |
|
||||
|
|
@ -533,7 +676,9 @@ jobs:
|
|||
package-anatomy:
|
||||
needs:
|
||||
- package-generic-linux-x64
|
||||
- package-generic-linux-aarch64
|
||||
- package-deb-x64
|
||||
- package-deb-aarch64
|
||||
- package-macos-x64
|
||||
- package-macos-aarch64
|
||||
- package-windows-x64
|
||||
|
|
@ -541,10 +686,11 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- uses: actions/download-artifact@v4.1.8
|
||||
- uses: actions/download-artifact@v7.0.0
|
||||
with:
|
||||
path: artifacts
|
||||
- name: Prerequisites
|
||||
|
|
@ -553,9 +699,15 @@ jobs:
|
|||
- name: Package generic linux x64 anatomy
|
||||
if: ${{ always() }}
|
||||
run: bin/release/package-anatomy.sh artifacts/release-generic-linux-x64-artifacts/hurl-*-x86_64-unknown-linux-gnu.tar.gz --compare-with-dir docs/spec/packages
|
||||
- name: Package generic linux aarch64 anatomy
|
||||
if: ${{ always() }}
|
||||
run: bin/release/package-anatomy.sh artifacts/release-generic-linux-aarch64-artifacts/hurl-*-aarch64-unknown-linux-gnu.tar.gz --compare-with-dir docs/spec/packages
|
||||
- name: Package deb x64 anatomy
|
||||
if: ${{ always() }}
|
||||
run: bin/release/package-anatomy.sh artifacts/release-deb-x64-artifacts/hurl_*_amd64.deb --compare-with-dir docs/spec/packages
|
||||
- name: Package deb aarch64 anatomy
|
||||
if: ${{ always() }}
|
||||
run: bin/release/package-anatomy.sh artifacts/release-deb-aarch64-artifacts/hurl_*_arm64.deb --compare-with-dir docs/spec/packages
|
||||
- name: Package macos x64 anatomy
|
||||
if: ${{ always() }}
|
||||
run: bin/release/package-anatomy.sh artifacts/release-macos-x64-artifacts/hurl-*-x86_64-apple-darwin.tar.gz --compare-with-dir docs/spec/packages
|
||||
|
|
|
|||
|
|
@ -13,8 +13,10 @@ concurrency: release
|
|||
jobs:
|
||||
set-context:
|
||||
env:
|
||||
GITHUB_BRANCH_NAME: ${{ github.ref_name }}
|
||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||
GITHUB_TOKEN: ${{ secrets.HURL_BOT_TOKEN }}
|
||||
SET_RELEASE_VERSION: ${{ github.event.inputs.set-release-version }}
|
||||
outputs:
|
||||
release_version: ${{ steps.set-release-version.outputs.release_version }}
|
||||
release_branch: ${{ steps.set-release-branch.outputs.release_branch }}
|
||||
|
|
@ -23,25 +25,25 @@ jobs:
|
|||
steps:
|
||||
- name: Check trigger branch
|
||||
run: |
|
||||
if [ $(echo "${{ github.ref_name }}" | grep -Ec "^master$|^release/") -eq 1 ] ; then
|
||||
echo " - ✅ The branch triggering this workflow is ${{ github.ref_name }}."
|
||||
if [ $(echo "${GITHUB_BRANCH_NAME}" | grep -Ec "^master$|^release/") -eq 1 ] ; then
|
||||
echo " - ✅ The branch triggering this workflow is ${GITHUB_BRANCH_NAME}."
|
||||
else
|
||||
echo " - ❌ The branch triggering this workflow is ${{ github.ref_name }} instead of master or release/[0-9].[0-9].[0-9]."
|
||||
echo " - ❌ The branch triggering this workflow is ${GITHUB_BRANCH_NAME} instead of master or release/[0-9].[0-9].[0-9]."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Set release version
|
||||
id: set-release-version
|
||||
run: |
|
||||
echo "release_version=${{ github.event.inputs.set-release-version }}" | tee -a $GITHUB_OUTPUT
|
||||
echo "release_version=${SET_RELEASE_VERSION}" | tee -a $GITHUB_OUTPUT
|
||||
|
||||
- name: Set release branch
|
||||
id: set-release-branch
|
||||
run: |
|
||||
if [ $(echo "${{ github.ref_name }}" | grep -c "^release/") -eq 1 ] ; then
|
||||
echo "release_branch=${{ github.ref_name }}" | tee -a $GITHUB_OUTPUT
|
||||
if [ $(echo "${GITHUB_BRANCH_NAME}" | grep -c "^release/") -eq 1 ] ; then
|
||||
echo "release_branch=${GITHUB_BRANCH_NAME}" | tee -a $GITHUB_OUTPUT
|
||||
else
|
||||
echo "release_branch=release/${{ github.event.inputs.set-release-version }}" | tee -a $GITHUB_OUTPUT
|
||||
echo "release_branch=release/${SET_RELEASE_VERSION}" | tee -a $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
clean-release:
|
||||
|
|
@ -53,7 +55,9 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: true
|
||||
|
||||
- name: Check release pull request existence
|
||||
id: check-release-pull-request-existence
|
||||
|
|
@ -169,7 +173,9 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout repository
|
||||
if: github.ref_name == 'master'
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: true
|
||||
|
||||
- name: Create release branch
|
||||
if: github.ref_name == 'master'
|
||||
|
|
@ -185,8 +191,9 @@ jobs:
|
|||
fi
|
||||
|
||||
- name: Checkout new release branch
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: true
|
||||
ref: ${{ needs.set-context.outputs.release_branch }}
|
||||
|
||||
- name: Check CHANGELOG
|
||||
|
|
@ -234,7 +241,7 @@ jobs:
|
|||
python3 bin/docs/build_readme.py crates > packages/hurl/README.md
|
||||
|
||||
- name: Init git bot context
|
||||
uses: crazy-max/ghaction-import-gpg@v6.1.0
|
||||
uses: crazy-max/ghaction-import-gpg@v6.3.0
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY }}
|
||||
passphrase: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY_PASSPHRASE }}
|
||||
|
|
@ -260,7 +267,7 @@ jobs:
|
|||
fi
|
||||
|
||||
- name: Archive artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: release-changelog
|
||||
|
|
@ -279,9 +286,12 @@ jobs:
|
|||
|
||||
deliver-github-release:
|
||||
env:
|
||||
GITHUB_BRANCH_NAME: ${{ github.ref_name }}
|
||||
GITHUB_OWNER: ${{ github.repository_owner }}
|
||||
GITHUB_REPO_NAME: ${{ github.event.repository.name }}
|
||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||
GITHUB_TOKEN: ${{ secrets.HURL_BOT_TOKEN }}
|
||||
REPO: ${{ github.repository }}
|
||||
RELEASE_VERSION: ${{ needs.set-context.outputs.release_version }}
|
||||
needs:
|
||||
- set-context
|
||||
- clean-release
|
||||
|
|
@ -291,12 +301,13 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout new release branch
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: true
|
||||
ref: ${{ needs.set-context.outputs.release_branch }}
|
||||
|
||||
- name: Init git bot context
|
||||
uses: crazy-max/ghaction-import-gpg@v6.1.0
|
||||
uses: crazy-max/ghaction-import-gpg@v6.3.0
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY }}
|
||||
passphrase: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY_PASSPHRASE }}
|
||||
|
|
@ -305,40 +316,42 @@ jobs:
|
|||
git_user_signingkey: true
|
||||
git_commit_gpgsign: true
|
||||
|
||||
- uses: actions/download-artifact@v4.1.8
|
||||
- uses: actions/download-artifact@v7.0.0
|
||||
with:
|
||||
path: artifacts
|
||||
|
||||
- name: Push tag
|
||||
run: |
|
||||
git tag -a ${{ needs.set-context.outputs.release_version }} -m "Release ${{ needs.set-context.outputs.release_version }}"
|
||||
git tag -a "${RELEASE_VERSION}" -m "Release ${RELEASE_VERSION}"
|
||||
git tag -n
|
||||
git push --tags && git_exit_code=0 || git_exit_code=$?
|
||||
if [ ${git_exit_code} -eq 0 ] ; then
|
||||
echo " - ✅ ${{ needs.set-context.outputs.release_version }} tag created."
|
||||
echo " - ✅ ${RELEASE_VERSION} tag created."
|
||||
git fetch
|
||||
else
|
||||
echo " - ❌ A problem occurs when attempting to create ${{ needs.set-context.outputs.release_version }} tag."
|
||||
echo " - ❌ A problem occurs when attempting to create ${RELEASE_VERSION} tag."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Create sha256sums
|
||||
run: |
|
||||
bin/release/sha256sum.sh --write \
|
||||
artifacts/release-deb-x64-artifacts/hurl_"${{ needs.set-context.outputs.release_version }}"_amd64.deb \
|
||||
artifacts/release-generic-linux-x64-artifacts/hurl-"${{ needs.set-context.outputs.release_version }}"-x86_64-unknown-linux-gnu.tar.gz \
|
||||
artifacts/release-macos-x64-artifacts/hurl-"${{ needs.set-context.outputs.release_version }}"-x86_64-apple-darwin.tar.gz \
|
||||
artifacts/release-macos-aarch64-artifacts/hurl-"${{ needs.set-context.outputs.release_version }}"-aarch64-apple-darwin.tar.gz \
|
||||
artifacts/release-windows-x64-artifacts/hurl-"${{ needs.set-context.outputs.release_version }}"-x86_64-pc-windows-msvc-installer.exe \
|
||||
artifacts/release-windows-x64-artifacts/hurl-"${{ needs.set-context.outputs.release_version }}"-x86_64-pc-windows-msvc.zip
|
||||
echo "file sha256" > ${{ needs.set-context.outputs.release_version }}.sha256.csv
|
||||
find ./artifacts -name "*sha256" | xargs -I FILE sh -c 'echo "$(basename FILE) $(cat FILE)"' >> ${{ needs.set-context.outputs.release_version }}.sha256.csv
|
||||
artifacts/release-deb-x64-artifacts/hurl_"${RELEASE_VERSION}"_amd64.deb \
|
||||
artifacts/release-deb-aarch64-artifacts/hurl_"${RELEASE_VERSION}"_arm64.deb \
|
||||
artifacts/release-generic-linux-x64-artifacts/hurl-"${RELEASE_VERSION}"-x86_64-unknown-linux-gnu.tar.gz \
|
||||
artifacts/release-generic-linux-aarch64-artifacts/hurl-"${RELEASE_VERSION}"-aarch64-unknown-linux-gnu.tar.gz \
|
||||
artifacts/release-macos-x64-artifacts/hurl-"${RELEASE_VERSION}"-x86_64-apple-darwin.tar.gz \
|
||||
artifacts/release-macos-aarch64-artifacts/hurl-"${RELEASE_VERSION}"-aarch64-apple-darwin.tar.gz \
|
||||
artifacts/release-windows-x64-artifacts/hurl-"${RELEASE_VERSION}"-x86_64-pc-windows-msvc-installer.exe \
|
||||
artifacts/release-windows-x64-artifacts/hurl-"${RELEASE_VERSION}"-x86_64-pc-windows-msvc.zip
|
||||
echo "file,sha256" > release-"${RELEASE_VERSION}".sha256.csv
|
||||
find ./artifacts -name "*sha256" | xargs -I FILE sh -c 'echo "https://github.com/${GITHUB_OWNER}/${GITHUB_REPO_NAME}/releases/download/${RELEASE_VERSION}/$(basename FILE),$(cat FILE)"' >> release-"${RELEASE_VERSION}".sha256.csv
|
||||
|
||||
- name: Archive sha256 artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
with:
|
||||
name: release-sha256-csv
|
||||
path: ${{ needs.set-context.outputs.release_version }}.sha256.csv
|
||||
path: release-${{ needs.set-context.outputs.release_version }}.sha256.csv
|
||||
|
||||
|
||||
- name: Deliver release
|
||||
|
|
@ -352,7 +365,9 @@ jobs:
|
|||
echo "::group::List artifacts"
|
||||
ls -l \
|
||||
artifacts/release-deb-x64-artifacts/* \
|
||||
artifacts/release-deb-aarch64-artifacts/* \
|
||||
artifacts/release-generic-linux-x64-artifacts/* \
|
||||
artifacts/release-generic-linux-aarch64-artifacts/* \
|
||||
artifacts/release-macos-x64-artifacts/* \
|
||||
artifacts/release-macos-aarch64-artifacts/* \
|
||||
artifacts/release-windows-x64-artifacts/*
|
||||
|
|
@ -365,8 +380,12 @@ jobs:
|
|||
--draft \
|
||||
artifacts/release-deb-x64-artifacts/hurl_${{ needs.set-context.outputs.release_version }}_amd64.deb \
|
||||
artifacts/release-deb-x64-artifacts/hurl_${{ needs.set-context.outputs.release_version }}_amd64.deb.sha256 \
|
||||
artifacts/release-deb-aarch64-artifacts/hurl_${{ needs.set-context.outputs.release_version }}_arm64.deb \
|
||||
artifacts/release-deb-aarch64-artifacts/hurl_${{ needs.set-context.outputs.release_version }}_arm64.deb.sha256 \
|
||||
artifacts/release-generic-linux-x64-artifacts/hurl-${{ needs.set-context.outputs.release_version }}-x86_64-unknown-linux-gnu.tar.gz \
|
||||
artifacts/release-generic-linux-x64-artifacts/hurl-${{ needs.set-context.outputs.release_version }}-x86_64-unknown-linux-gnu.tar.gz.sha256 \
|
||||
artifacts/release-generic-linux-aarch64-artifacts/hurl-${{ needs.set-context.outputs.release_version }}-aarch64-unknown-linux-gnu.tar.gz \
|
||||
artifacts/release-generic-linux-aarch64-artifacts/hurl-${{ needs.set-context.outputs.release_version }}-aarch64-unknown-linux-gnu.tar.gz.sha256 \
|
||||
artifacts/release-macos-x64-artifacts/hurl-${{ needs.set-context.outputs.release_version }}-x86_64-apple-darwin.tar.gz \
|
||||
artifacts/release-macos-x64-artifacts/hurl-${{ needs.set-context.outputs.release_version }}-x86_64-apple-darwin.tar.gz.sha256 \
|
||||
artifacts/release-macos-aarch64-artifacts/hurl-${{ needs.set-context.outputs.release_version }}-aarch64-apple-darwin.tar.gz \
|
||||
|
|
@ -392,13 +411,12 @@ jobs:
|
|||
|
||||
- name: Create new pull request
|
||||
run: |
|
||||
GITHUB_TOKEN=${{ secrets.HURL_BOT_TOKEN }}
|
||||
{
|
||||
echo "⚠ This is a GitHub releasing PR."
|
||||
echo "- Please use \`/accept\` as usual then run the \`update-branch-version\` github workflow if you want to automatically update master branch to next SNAPSHOT version"
|
||||
} > file-body.txt
|
||||
gh pr create \
|
||||
--title "Merge GitHub ${{ needs.set-context.outputs.release_branch }} into ${{ github.ref_name }}" \
|
||||
--title "Merge GitHub ${{ needs.set-context.outputs.release_branch }} into master" \
|
||||
--body-file file-body.txt \
|
||||
--base master \
|
||||
--label bot && gh_exit_code=0 || gh_exit_code=$?
|
||||
|
|
|
|||
|
|
@ -11,6 +11,12 @@ on:
|
|||
required: true
|
||||
type: string
|
||||
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref_name }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
|
|
@ -19,19 +25,20 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Install Prerequisites
|
||||
run: bin/install_prerequisites_ubuntu.sh
|
||||
- name: Install python3 venv
|
||||
- name: Install Python 3.11
|
||||
uses: actions/setup-python@v6.1.0
|
||||
with:
|
||||
python-version: '3.11'
|
||||
- name: Activate python3 venv
|
||||
run: |
|
||||
bin/install_python3_venv.sh
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH="/tmp/hurl-python3-venv/bin:$PATH"
|
||||
echo "PATH=$PATH" >> $GITHUB_ENV
|
||||
which python3
|
||||
python3 --version
|
||||
pip --version
|
||||
- name: Install Rust
|
||||
run: bin/install_rust.sh
|
||||
- name: Environment
|
||||
|
|
@ -41,13 +48,32 @@ jobs:
|
|||
bin/release/release.sh
|
||||
echo "PATH=${PWD}/target/release:$PATH" >> "${GITHUB_ENV}"
|
||||
- name: Archive artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: tests-bench-artifacts
|
||||
path: |
|
||||
bench/server.log
|
||||
|
||||
coverage:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Install Rust
|
||||
run: bin/install_rust.sh
|
||||
- name: Install Python 3.11
|
||||
uses: actions/setup-python@v6.1.0
|
||||
with:
|
||||
python-version: '3.11'
|
||||
- name: Environment
|
||||
run: bin/environment.sh
|
||||
- name: Coverage
|
||||
run: bin/check/coverage.sh
|
||||
|
||||
test-ubuntu-x64-latest:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
|
|
@ -55,23 +81,21 @@ jobs:
|
|||
rust: [stable]
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Install Python 3.10
|
||||
uses: actions/setup-python@v5.1.1
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: Install Prerequisites
|
||||
run: bin/install_prerequisites_ubuntu.sh
|
||||
- name: Install python3 venv
|
||||
- name: Install Python 3.11
|
||||
uses: actions/setup-python@v6.1.0
|
||||
with:
|
||||
python-version: '3.11'
|
||||
- name: Activate python3 venv
|
||||
run: |
|
||||
bin/install_python3_venv.sh
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH="/tmp/hurl-python3-venv/bin:$PATH"
|
||||
echo "PATH=$PATH" >> $GITHUB_ENV
|
||||
which python3
|
||||
python3 --version
|
||||
pip --version
|
||||
- name: Install Rust
|
||||
run: bin/install_rust.sh
|
||||
- name: Environment
|
||||
|
|
@ -85,10 +109,18 @@ jobs:
|
|||
echo "PATH=${PWD}/target/release:$PATH" >> "${GITHUB_ENV}"
|
||||
- name: Integration Tests
|
||||
run: bin/test/test_integ.sh
|
||||
- name: Coverage
|
||||
run: bin/check/coverage.sh
|
||||
- name: Integration Tests (Hurl files using CRLF)
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y dos2unix
|
||||
current_dir="${PWD}"
|
||||
tmp_dir=/tmp/hurl-tmp
|
||||
bin/test/convert_hurl_to_crlf.sh --dest-dir "${tmp_dir}"
|
||||
cd "${tmp_dir}"
|
||||
bin/test/test_integ.sh || true
|
||||
cd "${current_dir}"
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: tests-ubuntu-latest-${{ matrix.rust }}-artifacts
|
||||
|
|
@ -97,30 +129,28 @@ jobs:
|
|||
./**/report/*.json
|
||||
./**/report/*.xml
|
||||
|
||||
test-ubuntu-x64-20-04:
|
||||
runs-on: ubuntu-20.04
|
||||
test-ubuntu-x64-22-04:
|
||||
runs-on: ubuntu-22.04
|
||||
strategy:
|
||||
matrix:
|
||||
rust: [stable]
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Install Python 3.10
|
||||
uses: actions/setup-python@v5.1.1
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: Install Prerequisites
|
||||
run: bin/install_prerequisites_ubuntu.sh
|
||||
- name: Install python3 venv
|
||||
- name: Install Python 3.11
|
||||
uses: actions/setup-python@v6.1.0
|
||||
with:
|
||||
python-version: '3.11'
|
||||
- name: Activate python3 venv
|
||||
run: |
|
||||
bin/install_python3_venv.sh
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH="/tmp/hurl-python3-venv/bin:$PATH"
|
||||
echo "PATH=$PATH" >> $GITHUB_ENV
|
||||
which python3
|
||||
python3 --version
|
||||
pip --version
|
||||
- name: Install Rust
|
||||
run: bin/install_rust.sh
|
||||
- name: Environment
|
||||
|
|
@ -135,10 +165,10 @@ jobs:
|
|||
- name: Integration Tests
|
||||
run: bin/test/test_integ.sh
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: tests-ubuntu-20.04-${{ matrix.rust }}-artifacts
|
||||
name: tests-ubuntu-22.04-${{ matrix.rust }}-artifacts
|
||||
path: |
|
||||
./**/*.log
|
||||
./**/report/*.json
|
||||
|
|
@ -148,8 +178,9 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Build, Test units and Integration tests
|
||||
uses: addnab/docker-run-action@v3
|
||||
|
|
@ -161,8 +192,8 @@ jobs:
|
|||
echo "::group::Install Prerequisites"
|
||||
bin/install_prerequisites_archlinux.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Install python3 venv"
|
||||
bin/install_python3_venv.sh
|
||||
echo "::group::Activate python3 venv"
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH=/tmp/hurl-python3-venv/bin:$PATH
|
||||
which python3
|
||||
python3 --version
|
||||
|
|
@ -178,7 +209,7 @@ jobs:
|
|||
bin/test/test.sh
|
||||
echo "::endgroup::"
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: tests-archlinux-x64-artifacts
|
||||
|
|
@ -189,8 +220,9 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Build, Test units and Integration tests
|
||||
uses: addnab/docker-run-action@v3
|
||||
|
|
@ -199,11 +231,14 @@ jobs:
|
|||
options: --volume ${{ github.workspace }}:/work --workdir /work --privileged --env CARGO_TERM_COLOR=always
|
||||
run: |
|
||||
set -e
|
||||
echo "::group::Disable PAM for sudo with root and no tty"
|
||||
bin/disable_pam_for_sudo.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Install Prerequisites"
|
||||
bin/install_prerequisites_fedora.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Install python3 venv"
|
||||
bin/install_python3_venv.sh
|
||||
echo "::group::Activate python3 venv"
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH=/tmp/hurl-python3-venv/bin:$PATH
|
||||
which python3
|
||||
python3 --version
|
||||
|
|
@ -218,12 +253,12 @@ jobs:
|
|||
echo "::group::Tests"
|
||||
bin/test/test.sh
|
||||
echo "::endgroup::"
|
||||
- name: find artifacts
|
||||
- name: Find artifacts
|
||||
run: |
|
||||
pwd
|
||||
find . -name "*.log"
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: tests-fedora-x64-artifacts
|
||||
|
|
@ -234,8 +269,9 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Build, Test units and Integration tests
|
||||
uses: addnab/docker-run-action@v3
|
||||
|
|
@ -249,8 +285,8 @@ jobs:
|
|||
echo "::group::Install Prerequisites"
|
||||
bin/install_prerequisites_alpine.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Install python3 venv"
|
||||
bin/install_python3_venv.sh
|
||||
echo "::group::Activate python3 venv"
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH=/tmp/hurl-python3-venv/bin:$PATH
|
||||
which python3
|
||||
python3 --version
|
||||
|
|
@ -265,12 +301,12 @@ jobs:
|
|||
echo "::group::Tests"
|
||||
bin/test/test.sh
|
||||
echo "::endgroup::"
|
||||
- name: find artifacts
|
||||
- name: Find artifacts
|
||||
run: |
|
||||
pwd
|
||||
find . -name "*.log"
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: tests-alpine-x64-artifacts
|
||||
|
|
@ -278,22 +314,23 @@ jobs:
|
|||
./**/*.log
|
||||
|
||||
test-macos-x64:
|
||||
runs-on: macos-13
|
||||
runs-on: macos-15-intel
|
||||
strategy:
|
||||
matrix:
|
||||
rust: [stable]
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Install Prerequisites
|
||||
run: |
|
||||
bin/install_prerequisites_macos.sh
|
||||
echo "PATH=$PATH" >> $GITHUB_ENV
|
||||
- name: Install python3 venv
|
||||
- name: Activate python3 venv
|
||||
run: |
|
||||
bin/install_python3_venv.sh
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH="/tmp/hurl-python3-venv/bin:$PATH"
|
||||
echo "PATH=$PATH" >> $GITHUB_ENV
|
||||
which python3
|
||||
|
|
@ -311,14 +348,12 @@ jobs:
|
|||
bin/test/test_unit.sh
|
||||
bin/release/release.sh
|
||||
echo "PATH=${PWD}/target/release:$PATH" >> "${GITHUB_ENV}"
|
||||
- name: Integration Tests
|
||||
run: bin/test/test_integ.sh
|
||||
- name: find artifacts
|
||||
- name: Find artifacts
|
||||
run: |
|
||||
pwd
|
||||
find . -name "*.log"
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: tests-macos-x64-${{ matrix.rust }}-artifacts
|
||||
|
|
@ -326,22 +361,23 @@ jobs:
|
|||
./**/*.log
|
||||
|
||||
test-macos-aarch64:
|
||||
runs-on: macos-14
|
||||
runs-on: macos-15
|
||||
strategy:
|
||||
matrix:
|
||||
rust: [stable]
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Install Prerequisites
|
||||
run: |
|
||||
bin/install_prerequisites_macos.sh
|
||||
echo "PATH=$PATH" >> $GITHUB_ENV
|
||||
- name: Install python3 venv
|
||||
- name: Activate python3 venv
|
||||
run: |
|
||||
bin/install_python3_venv.sh
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH="/tmp/hurl-python3-venv/bin:$PATH"
|
||||
echo "PATH=$PATH" >> $GITHUB_ENV
|
||||
which python3
|
||||
|
|
@ -359,14 +395,12 @@ jobs:
|
|||
bin/test/test_unit.sh
|
||||
bin/release/release.sh
|
||||
echo "PATH=${PWD}/target/release:$PATH" >> "${GITHUB_ENV}"
|
||||
- name: Integration Tests
|
||||
run: bin/test/test_integ.sh
|
||||
- name: find artifacts
|
||||
- name: Find artifacts
|
||||
run: |
|
||||
pwd
|
||||
find . -name "*.log"
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: tests-macos-aarch64-${{ matrix.rust }}-artifacts
|
||||
|
|
@ -375,39 +409,112 @@ jobs:
|
|||
|
||||
test-windows-x64:
|
||||
runs-on: windows-latest
|
||||
strategy:
|
||||
matrix:
|
||||
rust: [stable]
|
||||
env:
|
||||
VCPKGRS_DYNAMIC: 1
|
||||
steps:
|
||||
- name: Set git to use LF
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Install Rust
|
||||
run: |
|
||||
.\bin\install_rust.ps1
|
||||
- name: Manage vcpkg cache
|
||||
uses: actions/cache@v4.0.2
|
||||
uses: actions/cache@v5.0.1
|
||||
with:
|
||||
path: C:\vcpkg
|
||||
key: ${{ runner.os }}-test-windows-x64
|
||||
- name: Environment
|
||||
run: .\bin\environment.ps1
|
||||
- name: Install Prerequisites
|
||||
- name: Install prerequisites
|
||||
run: .\bin\install_prerequisites_windows.ps1
|
||||
- name: Install Python 3.11
|
||||
uses: actions/setup-python@v6.1.0
|
||||
with:
|
||||
python-version: '3.11'
|
||||
- name: Environment
|
||||
run: |
|
||||
.\bin\activate_python3_venv.ps1
|
||||
- name: Build and test
|
||||
run: .\bin\test\test.ps1
|
||||
run: |
|
||||
.\bin\activate_python3_venv.ps1
|
||||
.\bin\test\test_prerequisites.ps1
|
||||
.\bin\test\test_unit.ps1
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: tests-win64-${{ matrix.rust }}-artifacts
|
||||
path: |
|
||||
./**/*.log
|
||||
|
||||
test-windows-wsl2-x64:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Set git to use LF
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Setup wsl Ubuntu
|
||||
uses: Vampire/setup-wsl@v6.0.0
|
||||
with:
|
||||
distribution: Ubuntu-22.04
|
||||
wsl-version: 2
|
||||
wsl-conf: |
|
||||
[interop]
|
||||
appendWindowsPath=false
|
||||
- name: List wsl distribution
|
||||
run: |
|
||||
wsl --list --verbose --all
|
||||
- shell: wsl-bash {0}
|
||||
run: |
|
||||
# Build, Test units and Integration tests
|
||||
set -e
|
||||
echo "::group::Move to linux compatible workspace"
|
||||
win_workspace="${{ github.workspace }}"
|
||||
wsl_workspace="/mnt/$(echo "${win_workspace}" | tr -d ':' | tr '\\' '/' | tr '[:upper:]' '[:lower:]')"
|
||||
linux_workspace="/tmp/hurl"
|
||||
cp -frp "${wsl_workspace}" "${linux_workspace}"
|
||||
cd "${linux_workspace}"
|
||||
pwd
|
||||
ls
|
||||
echo "::endgroup::"
|
||||
echo "::group::Install Prerequisites"
|
||||
bin/install_prerequisites_ubuntu.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Install python 3.11"
|
||||
bin/install_pythonx_for_ubuntu.sh 11
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH=/tmp/hurl-python3-venv/bin:$PATH
|
||||
echo "::endgroup::"
|
||||
echo "::group::Install tests integ prerequisistes"
|
||||
bin/test/test_prerequisites.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Install Rust"
|
||||
bin/install_rust.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Environment"
|
||||
bin/environment.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Tests units"
|
||||
bin/test/test_unit.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Build"
|
||||
bin/release/release.sh
|
||||
export PATH="${PWD}/target/release:$PATH"
|
||||
echo "::group::Tests integ"
|
||||
bin/test/test_integ.sh
|
||||
echo "::endgroup::"
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v6.0.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: tests-win64-wsl2-artifacts
|
||||
path: |
|
||||
./**/*.log
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ name: update-actions
|
|||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 4 * * *"
|
||||
- cron: "0 4 * * 1"
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency: update-actions-${{ github.ref }}
|
||||
|
|
@ -18,8 +18,9 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: true
|
||||
ref: master
|
||||
token: ${{ secrets.HURL_BOT_TOKEN }}
|
||||
|
||||
|
|
@ -68,7 +69,7 @@ jobs:
|
|||
fi
|
||||
|
||||
- name: Init git bot context
|
||||
uses: crazy-max/ghaction-import-gpg@v6.1.0
|
||||
uses: crazy-max/ghaction-import-gpg@v6.3.0
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY }}
|
||||
passphrase: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY_PASSPHRASE }}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ on:
|
|||
workflow_dispatch:
|
||||
inputs:
|
||||
new_version:
|
||||
description: 'Version (x.y.z-SNASPHOT)'
|
||||
description: 'Version (x.y.z-SNAPSHOT)'
|
||||
required: true
|
||||
type: string
|
||||
workflow_call:
|
||||
|
|
@ -20,7 +20,7 @@ on:
|
|||
required: true
|
||||
inputs:
|
||||
new_version:
|
||||
description: "Version (x.y.z-SNASPHOT)"
|
||||
description: "Version (x.y.z-SNAPSHOT)"
|
||||
required: true
|
||||
type: string
|
||||
branch:
|
||||
|
|
@ -38,22 +38,25 @@ concurrency: update-branch-version
|
|||
jobs:
|
||||
update-branch-version:
|
||||
env:
|
||||
GITHUB_REF: ${{ github.ref }}
|
||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||
GITHUB_TOKEN: ${{ secrets.HURL_BOT_TOKEN }}
|
||||
REPO: ${{ github.repository }}
|
||||
NEW_VERSION: ${{ inputs.new_version }}
|
||||
outputs:
|
||||
pr_number: ${{ steps.create-new-version-pr.outputs.pr_number }}
|
||||
name: update-branch-version
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: true
|
||||
ref: ${{ inputs.branch }}
|
||||
|
||||
- name: Init bot branch name
|
||||
run: |
|
||||
base=$(echo "${{ github.ref }}" | sed "s#refs/heads/##g" | tr '/' '-')
|
||||
base=$(echo "${GITHUB_REF}" | sed "s#refs/heads/##g" | tr '/' '-')
|
||||
echo "BOT_UPDATE_VERSION_BRANCH_NAME=bot/update-branch-version-${base}" | tee -a $GITHUB_ENV
|
||||
|
||||
- name: Update version
|
||||
|
|
@ -61,22 +64,21 @@ jobs:
|
|||
hurl_packages="hurl_core hurl hurlfmt"
|
||||
for package in ${hurl_packages} ; do
|
||||
cargo_toml="packages/${package}/Cargo.toml"
|
||||
sed -i "s/^version.*/version = \"${{ inputs.new_version }}\"/" "${cargo_toml}"
|
||||
sed -i "s/^version.*/version = \"${NEW_VERSION}\"/" "${cargo_toml}"
|
||||
echo "----------------------------"
|
||||
echo " > package version for ${cargo_toml}"
|
||||
echo " $(grep "^version =" "${cargo_toml}")"
|
||||
for dep_package in ${hurl_packages} ; do
|
||||
if [ $(grep -c "^${dep_package} =" "${cargo_toml}") -gt 0 ] ; then
|
||||
sed -i "s/^${dep_package} = { version .*/${dep_package} = { version = \"${{ inputs.new_version }}\", path = \"..\/${dep_package}\" }/" "${cargo_toml}"
|
||||
sed -i "s/^${dep_package} = { version .*/${dep_package} = { version = \"${NEW_VERSION}\", path = \"..\/${dep_package}\" }/" "${cargo_toml}"
|
||||
echo " > ${dep_package} dep package version for ${cargo_toml}"
|
||||
echo " $(grep "^${dep_package} =" "${cargo_toml}")"
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
- name: Cargo update
|
||||
run: |
|
||||
./bin/update_crates.sh
|
||||
- name: Cargo lock update
|
||||
run: cargo update hurl hurlfmt hurl_core
|
||||
|
||||
- name: Update man
|
||||
run: |
|
||||
|
|
@ -91,7 +93,7 @@ jobs:
|
|||
python3 bin/docs/build_readme.py crates > packages/hurl/README.md
|
||||
|
||||
- name: Init git bot context
|
||||
uses: crazy-max/ghaction-import-gpg@v6.1.0
|
||||
uses: crazy-max/ghaction-import-gpg@v6.3.0
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY }}
|
||||
passphrase: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY_PASSPHRASE }}
|
||||
|
|
@ -103,7 +105,7 @@ jobs:
|
|||
- name: Push commits
|
||||
run: |
|
||||
git checkout -b "${BOT_UPDATE_VERSION_BRANCH_NAME}"
|
||||
git commit -am "Update hurl version to ${{ inputs.new_version }}"
|
||||
git commit -am "Update hurl version to ${NEW_VERSION}"
|
||||
git push --set-upstream origin "${BOT_UPDATE_VERSION_BRANCH_NAME}" && git_exit_code=0 || git_exit_code=$?
|
||||
if [ ${git_exit_code} -eq 0 ] ; then
|
||||
echo " - ✅ commits pushed to ${BOT_UPDATE_VERSION_BRANCH_NAME} branch."
|
||||
|
|
@ -115,9 +117,8 @@ jobs:
|
|||
- name: Create new version PR
|
||||
id: create-new-version-pr
|
||||
run: |
|
||||
GITHUB_TOKEN=${{ secrets.HURL_BOT_TOKEN }}
|
||||
git fetch
|
||||
base=$(echo "${{ github.ref }}" | sed "s#refs/heads/##g")
|
||||
base=$(echo "${GITHUB_REF}" | sed "s#refs/heads/##g")
|
||||
gh pr create --fill --label bot --base "${base}" --head "${BOT_UPDATE_VERSION_BRANCH_NAME}" && gh_exit_code=0 || gh_exit_code=$?
|
||||
if [ ${gh_exit_code} -eq 0 ] ; then
|
||||
NEW_PR_NUMBER=$(gh pr list --repo "${REPO}" --head "${BOT_UPDATE_VERSION_BRANCH_NAME}" --state "open" --json number --jq .[].number)
|
||||
|
|
@ -127,3 +128,4 @@ jobs:
|
|||
echo " - ❌ A problem occurs when attempting to create new pull request."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -18,8 +18,9 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
uses: actions/checkout@v6.0.1
|
||||
with:
|
||||
persist-credentials: true
|
||||
ref: master
|
||||
|
||||
- name: Crates update
|
||||
|
|
@ -67,7 +68,7 @@ jobs:
|
|||
fi
|
||||
|
||||
- name: Init git bot context
|
||||
uses: crazy-max/ghaction-import-gpg@v6.1.0
|
||||
uses: crazy-max/ghaction-import-gpg@v6.3.0
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY }}
|
||||
passphrase: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY_PASSPHRASE }}
|
||||
|
|
|
|||
288
CHANGELOG.md
288
CHANGELOG.md
|
|
@ -1,3 +1,291 @@
|
|||
[7.2.0 (TBD)](https://github.com/Orange-OpenSource/hurl/blob/master/CHANGELOG.md#7.2.0)
|
||||
========================================================================================================================
|
||||
|
||||
Thanks to
|
||||
[@spiffytech](https://github.com/spiffytech),
|
||||
[@rajiv](https://github.com/rajiv),
|
||||
|
||||
Enhancements:
|
||||
|
||||
* Add Subject Alt Name (SAN) attribute for certificate assertions [#4617](https://github.com/Orange-OpenSource/hurl/issues/4617)
|
||||
|
||||
|
||||
Bugs Fixed:
|
||||
|
||||
* Fix truncating existing output file when response is tiny [#4576](https://github.com/Orange-OpenSource/hurl/issues/4576)
|
||||
|
||||
|
||||
[7.1.0 (2025-11-18)](https://github.com/Orange-OpenSource/hurl/blob/master/CHANGELOG.md#7.1.0)
|
||||
========================================================================================================================
|
||||
|
||||
Thanks to
|
||||
[@Nezteb](https://github.com/Nezteb),
|
||||
[@quantonganh](https://github.com/quantonganh),
|
||||
[@lambrospetrou](https://github.com/lambrospetrou),
|
||||
[@linkdd](https://github.com/linkdd),
|
||||
[@gugahoa](https://github.com/gugahoa),
|
||||
[@MikhailWahib](https://github.com/MikhailWahib),
|
||||
[@ashishajr](https://github.com/ashishajr),
|
||||
[@rcrisanti](https://github.com/rcrisanti),
|
||||
|
||||
Enhancements:
|
||||
|
||||
* Add CLI option to pretty print the response body [#1760](https://github.com/Orange-OpenSource/hurl/issues/1760)
|
||||
* Add pretty print option [#1760](https://github.com/Orange-OpenSource/hurl/issues/1760)
|
||||
* Support adding secret with HURL_SECRET_foo env variable [#3901](https://github.com/Orange-OpenSource/hurl/issues/3901)
|
||||
* Use happy path with http/https scheme for URL parsing to improve stress test use-cases [#4144](https://github.com/Orange-OpenSource/hurl/issues/4144)
|
||||
* Support `--secrets-file` for injecting secrets [#4309](https://github.com/Orange-OpenSource/hurl/issues/4309)
|
||||
* Add `--ntlm` option per request [#4322](https://github.com/Orange-OpenSource/hurl/issues/4322)
|
||||
* Add `--negotiate` option per request [#4323](https://github.com/Orange-OpenSource/hurl/issues/4323)
|
||||
* Add utf8Decode/utf8Encode filters [#4382](https://github.com/Orange-OpenSource/hurl/issues/4382)
|
||||
* Replace unmaintained encoding crate with encoding_rs crate [#4399](https://github.com/Orange-OpenSource/hurl/issues/4399)
|
||||
* Enhance logging for retry [#4419](https://github.com/Orange-OpenSource/hurl/issues/4419)
|
||||
* Add support for hour duration [#4422](https://github.com/Orange-OpenSource/hurl/issues/4422)
|
||||
* Enhance `--test` duration logging [#4423](https://github.com/Orange-OpenSource/hurl/issues/4423)
|
||||
* Add parsing support for more types of date time strings to toDate filter [#4439](https://github.com/Orange-OpenSource/hurl/issues/4439) [#4440](https://github.com/Orange-OpenSource/hurl/issues/4440) [#4441](https://github.com/Orange-OpenSource/hurl/issues/4441)
|
||||
* HTML report enhancements [#4445](https://github.com/Orange-OpenSource/hurl/issues/4445) [#4446](https://github.com/Orange-OpenSource/hurl/issues/4446)
|
||||
* Add retry count in the progress bar (only if retry >= 1) [#4511](https://github.com/Orange-OpenSource/hurl/issues/4511)
|
||||
* Add isList predicate [#4520](https://github.com/Orange-OpenSource/hurl/issues/4520)
|
||||
* Add isObject predicate [#4520](https://github.com/Orange-OpenSource/hurl/issues/4520)
|
||||
|
||||
|
||||
Bugs Fixed:
|
||||
|
||||
* Parse `--user`, `--negotiate`, and `--ntlm` options in hurlfmt [#4213](https://github.com/Orange-OpenSource/hurl/issues/4213)
|
||||
* Add parsing support for more types of date time strings to toDate filter [#4439](https://github.com/Orange-OpenSource/hurl/issues/4439) [#4440](https://github.com/Orange-OpenSource/hurl/issues/4440) [#4441](https://github.com/Orange-OpenSource/hurl/issues/4441)
|
||||
* Accept more path names when appending HTML reports [#4459](https://github.com/Orange-OpenSource/hurl/issues/4459)
|
||||
* Fix filtering of Authorization: and Cookie: headers when following redirections [#4460](https://github.com/Orange-OpenSource/hurl/issues/4460)
|
||||
* Fix supporting space in cookie storage cookie values [#4461](https://github.com/Orange-OpenSource/hurl/issues/4461)
|
||||
* Fix implicit "Content-Type" headers when following redirections [#4522](https://github.com/Orange-OpenSource/hurl/issues/4522)
|
||||
* Fix curl debug command with dot-prefixed cookie domain [#4558](https://github.com/Orange-OpenSource/hurl/issues/4558)
|
||||
|
||||
|
||||
[7.0.0 (2025-07-28)](https://github.com/Orange-OpenSource/hurl/blob/master/CHANGELOG.md#7.0.0)
|
||||
========================================================================================================================
|
||||
|
||||
Thanks to
|
||||
[@ecolinet](https://github.com/ecolinet),
|
||||
[@theoforger](https://github.com/theoforger),
|
||||
[@Muntaner](https://github.com/Muntaner),
|
||||
[@ashishajr](https://github.com/ashishajr),
|
||||
[@patkujawa-wf](https://github.com/patkujawa-wf),
|
||||
[@niklasweimann](https://github.com/niklasweimann),
|
||||
[@alanbondarun](https://github.com/alanbondarun),
|
||||
[@benkio](https://github.com/benkio),
|
||||
[@dhth](https://github.com/dhth),
|
||||
[@verigak](https://github.com/verigak),
|
||||
[@markphilpot](https://github.com/markphilpot),
|
||||
[@lambrospetrou](https://github.com/lambrospetrou),
|
||||
[@aresler](https://github.com/aresler),
|
||||
[@nfj25](https://github.com/nfj25),
|
||||
[@nwellnhof](https://github.com/nwellnhof),
|
||||
[@YannickAlex07](https://github.com/YannickAlex07),
|
||||
[@lu-zero](https://github.com/lu-zero),
|
||||
[@RaghavSood](https://github.com/RaghavSood),
|
||||
[@tjbrockmeyer](https://github.com/tjbrockmeyer),
|
||||
|
||||
Breaking Changes:
|
||||
|
||||
* Add replaceRegex filter and fix replace filter to not take regex [#4018](https://github.com/Orange-OpenSource/hurl/issues/4018)
|
||||
|
||||
|
||||
Enhancements:
|
||||
|
||||
* Add query for HTTP redirects [#922](https://github.com/Orange-OpenSource/hurl/issues/922)
|
||||
* Add urlQueryParam filter [#2199](https://github.com/Orange-OpenSource/hurl/issues/2199)
|
||||
* Show curl command when error format option is set to long [#2226](https://github.com/Orange-OpenSource/hurl/issues/2226)
|
||||
* Add option to configure max-time per request [#3162](https://github.com/Orange-OpenSource/hurl/issues/3162)
|
||||
* Add date comparison predicates [#3480](https://github.com/Orange-OpenSource/hurl/issues/3480)
|
||||
* Add pinnedpubkey cli option [#3563](https://github.com/Orange-OpenSource/hurl/issues/3563)
|
||||
* Add base64 url safe encode and decode filters [#3840](https://github.com/Orange-OpenSource/hurl/issues/3840)
|
||||
* parse curl's --cookie flag [#3877](https://github.com/Orange-OpenSource/hurl/issues/3877)
|
||||
* Show hurl --help with color [#3882](https://github.com/Orange-OpenSource/hurl/issues/3882)
|
||||
* Add toHex filter [#3963](https://github.com/Orange-OpenSource/hurl/issues/3963)
|
||||
* Add first and last filters [#3998](https://github.com/Orange-OpenSource/hurl/issues/3998)
|
||||
* Remove hex crate dependency [#4011](https://github.com/Orange-OpenSource/hurl/issues/4011)
|
||||
* Small tweaks to --test progress output [#4028](https://github.com/Orange-OpenSource/hurl/issues/4028)
|
||||
* Add support for negative values for nth filter [#4050](https://github.com/Orange-OpenSource/hurl/issues/4050)
|
||||
* Add option to configure pinnedpubkey per request [#4084](https://github.com/Orange-OpenSource/hurl/issues/4084)
|
||||
* Add timeline link on status label in source and run pages [#4128](https://github.com/Orange-OpenSource/hurl/issues/4128)
|
||||
* Support template in nth filter parameter [#4152](https://github.com/Orange-OpenSource/hurl/issues/4152)
|
||||
* Implement predicate `isUuid` [#4179](https://github.com/Orange-OpenSource/hurl/issues/4179)
|
||||
* Improve captures error messages when filter chain returned no value [#4214](https://github.com/Orange-OpenSource/hurl/issues/4214)
|
||||
* Add --ntlm cli option [#4216](https://github.com/Orange-OpenSource/hurl/issues/4216)
|
||||
* Add --negotiate option [#4246](https://github.com/Orange-OpenSource/hurl/issues/4246)
|
||||
|
||||
|
||||
Bugs Fixed:
|
||||
|
||||
* Fix incorrect curl command for POST redirect [#2797](https://github.com/Orange-OpenSource/hurl/issues/2797)
|
||||
* Fix hurlfmt to disallow invalid header argument in curl command [#3668](https://github.com/Orange-OpenSource/hurl/issues/3668)
|
||||
* Parse verbose flag in curl command [#3760](https://github.com/Orange-OpenSource/hurl/issues/3760)
|
||||
* Keep secret value forever, even if a secret variable override an existing one [#3898](https://github.com/Orange-OpenSource/hurl/issues/3898)
|
||||
* Fix zsh completion [#3938](https://github.com/Orange-OpenSource/hurl/issues/3938)
|
||||
* Parse cookie Expires date attribute with '-' [#3956](https://github.com/Orange-OpenSource/hurl/issues/3956)
|
||||
* Replace deprecated libxml2 initGenericErrorDefaultFunc with xmlSetGenericErrorFunc [#3975](https://github.com/Orange-OpenSource/hurl/issues/3975)
|
||||
* HTML report: fix span for lines in comment. [#4002](https://github.com/Orange-OpenSource/hurl/issues/4002)
|
||||
* Fix HTML closing tag for line with trailing comment [#4017](https://github.com/Orange-OpenSource/hurl/issues/4017)
|
||||
* Add replaceRegex filter and fix replace filter to not take regex [#4018](https://github.com/Orange-OpenSource/hurl/issues/4018)
|
||||
* Fix request body during redirections [#4073](https://github.com/Orange-OpenSource/hurl/issues/4073)
|
||||
* Fix "variables" token in GraphQL HTML export [#4117](https://github.com/Orange-OpenSource/hurl/issues/4117)
|
||||
* Support negative index in jsonpath [#4154](https://github.com/Orange-OpenSource/hurl/issues/4154)
|
||||
|
||||
|
||||
Security Issues Fixed:
|
||||
|
||||
* Fix JavaScript injection in HTML report through regex literal [#4125](https://github.com/Orange-OpenSource/hurl/issues/4125)
|
||||
|
||||
|
||||
[6.1.1 (2025-03-19)](https://github.com/Orange-OpenSource/hurl/blob/master/CHANGELOG.md#6.1.1)
|
||||
========================================================================================================================
|
||||
|
||||
Thanks to
|
||||
[@lu-zero](https://github.com/lu-zero),
|
||||
[@andrejohansson](https://github.com/andrejohansson),
|
||||
[@demostanis](https://github.com/demostanis),
|
||||
[@techfg](https://github.com/techfg),
|
||||
|
||||
Bugs Fixed:
|
||||
|
||||
* Fix hurlfmt spacing [#3839](https://github.com/Orange-OpenSource/hurl/issues/3839)
|
||||
* Fix filename parsing [#3848](https://github.com/Orange-OpenSource/hurl/issues/3848)
|
||||
* Fix jsonpath array wildcard with missing attribute [#3859](https://github.com/Orange-OpenSource/hurl/issues/3859) [#3869](https://github.com/Orange-OpenSource/hurl/issues/3869)
|
||||
* Fix predicate `contains` with none input [#3868](https://github.com/Orange-OpenSource/hurl/issues/3868)
|
||||
|
||||
|
||||
[6.1.0 (2025-03-12)](https://github.com/Orange-OpenSource/hurl/blob/master/CHANGELOG.md#6.1.0)
|
||||
========================================================================================================================
|
||||
|
||||
Thanks to
|
||||
[@lilyhuang-github](https://github.com/lilyhuang-github),
|
||||
[@ashishajr](https://github.com/ashishajr),
|
||||
[@kidbrax](https://github.com/kidbrax),
|
||||
[@theoforger](https://github.com/theoforger),
|
||||
[@smokedlinq](https://github.com/smokedlinq),
|
||||
[@docwhat](https://github.com/docwhat),
|
||||
[@glb-cblin](https://github.com/glb-cblin),
|
||||
[@Enoz](https://github.com/Enoz),
|
||||
[@ikorason](https://github.com/ikorason),
|
||||
[@uday-rana](https://github.com/uday-rana),
|
||||
[@lu-zero](https://github.com/lu-zero),
|
||||
[@nghiab1906724](https://github.com/nghiab1906724),
|
||||
[@overbyte](https://github.com/overbyte),
|
||||
|
||||
Breaking Changes:
|
||||
|
||||
* Remove deprecated predicates (notEquals, greaterThan etc...) in favor of operators [#3532](https://github.com/Orange-OpenSource/hurl/issues/3532)
|
||||
* Remove deprecated keyword HTTP/* for HTTP [#3697](https://github.com/Orange-OpenSource/hurl/issues/3697)
|
||||
|
||||
|
||||
Enhancements:
|
||||
|
||||
* Removed limitation for --cookie-jar to use only one hurl file [#2537](https://github.com/Orange-OpenSource/hurl/issues/2537)
|
||||
* Add HTTP version query [#1706](https://github.com/Orange-OpenSource/hurl/issues/1706)
|
||||
* Add curl -H/--header option to globally add headers to all requests [#1905](https://github.com/Orange-OpenSource/hurl/issues/1905) [#2144](https://github.com/Orange-OpenSource/hurl/issues/2144)
|
||||
* Add toString Filter [#2035](https://github.com/Orange-OpenSource/hurl/issues/2035) [#3798](https://github.com/Orange-OpenSource/hurl/issues/3798)
|
||||
* Add base64 decode filter [#2145](https://github.com/Orange-OpenSource/hurl/issues/2145)
|
||||
* Add base64 encode filter [#2145](https://github.com/Orange-OpenSource/hurl/issues/2145)
|
||||
* Redacts secrets from JUnit reports [#2947](https://github.com/Orange-OpenSource/hurl/issues/2947) [#2972](https://github.com/Orange-OpenSource/hurl/issues/2972)
|
||||
* Redacts secrets from JSON report [#2947](https://github.com/Orange-OpenSource/hurl/issues/2947) [#2972](https://github.com/Orange-OpenSource/hurl/issues/2972)
|
||||
* Redact secret in HTML report [#2947](https://github.com/Orange-OpenSource/hurl/issues/2947) [#2972](https://github.com/Orange-OpenSource/hurl/issues/2972)
|
||||
* Redact secrets from curl export [#2947](https://github.com/Orange-OpenSource/hurl/issues/2947) [#2972](https://github.com/Orange-OpenSource/hurl/issues/2972)
|
||||
* Redact secrets from cookies export [#2947](https://github.com/Orange-OpenSource/hurl/issues/2947) [#2972](https://github.com/Orange-OpenSource/hurl/issues/2972)
|
||||
* Add IP address query [#3106](https://github.com/Orange-OpenSource/hurl/issues/3106)
|
||||
* Add isIpv4 / isIpv6 asserts on IP versions [#3106](https://github.com/Orange-OpenSource/hurl/issues/3106)
|
||||
* Allow sending empty HTTP header [#3536](https://github.com/Orange-OpenSource/hurl/issues/3536)
|
||||
* Redact dynamic values from logs [#3543](https://github.com/Orange-OpenSource/hurl/issues/3543)
|
||||
* Add header option per request [#3575](https://github.com/Orange-OpenSource/hurl/issues/3575)
|
||||
* Fix invalid escape in hurlfmt parse func [#3615](https://github.com/Orange-OpenSource/hurl/issues/3615)
|
||||
* hurlfmt: Use Hurl predicates identifiers for Hurl to JSON file export [#3662](https://github.com/Orange-OpenSource/hurl/issues/3662)
|
||||
* Add aarch64 deb package [#3829](https://github.com/Orange-OpenSource/hurl/issues/3829)
|
||||
|
||||
|
||||
Bugs Fixed:
|
||||
|
||||
* Fix missing request line errors in HTML report [#3534](https://github.com/Orange-OpenSource/hurl/issues/3534)
|
||||
* Eval template in JSON object key [#3593](https://github.com/Orange-OpenSource/hurl/issues/3593)
|
||||
* Show error message if format is invalid in `format` filter [#3613](https://github.com/Orange-OpenSource/hurl/issues/3613)
|
||||
* Create parent folders if missing when using --cookie-jar FILE [#3637](https://github.com/Orange-OpenSource/hurl/issues/3637)
|
||||
* Remove lint errors and Fix non-zero exit code in case of error [#3648](https://github.com/Orange-OpenSource/hurl/issues/3648)
|
||||
* Support BigInteger in variable [#3656](https://github.com/Orange-OpenSource/hurl/issues/3656)
|
||||
* fix hurlfmt html export loosing some whitespaces [#3675](https://github.com/Orange-OpenSource/hurl/issues/3675)
|
||||
* Fix template to source [#3675](https://github.com/Orange-OpenSource/hurl/issues/3675)
|
||||
* Fix changing HTTP version per request sometimes not effective [#3719](https://github.com/Orange-OpenSource/hurl/issues/3719)
|
||||
* Add bash file completion for hurl/hurlfmt [#3750](https://github.com/Orange-OpenSource/hurl/issues/3750)
|
||||
* Fix multilines HTML export [#3768](https://github.com/Orange-OpenSource/hurl/issues/3768)
|
||||
* Change parsing file content type in multipart form data [#3796](https://github.com/Orange-OpenSource/hurl/issues/3796)
|
||||
|
||||
|
||||
Deprecations:
|
||||
|
||||
* Deprecate includes in favor of contains predicate [#1896](https://github.com/Orange-OpenSource/hurl/issues/1896)
|
||||
* Warn for deprecated multilines string attributes [#3622](https://github.com/Orange-OpenSource/hurl/issues/3622)
|
||||
* Warn for --interactive deprecation [#3763](https://github.com/Orange-OpenSource/hurl/issues/3763)
|
||||
|
||||
|
||||
[6.0.0 (2024-12-03)](https://github.com/Orange-OpenSource/hurl/blob/master/CHANGELOG.md#6.0.0)
|
||||
========================================================================================================================
|
||||
|
||||
Thanks to
|
||||
[@cemoktra](https://github.com/cemoktra),
|
||||
[@zikani03](https://github.com/zikani03),
|
||||
[@lambrospetrou](https://github.com/lambrospetrou),
|
||||
[@jmvargas](https://github.com/jmvargas),
|
||||
[@quantonganh](https://github.com/quantonganh),
|
||||
[@sandeshbhusal](https://github.com/sandeshbhusal),
|
||||
[@thePanz](https://github.com/thePanz),
|
||||
[@niklasweimann](https://github.com/niklasweimann),
|
||||
[@infogulch](https://github.com/infogulch),
|
||||
[@orlandow](https://github.com/orlandow),
|
||||
[@bp7968h](https://github.com/bp7968h),
|
||||
|
||||
Breaking Changes:
|
||||
|
||||
* Check that variables do not conflict with existing functions [#3229](https://github.com/Orange-OpenSource/hurl/issues/3229)
|
||||
* Remove deprecated --fail-at-end option [#3430](https://github.com/Orange-OpenSource/hurl/issues/3430)
|
||||
* Change API for setting variable in hurl::runner::run [#3440](https://github.com/Orange-OpenSource/hurl/issues/3440)
|
||||
* Remove hurlfmt deprecated --format option [#3445](https://github.com/Orange-OpenSource/hurl/issues/3445)
|
||||
* Rename feature flag from vendored-openssl to static-openssl [#3460](https://github.com/Orange-OpenSource/hurl/issues/3460)
|
||||
|
||||
|
||||
Enhancements:
|
||||
|
||||
* Implement function newUuid [#973](https://github.com/Orange-OpenSource/hurl/issues/973)
|
||||
* Implement --limit-rate from curl [#1222](https://github.com/Orange-OpenSource/hurl/issues/1222)
|
||||
* Add --curl option to export executed requests to curl commands [#2679](https://github.com/Orange-OpenSource/hurl/issues/2679)
|
||||
* Configure --connect-timeout per request [#3163](https://github.com/Orange-OpenSource/hurl/issues/3163)
|
||||
* Support short name for sections [QueryStringParams] => [Query], [FormParams] => [Form], [MultipartFormData] => [Multipart] [#3238](https://github.com/Orange-OpenSource/hurl/issues/3238)
|
||||
* Remove url-specific parser (align with grammar) [#3244](https://github.com/Orange-OpenSource/hurl/issues/3244)
|
||||
* Remove the crate float-cmp [#3247](https://github.com/Orange-OpenSource/hurl/issues/3247)
|
||||
* Jsonpath / Add filter on boolean value [#3252](https://github.com/Orange-OpenSource/hurl/issues/3252)
|
||||
* Jsonpath / Add non-equal filter on string and number value [#3261](https://github.com/Orange-OpenSource/hurl/issues/3261)
|
||||
* Add support for backtick strings in predicates values [#3317](https://github.com/Orange-OpenSource/hurl/issues/3317)
|
||||
* Categorise options in --help [#3339](https://github.com/Orange-OpenSource/hurl/issues/3339)
|
||||
* Support more JSON / XML "like" mimetypes with debug output [#3343](https://github.com/Orange-OpenSource/hurl/issues/3343)
|
||||
* Add curl debug command to --json and JSON report [#3374](https://github.com/Orange-OpenSource/hurl/issues/3374)
|
||||
* Add curl debug command to HTML report [#3386](https://github.com/Orange-OpenSource/hurl/issues/3386)
|
||||
* Render Date value [#3431](https://github.com/Orange-OpenSource/hurl/issues/3431)
|
||||
* Add newDate generator [#3443](https://github.com/Orange-OpenSource/hurl/issues/3443)
|
||||
|
||||
|
||||
Bugs Fixed:
|
||||
|
||||
* Fix reading standard input multiple times [#3216](https://github.com/Orange-OpenSource/hurl/issues/3216)
|
||||
* Fix filename parsing (used by cert option) [#3242](https://github.com/Orange-OpenSource/hurl/issues/3242)
|
||||
* Add additional check for --max-filesize option [#3245](https://github.com/Orange-OpenSource/hurl/issues/3245)
|
||||
* Support case-insensitive Cookie Attributes [#3265](https://github.com/Orange-OpenSource/hurl/issues/3265)
|
||||
* Allow any string in Location Header when not following redirection [#3293](https://github.com/Orange-OpenSource/hurl/issues/3293)
|
||||
* Fix graceful shutdown of workers threads in --test [#3297](https://github.com/Orange-OpenSource/hurl/issues/3297)
|
||||
* Fix missing space in variable option HTML export [#3412](https://github.com/Orange-OpenSource/hurl/issues/3412)
|
||||
|
||||
|
||||
[5.0.1 (2024-08-30)](https://github.com/Orange-OpenSource/hurl/blob/master/CHANGELOG.md#5.0.1)
|
||||
========================================================================================================================
|
||||
|
||||
Bugs Fixed:
|
||||
|
||||
* Fix regression in --output when output file doesn't exist [#3195](https://github.com/Orange-OpenSource/hurl/issues/3195)
|
||||
|
||||
[5.0.0 (2024-08-29)](https://github.com/Orange-OpenSource/hurl/blob/master/CHANGELOG.md#5.0.0)
|
||||
========================================================================================================================
|
||||
|
||||
|
|
|
|||
|
|
@ -24,6 +24,9 @@ relevant to you and we understand it; that's said, we try to reflect on every as
|
|||
|
||||
## How Can You Help ?
|
||||
|
||||
Issues opened to contributors are labelled ["open-to-contribution"](https://github.com/Orange-OpenSource/hurl/issues?q=is%3Aissue%20state%3Aopen%20label%3Aopen-to-contribution).
|
||||
Apart for these issues, we're looking forward to contributors for:
|
||||
|
||||
- Installing / Packet managers: bundle Hurl for a particular packet manager is welcome. Currently, we built binaries for
|
||||
Linux, macOS, Windows and we support a narrow set of packet manager. [More would be better!].
|
||||
- IDE Support: everything from color syntax (in VSCode, Vim, IntelliJ, TextMate etc...) would be a good idea. An
|
||||
|
|
@ -35,6 +38,9 @@ relevant to you and we understand it; that's said, we try to reflect on every as
|
|||
|
||||
- [Create a new Git branch], don't use `master` branch for PR.
|
||||
- All Git commits are [required to be signed] and marked as "Verified": signed with a GPG, SSH, or S/MIME that is successfully verified by GitHub.
|
||||
- Commit messages are simple phrases, don't use [Semantic Commit Messages] nor [Conventional Commits]
|
||||
- ❌ `fix: missing space in variable option HTML export`
|
||||
- ✅ `Fix missing space in variable option HTML export`
|
||||
- All tests must be green before merge. Our CI/CD will run [a test suite] to insure everything is OK.
|
||||
- Hurl Git history is linear, so we may rebase your PR on your fork before final merge.
|
||||
|
||||
|
|
@ -47,10 +53,10 @@ Once your setup is ready, just build the project:
|
|||
|
||||
```shell
|
||||
$ cargo build
|
||||
Compiling hurl_core v2.0.0-SNAPSHOT (/Users/jc/Documents/Dev/hurl/packages/hurl_core)
|
||||
Compiling hurl_core v6.0.0-SNAPSHOT (/Users/jc/Documents/Dev/hurl/packages/hurl_core)
|
||||
...
|
||||
Compiling hurlfmt v2.0.0-SNAPSHOT (/Users/jc/Documents/Dev/hurl/packages/hurlfmt)
|
||||
Compiling hurl v2.0.0-SNAPSHOT (/Users/jc/Documents/Dev/hurl/packages/hurl)
|
||||
Compiling hurlfmt v6.0.0-SNAPSHOT (/Users/jc/Documents/Dev/hurl/packages/hurlfmt)
|
||||
Compiling hurl v6.0.0-SNAPSHOT (/Users/jc/Documents/Dev/hurl/packages/hurl)
|
||||
Finished dev [unoptimized + debuginfo] target(s) in 2.53s
|
||||
```
|
||||
|
||||
|
|
@ -61,7 +67,7 @@ $ cargo test --lib
|
|||
```
|
||||
|
||||
|
||||
Hurl has a big suite of [integration tests]. To run the integration tests, you'll need Python 3.6+. You can use a [virtual environment] and install the dependencies needed
|
||||
Hurl has a big suite of [integration tests]. To run the integration tests, you'll need Python 3.9+. You can use a [virtual environment] and install the dependencies needed
|
||||
by the tests suite:
|
||||
|
||||
```shell
|
||||
|
|
@ -73,15 +79,21 @@ $ pip install --requirement bin/requirements-frozen.txt
|
|||
Then, you can launch our local server (used to test Hurl features):
|
||||
|
||||
```shell
|
||||
$ cd integration
|
||||
$ python3 server.py >server.log 2>&1 &
|
||||
$ python3 ssl/server.py >server-ssl.log 2>&1 &
|
||||
$ squid_conf="http_access allow all\nhttp_port 3128\nrequest_header_add From-Proxy Hello\nreply_header_add From-Proxy Hello"
|
||||
$ (echo "${squid_conf}" | squid -d 2 -N -f /dev/stdin > proxy.log 2>&1) &
|
||||
$ cd integration/hurl
|
||||
$ python3 server.py > server.log 2>&1 &
|
||||
$ python3 tests_ssl/ssl_server.py 8001 tests_ssl/certs/server/cert.selfsigned.pem false > server-ssl-selfsigned.log 2>&1 &
|
||||
$ python3 tests_ssl/ssl_server.py 8002 tests_ssl/certs/server/cert.pem false > server-ssl-signedbyca.log 2>&1 &
|
||||
$ python3 tests_ssl/ssl_server.py 8003 tests_ssl/certs/server/cert.selfsigned.pem true > server-ssl-client-authent.log 2>&1 &
|
||||
$ python3 tests_unix_socket/unix_socket_server.py > server-unix-socket.log 2>&1 &
|
||||
$ squid_conf="cache deny all\ncache_log /dev/null\naccess_log /dev/null\nhttp_access allow all\nhttp_port 127.0.0.1:3128\nrequest_header_add From-Proxy Hello\nreply_header_add From-Proxy Hello"
|
||||
$ (echo -e "${squid_conf}" | sudo squid -d 2 -N -f /dev/stdin | sudo tee proxy.log 2>&1) &
|
||||
$ jobs
|
||||
[1] running python3 server.py > server.log 2>&1
|
||||
[2] - running python3 ssl/server.py > server-ssl.log 2>&1
|
||||
[3] + running echo "${squid_conf}" | squid -d 2 -N -f /dev/stdin > proxy.log 2>&1
|
||||
|
||||
[1] Running ( echo -e "${squid_conf}" | sudo squid -d 2 -N -f /dev/stdin | sudo tee build/proxy.log 2>&1 ) &
|
||||
[2] Running python3 server.py > server.log 2>&1 &
|
||||
[3] Running python3 tests_ssl/ssl_server.py 8001 tests_ssl/certs/server/cert.selfsigned.pem false > server-ssl-selfsigned.log 2>&1 &
|
||||
[4]-Running python3 tests_ssl/ssl_server.py 8002 tests_ssl/certs/server/cert.pem false > server-ssl-signedbyca.log 2>&1 &
|
||||
[5]+Running python3 tests_ssl/ssl_server.py 8003 tests_ssl/certs/server/cert.selfsigned.pem true > server-ssl-client-authent.log 2>&1 &
|
||||
```
|
||||
|
||||
You can check [the integration `README`] for more details
|
||||
|
|
@ -92,7 +104,7 @@ Now, you can follow these steps when you make changes:
|
|||
2. Run Clippy `cargo clippy`
|
||||
3. Format `cargo fmt`
|
||||
4. Run units tests `cargo test --lib`
|
||||
5. Run integration tests `cd integration && python3 integration.py`
|
||||
5. Run integration tests `cd integration/hurl && python3 integration.py`
|
||||
|
||||
Et voilà 🎉!
|
||||
|
||||
|
|
@ -106,8 +118,10 @@ Et voilà 🎉!
|
|||
[virtual environment]: https://docs.python.org/3/tutorial/venv.html
|
||||
[Hurl core values]: #hurl-core-values
|
||||
[a test suite]: https://github.com/Orange-OpenSource/hurl/actions
|
||||
[an integration test]: https://github.com/Orange-OpenSource/hurl/tree/master/integration/tests_ok
|
||||
[an integration test]: https://github.com/Orange-OpenSource/hurl/tree/master/integration/hurl/tests_ok
|
||||
[Create a new Git branch]: https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-and-deleting-branches-within-your-repository
|
||||
[required to be signed]: https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification
|
||||
[integration tests]: https://github.com/Orange-OpenSource/hurl/tree/master/integration
|
||||
[the integration `README`]: /integration/README.md
|
||||
[Conventional Commits]: https://www.conventionalcommits.org
|
||||
[Semantic Commit Messages]: https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -20,3 +20,4 @@ warnings = "deny"
|
|||
empty_structs_with_brackets = "deny"
|
||||
manual_string_new = "deny"
|
||||
semicolon_if_nothing_returned = "deny"
|
||||
wildcard-imports = "deny"
|
||||
|
|
|
|||
597
README.md
597
README.md
|
|
@ -19,7 +19,7 @@ versatile: it can be used for both <b>fetching data</b> and <b>testing HTTP</b>
|
|||
Hurl makes it easy to work with <b>HTML</b> content, <b>REST / SOAP / GraphQL</b> APIs, or any other <b>XML / JSON</b> based APIs.
|
||||
|
||||
```hurl
|
||||
# Get home:
|
||||
# Go home and capture token
|
||||
GET https://example.org
|
||||
HTTP 200
|
||||
[Captures]
|
||||
|
|
@ -27,8 +27,11 @@ csrf_token: xpath "string(//meta[@name='_csrf_token']/@content)"
|
|||
|
||||
|
||||
# Do login!
|
||||
POST https://example.org/login?user=toto&password=1234
|
||||
POST https://example.org/login
|
||||
X-CSRF-TOKEN: {{csrf_token}}
|
||||
[Form]
|
||||
user: toto
|
||||
password: 1234
|
||||
HTTP 302
|
||||
```
|
||||
|
||||
|
|
@ -147,7 +150,7 @@ Finally, Hurl is easy to <b>integrate in CI/CD</b>, with text, JUnit, TAP and HT
|
|||
Hurl is a lightweight binary written in [Rust]. Under the hood, Hurl HTTP engine is
|
||||
powered by [libcurl], one of the most powerful and reliable file transfer libraries.
|
||||
With its text file format, Hurl adds syntactic sugar to run and test HTTP requests,
|
||||
but it's still the [curl] that we love: __fast__, __efficient__ and __HTTP/3 ready__.
|
||||
but it's still the [curl] that we love: __fast__, __efficient__ and __IPv6 / HTTP/3 ready__.
|
||||
|
||||
# Feedbacks
|
||||
|
||||
|
|
@ -172,93 +175,104 @@ HTTP 200
|
|||
|
||||
[Tutorial]
|
||||
|
||||
[Documentation]
|
||||
[Documentation] (download [HTML], [PDF], [Markdown])
|
||||
|
||||
[GitHub]
|
||||
|
||||
Table of Contents
|
||||
=================
|
||||
* [Samples](#samples)
|
||||
* [Getting Data](#getting-data)
|
||||
* [HTTP Headers](#http-headers)
|
||||
* [Query Params](#query-params)
|
||||
* [Basic Authentication](#basic-authentication)
|
||||
* [Passing Data between Requests ](#passing-data-between-requests)
|
||||
* [Sending Data](#sending-data)
|
||||
* [Sending HTML Form Data](#sending-html-form-data)
|
||||
* [Sending Multipart Form Data](#sending-multipart-form-data)
|
||||
* [Posting a JSON Body](#posting-a-json-body)
|
||||
* [Templating a JSON Body](#templating-a-json-body)
|
||||
* [Templating a XML Body](#templating-a-xml-body)
|
||||
* [Using GraphQL Query](#using-graphql-query)
|
||||
* [Testing Response](#testing-response)
|
||||
* [Testing Status Code](#testing-status-code)
|
||||
* [Testing Response Headers](#testing-response-headers)
|
||||
* [Testing REST APIs](#testing-rest-apis)
|
||||
* [Testing HTML Response](#testing-html-response)
|
||||
* [Testing Set-Cookie Attributes](#testing-set-cookie-attributes)
|
||||
* [Testing Bytes Content](#testing-bytes-content)
|
||||
* [SSL Certificate](#ssl-certificate)
|
||||
* [Checking Full Body](#checking-full-body)
|
||||
* [Reports](#reports)
|
||||
* [HTML Report](#html-report)
|
||||
* [JSON Report](#json-report)
|
||||
* [JUnit Report](#junit-report)
|
||||
* [TAP Report](#tap-report)
|
||||
* [JSON Output](#json-output)
|
||||
* [Others](#others)
|
||||
* [HTTP Version](#http-version)
|
||||
* [Polling and Retry](#polling-and-retry)
|
||||
* [Delaying Requests](#delaying-requests)
|
||||
* [Skipping Requests](#skipping-requests)
|
||||
* [Testing Endpoint Performance](#testing-endpoint-performance)
|
||||
* [Using SOAP APIs](#using-soap-apis)
|
||||
* [Capturing and Using a CSRF Token](#capturing-and-using-a-csrf-token)
|
||||
* [Checking Byte Order Mark (BOM) in Response Body](#checking-byte-order-mark-bom-in-response-body)
|
||||
* [AWS Signature Version 4 Requests](#aws-signature-version-4-requests)
|
||||
* [Using curl Options](#using-curl-options)
|
||||
* [Manual](#manual)
|
||||
* [Name](#name)
|
||||
* [Synopsis](#synopsis)
|
||||
* [Description](#description)
|
||||
* [Hurl File Format](#hurl-file-format)
|
||||
* [Capturing values](#capturing-values)
|
||||
* [Asserts](#asserts)
|
||||
* [Options](#options)
|
||||
* [Environment](#environment)
|
||||
* [Exit Codes](#exit-codes)
|
||||
* [WWW](#www)
|
||||
* [See Also](#see-also)
|
||||
* [Installation](#installation)
|
||||
* [Binaries Installation](#binaries-installation)
|
||||
* [Linux](#linux)
|
||||
# Table of Contents
|
||||
|
||||
* [Samples](#samples)
|
||||
* [Getting Data](#getting-data)
|
||||
* [HTTP Headers](#http-headers)
|
||||
* [Query Params](#query-params)
|
||||
* [Basic Authentication](#basic-authentication)
|
||||
* [Passing Data between Requests ](#passing-data-between-requests)
|
||||
* [Sending Data](#sending-data)
|
||||
* [Sending HTML Form Data](#sending-html-form-data)
|
||||
* [Sending Multipart Form Data](#sending-multipart-form-data)
|
||||
* [Posting a JSON Body](#posting-a-json-body)
|
||||
* [Templating a JSON Body](#templating-a-json-body)
|
||||
* [Templating a XML Body](#templating-a-xml-body)
|
||||
* [Using GraphQL Query](#using-graphql-query)
|
||||
* [Using Dynamic Datas](#using-dynamic-datas)
|
||||
* [Testing Response](#testing-response)
|
||||
* [Testing Status Code](#testing-status-code)
|
||||
* [Testing Response Headers](#testing-response-headers)
|
||||
* [Testing REST APIs](#testing-rest-apis)
|
||||
* [Testing HTML Response](#testing-html-response)
|
||||
* [Testing Set-Cookie Attributes](#testing-set-cookie-attributes)
|
||||
* [Testing Bytes Content](#testing-bytes-content)
|
||||
* [SSL Certificate](#ssl-certificate)
|
||||
* [Checking Full Body](#checking-full-body)
|
||||
* [Testing Redirections](#testing-redirections)
|
||||
* [Debug Tips](#debug-tips)
|
||||
* [Verbose Mode](#verbose-mode)
|
||||
* [Error Format](#error-format)
|
||||
* [Output Response Body](#output-response-body)
|
||||
* [Export curl Commands](#export-curl-commands)
|
||||
* [Using Proxy](#using-proxy)
|
||||
* [Reports](#reports)
|
||||
* [HTML Report](#html-report)
|
||||
* [JSON Report](#json-report)
|
||||
* [JUnit Report](#junit-report)
|
||||
* [TAP Report](#tap-report)
|
||||
* [JSON Output](#json-output)
|
||||
* [Others](#others)
|
||||
* [HTTP Version](#http-version)
|
||||
* [IP Address](#ip-address)
|
||||
* [Polling and Retry](#polling-and-retry)
|
||||
* [Delaying Requests](#delaying-requests)
|
||||
* [Skipping Requests](#skipping-requests)
|
||||
* [Testing Endpoint Performance](#testing-endpoint-performance)
|
||||
* [Using SOAP APIs](#using-soap-apis)
|
||||
* [Capturing and Using a CSRF Token](#capturing-and-using-a-csrf-token)
|
||||
* [Redacting Secrets](#redacting-secrets)
|
||||
* [Checking Byte Order Mark (BOM) in Response Body](#checking-byte-order-mark-bom-in-response-body)
|
||||
* [AWS Signature Version 4 Requests](#aws-signature-version-4-requests)
|
||||
* [Using curl Options](#using-curl-options)
|
||||
* [Manual](#manual)
|
||||
* [Name](#name)
|
||||
* [Synopsis](#synopsis)
|
||||
* [Description](#description)
|
||||
* [Hurl File Format](#hurl-file-format)
|
||||
* [Capturing values](#capturing-values)
|
||||
* [Asserts](#asserts)
|
||||
* [Options](#options)
|
||||
* [Environment](#environment)
|
||||
* [Exit Codes](#exit-codes)
|
||||
* [WWW](#www)
|
||||
* [See Also](#see-also)
|
||||
* [Installation](#installation)
|
||||
* [Binaries Installation](#binaries-installation)
|
||||
* [Linux](#linux)
|
||||
* [Debian / Ubuntu](#debian--ubuntu)
|
||||
* [Alpine](#alpine)
|
||||
* [Arch Linux / Manjaro](#arch-linux--manjaro)
|
||||
* [NixOS / Nix](#nixos--nix)
|
||||
* [macOS](#macos)
|
||||
* [macOS](#macos)
|
||||
* [Homebrew](#homebrew)
|
||||
* [MacPorts](#macports)
|
||||
* [FreeBSD](#freebsd)
|
||||
* [Windows](#windows)
|
||||
* [FreeBSD](#freebsd)
|
||||
* [Windows](#windows)
|
||||
* [Zip File](#zip-file)
|
||||
* [Installer](#installer)
|
||||
* [Chocolatey](#chocolatey)
|
||||
* [Scoop](#scoop)
|
||||
* [Windows Package Manager](#windows-package-manager)
|
||||
* [Cargo](#cargo)
|
||||
* [conda-forge](#conda-forge)
|
||||
* [Docker](#docker)
|
||||
* [npm](#npm)
|
||||
* [Building From Sources](#building-from-sources)
|
||||
* [Build on Linux](#build-on-linux)
|
||||
* [Cargo](#cargo)
|
||||
* [conda-forge](#conda-forge)
|
||||
* [Docker](#docker)
|
||||
* [npm](#npm)
|
||||
* [Building From Sources](#building-from-sources)
|
||||
* [Build on Linux](#build-on-linux)
|
||||
* [Debian based distributions](#debian-based-distributions)
|
||||
* [Fedora based distributions](#fedora-based-distributions)
|
||||
* [Red Hat based distributions](#red-hat-based-distributions)
|
||||
* [Arch based distributions](#arch-based-distributions)
|
||||
* [Alpine based distributions](#alpine-based-distributions)
|
||||
* [Build on macOS](#build-on-macos)
|
||||
* [Build on Windows](#build-on-windows)
|
||||
* [Build on macOS](#build-on-macos)
|
||||
* [Build on Windows](#build-on-windows)
|
||||
|
||||
# Samples
|
||||
|
||||
To run a sample, edit a file with the sample content, and run Hurl:
|
||||
|
|
@ -278,7 +292,7 @@ oriented output, you can use [`--test` option]:
|
|||
$ hurl --test sample.hurl
|
||||
```
|
||||
|
||||
A particular response can be saved with [`[Options] section`][option]:
|
||||
A particular response can be saved with [`[Options] section`](https://hurl.dev/docs/request.html#options):
|
||||
|
||||
```hurl
|
||||
GET https://example.ord/cats/123
|
||||
|
|
@ -337,7 +351,7 @@ Connection: keep-alive
|
|||
|
||||
```hurl
|
||||
GET https://example.org/news
|
||||
[QueryStringParams]
|
||||
[Query]
|
||||
order: newest
|
||||
search: something to search
|
||||
count: 100
|
||||
|
|
@ -349,7 +363,7 @@ Or:
|
|||
GET https://example.org/news?order=newest&search=something%20to%20search&count=100
|
||||
```
|
||||
|
||||
> With `[QueryStringParams]` section, params don't need to be URL escaped.
|
||||
> With `[Query]` section, params don't need to be URL escaped.
|
||||
|
||||
[Doc](https://hurl.dev/docs/request.html#query-parameters)
|
||||
|
||||
|
|
@ -414,7 +428,7 @@ HTTP 200
|
|||
|
||||
```hurl
|
||||
POST https://example.org/contact
|
||||
[FormParams]
|
||||
[Form]
|
||||
default: false
|
||||
token: {{token}}
|
||||
email: john.doe@rookie.org
|
||||
|
|
@ -427,7 +441,7 @@ number: 33611223344
|
|||
|
||||
```hurl
|
||||
POST https://example.org/upload
|
||||
[MultipartFormData]
|
||||
[Multipart]
|
||||
field1: value1
|
||||
field2: file,example.txt;
|
||||
# One can specify the file content type:
|
||||
|
|
@ -464,8 +478,6 @@ In that case, files have to be inlined in the Hurl file.
|
|||
|
||||
[Doc](https://hurl.dev/docs/request.html#multiline-string-body)
|
||||
|
||||
|
||||
|
||||
### Posting a JSON Body
|
||||
|
||||
With an inline JSON:
|
||||
|
|
@ -585,6 +597,32 @@ GraphQL queries can also use [Hurl templates].
|
|||
|
||||
[Doc](https://hurl.dev/docs/request.html#graphql-body)
|
||||
|
||||
### Using Dynamic Datas
|
||||
|
||||
[Functions] like `newUuid` and `newDate` can be used in templates to create dynamic datas:
|
||||
|
||||
|
||||
A file that creates a dynamic email (i.e `0531f78f-7f87-44be-a7f2-969a1c4e6d97@test.com`):
|
||||
|
||||
```hurl
|
||||
POST https://example.org/api/foo
|
||||
{
|
||||
"name": "foo",
|
||||
"email": "{{newUuid}}@test.com"
|
||||
}
|
||||
```
|
||||
|
||||
A file that creates a dynamic query parameter (i.e `2024-12-02T10:35:44.461731Z`):
|
||||
|
||||
```hurl
|
||||
GET https://example.org/api/foo
|
||||
[Query]
|
||||
date: {{newDate}}
|
||||
HTTP 200
|
||||
```
|
||||
|
||||
[Doc](https://hurl.dev/docs/templates.html#functions)
|
||||
|
||||
## Testing Response
|
||||
|
||||
Responses are optional, everything after `HTTP` is part of the response asserts.
|
||||
|
|
@ -624,7 +662,6 @@ status < 300
|
|||
|
||||
[Doc](https://hurl.dev/docs/asserting-response.html#status-assert)
|
||||
|
||||
|
||||
### Testing Response Headers
|
||||
|
||||
Use implicit response asserts to test header values:
|
||||
|
|
@ -671,19 +708,20 @@ screencapability: low
|
|||
HTTP 200
|
||||
[Asserts]
|
||||
jsonpath "$.validated" == true
|
||||
jsonpath "$.userInfo" isObject
|
||||
jsonpath "$.userInfo.firstName" == "Franck"
|
||||
jsonpath "$.userInfo.lastName" == "Herbert"
|
||||
jsonpath "$.hasDevice" == false
|
||||
jsonpath "$.links" count == 12
|
||||
jsonpath "$.state" != null
|
||||
jsonpath "$.order" matches "^order-\\d{8}$"
|
||||
jsonpath "$.order" matches /^order-\d{8}$/ # Alternative syntax with regex literal
|
||||
jsonpath "$.order" matches /^order-\d{8}$/ # Alternative syntax with regex literal
|
||||
jsonpath "$.id" matches /(?i)[a-z]*/ # See syntax for flags <https://docs.rs/regex/latest/regex/#grouping-and-flags>
|
||||
jsonpath "$.created" isIsoDate
|
||||
```
|
||||
|
||||
[Doc](https://hurl.dev/docs/asserting-response.html#jsonpath-assert)
|
||||
|
||||
|
||||
### Testing HTML Response
|
||||
|
||||
```hurl
|
||||
|
|
@ -742,6 +780,8 @@ certificate "Subject" == "CN=example.org"
|
|||
certificate "Issuer" == "C=US, O=Let's Encrypt, CN=R3"
|
||||
certificate "Expire-Date" daysAfterNow > 15
|
||||
certificate "Serial-Number" matches /[\da-f]+/
|
||||
certificate "Subject-Alt-Name" contains "DNS:example.org"
|
||||
certificate "Subject-Alt-Name" split "," count == 2
|
||||
```
|
||||
|
||||
[Doc](https://hurl.dev/docs/asserting-response.html#ssl-certificate-assert)
|
||||
|
|
@ -832,6 +872,123 @@ file,data.bin;
|
|||
|
||||
[Doc](https://hurl.dev/docs/asserting-response.html#file-body)
|
||||
|
||||
### Testing Redirections
|
||||
|
||||
By default, Hurl doesn't follow redirection so each step of a redirect must be run manually and can be analysed:
|
||||
|
||||
```hurl
|
||||
GET https://example.org/step1
|
||||
HTTP 301
|
||||
[Asserts]
|
||||
header "Location" == "https://example.org/step2"
|
||||
|
||||
|
||||
GET https://example.org/step2
|
||||
HTTP 301
|
||||
[Asserts]
|
||||
header "Location" == "https://example.org/step3"
|
||||
|
||||
|
||||
GET https://example.org/step3
|
||||
HTTP 200
|
||||
```
|
||||
|
||||
[Doc](https://hurl.dev/docs/asserting-response.html)
|
||||
|
||||
Using [`--location`] and [`--location-trusted`] (either with command line option or per request), Hurl follows
|
||||
redirection and each step of the redirection can be checked.
|
||||
|
||||
```hurl
|
||||
GET https://example.org/step1
|
||||
[Options]
|
||||
location: true
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
redirects count == 2
|
||||
redirects nth 0 location == "https://example.org/step2"
|
||||
redirects nth 1 location == "https://example.org/step3"
|
||||
```
|
||||
|
||||
```hurl
|
||||
GET https://example.org/step1
|
||||
[Options]
|
||||
location-trusted: true
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
redirects last location == "https://example.org/step2"
|
||||
```
|
||||
|
||||
[Doc](https://hurl.dev/docs/asserting-response.html#redirects-assert)
|
||||
|
||||
## Debug Tips
|
||||
|
||||
### Verbose Mode
|
||||
|
||||
To get more info on a given request/response, use [`[Options]` section](https://hurl.dev/docs/request.html#options):
|
||||
|
||||
```hurl
|
||||
GET https://example.org
|
||||
HTTP 200
|
||||
|
||||
GET https://example.org/api/cats/123
|
||||
[Options]
|
||||
very-verbose: true
|
||||
HTTP 200
|
||||
```
|
||||
|
||||
`--verbose` and `--very-verbose` can be also used globally as command line options.
|
||||
|
||||
[Doc](https://hurl.dev/docs/manual.html#very-verbose)
|
||||
|
||||
### Error Format
|
||||
|
||||
```shell
|
||||
$ hurl --test --error-format long *.hurl
|
||||
```
|
||||
|
||||
[Doc](https://hurl.dev/docs/manual.html#error-format)
|
||||
|
||||
### Output Response Body
|
||||
|
||||
Use `--output` on a specific request to get the response body (`-` can be used as standard output):
|
||||
|
||||
```hurl
|
||||
GET https://foo.com/failure
|
||||
[Options]
|
||||
# use - to output on standard output, foo.bin to save on disk
|
||||
output: -
|
||||
HTTP 200
|
||||
|
||||
GET https://foo.com/success
|
||||
HTTP 200
|
||||
```
|
||||
|
||||
[Doc](https://hurl.dev/docs/manual.html#output)
|
||||
|
||||
### Export curl Commands
|
||||
|
||||
```shell
|
||||
$ hurl ---curl /tmp/curl.txt *.hurl
|
||||
```
|
||||
|
||||
[Doc](https://hurl.dev/docs/manual.html#curl)
|
||||
|
||||
### Using Proxy
|
||||
|
||||
Use `--proxy` on a specific request or globally as command line option:
|
||||
|
||||
```hurl
|
||||
GET https://foo.com/a
|
||||
HTTP 200
|
||||
|
||||
GET https://foo.com/b
|
||||
[Options]
|
||||
proxy: localhost:8888
|
||||
HTTP 200
|
||||
|
||||
GET https://foo.com/c
|
||||
HTTP 200
|
||||
```
|
||||
|
||||
## Reports
|
||||
|
||||
|
|
@ -851,7 +1008,6 @@ $ hurl --test --report-json build/report/ *.hurl
|
|||
|
||||
[Doc](https://hurl.dev/docs/running-tests.html#generating-report)
|
||||
|
||||
|
||||
### JUnit Report
|
||||
|
||||
```shell
|
||||
|
|
@ -877,12 +1033,11 @@ A structured output of running Hurl files can be obtained with [`--json` option]
|
|||
$ hurl --json *.hurl
|
||||
```
|
||||
|
||||
|
||||
## Others
|
||||
|
||||
### HTTP Version
|
||||
|
||||
Testing HTTP version (HTTP/1.0, HTTP/1.1, HTTP/2 or HTTP/3):
|
||||
Testing HTTP version (HTTP/1.0, HTTP/1.1, HTTP/2 or HTTP/3) can be done using implicit asserts:
|
||||
|
||||
```hurl
|
||||
GET https://foo.com
|
||||
|
|
@ -894,6 +1049,36 @@ HTTP/2 200
|
|||
|
||||
[Doc](https://hurl.dev/docs/asserting-response.html#version-status)
|
||||
|
||||
Or explicit:
|
||||
|
||||
```hurl
|
||||
GET https://foo.com
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
version == "3"
|
||||
|
||||
GET https://bar.com
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
version == "2"
|
||||
version toFloat > 1.1
|
||||
```
|
||||
|
||||
[Doc](https://hurl.dev/docs/asserting-response.html#version-assert)
|
||||
|
||||
### IP Address
|
||||
|
||||
Testing the IP address of the response, as a string. This string may be IPv6 address:
|
||||
|
||||
```hurl
|
||||
GET https://foo.com
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
ip == "2001:0db8:85a3:0000:0000:8a2e:0370:733"
|
||||
ip startsWith "2001"
|
||||
ip isIpv6
|
||||
```
|
||||
|
||||
### Polling and Retry
|
||||
|
||||
Retry request on any errors (asserts, captures, status code, runtime etc...):
|
||||
|
|
@ -925,7 +1110,7 @@ jsonpath "$.state" == "COMPLETED"
|
|||
Add delay for every request, or a particular request:
|
||||
|
||||
```hurl
|
||||
# Delaying this request by 5 seconds
|
||||
# Delaying this request by 5 seconds (aka sleep)
|
||||
GET https://example.org/turtle
|
||||
[Options]
|
||||
delay: 5s
|
||||
|
|
@ -955,7 +1140,6 @@ GET https://example.org/d
|
|||
|
||||
[Doc](https://hurl.dev/docs/manual.html#skip)
|
||||
|
||||
|
||||
### Testing Endpoint Performance
|
||||
|
||||
```hurl
|
||||
|
|
@ -1003,6 +1187,47 @@ HTTP 302
|
|||
|
||||
[Doc](https://hurl.dev/docs/capturing-response.html#xpath-capture)
|
||||
|
||||
### Redacting Secrets
|
||||
|
||||
Using command-line for known values:
|
||||
|
||||
```shell
|
||||
$ hurl --secret token=1234 file.hurl
|
||||
```
|
||||
|
||||
```hurl
|
||||
POST https://example.org
|
||||
X-Token: {{token}}
|
||||
{
|
||||
"name": "Alice",
|
||||
"value": 100
|
||||
}
|
||||
HTTP 200
|
||||
```
|
||||
|
||||
[Doc](https://hurl.dev/docs/templates.html#secrets)
|
||||
|
||||
Using `redact` for dynamic values:
|
||||
|
||||
```hurl
|
||||
# Get an authorization token:
|
||||
GET https://example.org/token
|
||||
HTTP 200
|
||||
[Captures]
|
||||
token: header "X-Token" redact
|
||||
|
||||
# Send an authorized request:
|
||||
POST https://example.org
|
||||
X-Token: {{token}}
|
||||
{
|
||||
"name": "Alice",
|
||||
"value": 100
|
||||
}
|
||||
HTTP 200
|
||||
```
|
||||
|
||||
[Doc](https://hurl.dev/docs/capturing-response.html#redacting-secrets)
|
||||
|
||||
### Checking Byte Order Mark (BOM) in Response Body
|
||||
|
||||
```hurl
|
||||
|
|
@ -1022,19 +1247,19 @@ Generate signed API requests with [AWS Signature Version 4], as used by several
|
|||
POST https://sts.eu-central-1.amazonaws.com/
|
||||
[Options]
|
||||
aws-sigv4: aws:amz:eu-central-1:sts
|
||||
[FormParams]
|
||||
[Form]
|
||||
Action: GetCallerIdentity
|
||||
Version: 2011-06-15
|
||||
```
|
||||
|
||||
The Access Key is given per [`--user`], either with command line option or within the [`[Options]`][option] section:
|
||||
The Access Key is given per [`--user`], either with command line option or within the [`[Options]`](https://hurl.dev/docs/request.html#options) section:
|
||||
|
||||
```hurl
|
||||
POST https://sts.eu-central-1.amazonaws.com/
|
||||
[Options]
|
||||
aws-sigv4: aws:amz:eu-central-1:sts
|
||||
user: bob=secret
|
||||
[FormParams]
|
||||
[Form]
|
||||
Action: GetCallerIdentity
|
||||
Version: 2011-06-15
|
||||
```
|
||||
|
|
@ -1050,7 +1275,7 @@ to each request of an Hurl file.
|
|||
$ hurl --resolve foo.com:8000:127.0.0.1 foo.hurl
|
||||
```
|
||||
|
||||
Use [`[Options]` section][option] to configure a specific request:
|
||||
Use [`[Options]` section](https://hurl.dev/docs/request.html#options) to configure a specific request:
|
||||
|
||||
```hurl
|
||||
GET http://bar.com
|
||||
|
|
@ -1216,71 +1441,81 @@ HTTP 200
|
|||
|
||||
will follow a redirection only for the second entry.
|
||||
|
||||
| Option | Description |
|
||||
|-------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| <a href="#aws-sigv4" id="aws-sigv4"><code>--aws-sigv4 <PROVIDER1[:PROVIDER2[:REGION[:SERVICE]]]></code></a> | Generate an `Authorization` header with an AWS SigV4 signature.<br><br>Use [`-u, --user`](#user) to specify Access Key Id (username) and Secret Key (password).<br><br>To use temporary session credentials (e.g. for an AWS IAM Role), add the `X-Amz-Security-Token` header containing the session token.<br> |
|
||||
| <a href="#cacert" id="cacert"><code>--cacert <FILE></code></a> | Specifies the certificate file for peer verification. The file may contain multiple CA certificates and must be in PEM format.<br>Normally Hurl is built to use a default file for this, so this option is typically used to alter that default file.<br> |
|
||||
| <a href="#cert" id="cert"><code>-E, --cert <CERTIFICATE[:PASSWORD]></code></a> | Client certificate file and password.<br><br>See also [`--key`](#key).<br> |
|
||||
| <a href="#color" id="color"><code>--color</code></a> | Colorize debug output (the HTTP response output is not colorized).<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#compressed" id="compressed"><code>--compressed</code></a> | Request a compressed response using one of the algorithms br, gzip, deflate and automatically decompress the content.<br> |
|
||||
| <a href="#connect-timeout" id="connect-timeout"><code>--connect-timeout <SECONDS></code></a> | Maximum time in seconds that you allow Hurl's connection to take.<br><br>You can specify time units in the connect timeout expression. Set Hurl to use a connect timeout of 20 seconds with `--connect-timeout 20s` or set it to 35,000 milliseconds with `--connect-timeout 35000ms`. No spaces allowed.<br><br>See also [`-m, --max-time`](#max-time).<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#connect-to" id="connect-to"><code>--connect-to <HOST1:PORT1:HOST2:PORT2></code></a> | For a request to the given HOST1:PORT1 pair, connect to HOST2:PORT2 instead. This option can be used several times in a command line.<br><br>See also [`--resolve`](#resolve).<br> |
|
||||
| <a href="#continue-on-error" id="continue-on-error"><code>--continue-on-error</code></a> | Continue executing requests to the end of the Hurl file even when an assert error occurs.<br>By default, Hurl exits after an assert error in the HTTP response.<br><br>Note that this option does not affect the behavior with multiple input Hurl files.<br><br>All the input files are executed independently. The result of one file does not affect the execution of the other Hurl files.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#cookie" id="cookie"><code>-b, --cookie <FILE></code></a> | Read cookies from FILE (using the Netscape cookie file format).<br><br>Combined with [`-c, --cookie-jar`](#cookie-jar), you can simulate a cookie storage between successive Hurl runs.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#cookie-jar" id="cookie-jar"><code>-c, --cookie-jar <FILE></code></a> | Write cookies to FILE after running the session (only for one session).<br>The file will be written using the Netscape cookie file format.<br><br>Combined with [`-b, --cookie`](#cookie), you can simulate a cookie storage between successive Hurl runs.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#delay" id="delay"><code>--delay <MILLISECONDS></code></a> | Sets delay before each request. The delay is not applied to requests that have been retried because of [`--retry`](#retry). See [`--retry-interval`](#retry-interval) to space retried requests.<br><br>You can specify time units in the delay expression. Set Hurl to use a delay of 2 seconds with `--delay 2s` or set it to 500 milliseconds with `--delay 500ms`. No spaces allowed.<br> |
|
||||
| <a href="#error-format" id="error-format"><code>--error-format <FORMAT></code></a> | Control the format of error message (short by default or long)<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#file-root" id="file-root"><code>--file-root <DIR></code></a> | Set root directory to import files in Hurl. This is used for files in multipart form data, request body and response output.<br>When it is not explicitly defined, files are relative to the Hurl file's directory.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#from-entry" id="from-entry"><code>--from-entry <ENTRY_NUMBER></code></a> | Execute Hurl file from ENTRY_NUMBER (starting at 1).<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#glob" id="glob"><code>--glob <GLOB></code></a> | Specify input files that match the given glob pattern.<br><br>Multiple glob flags may be used. This flag supports common Unix glob patterns like *, ? and [].<br>However, to avoid your shell accidentally expanding glob patterns before Hurl handles them, you must use single quotes or double quotes around each pattern.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#http10" id="http10"><code>-0, --http1.0</code></a> | Tells Hurl to use HTTP version 1.0 instead of using its internally preferred HTTP version.<br> |
|
||||
| <a href="#http11" id="http11"><code>--http1.1</code></a> | Tells Hurl to use HTTP version 1.1.<br> |
|
||||
| <a href="#http2" id="http2"><code>--http2</code></a> | Tells Hurl to use HTTP version 2.<br>For HTTPS, this means Hurl negotiates HTTP/2 in the TLS handshake. Hurl does this by default.<br>For HTTP, this means Hurl attempts to upgrade the request to HTTP/2 using the Upgrade: request header.<br> |
|
||||
| <a href="#http3" id="http3"><code>--http3</code></a> | Tells Hurl to try HTTP/3 to the host in the URL, but fallback to earlier HTTP versions if the HTTP/3 connection establishment fails. HTTP/3 is only available for HTTPS and not for HTTP URLs.<br> |
|
||||
| <a href="#ignore-asserts" id="ignore-asserts"><code>--ignore-asserts</code></a> | Ignore all asserts defined in the Hurl file.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#include" id="include"><code>-i, --include</code></a> | Include the HTTP headers in the output<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#insecure" id="insecure"><code>-k, --insecure</code></a> | This option explicitly allows Hurl to perform "insecure" SSL connections and transfers.<br> |
|
||||
| <a href="#interactive" id="interactive"><code>--interactive</code></a> | Stop between requests.<br><br>This is similar to a break point, You can then continue (Press C) or quit (Press Q).<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#ipv4" id="ipv4"><code>-4, --ipv4</code></a> | This option tells Hurl to use IPv4 addresses only when resolving host names, and not for example try IPv6.<br> |
|
||||
| <a href="#ipv6" id="ipv6"><code>-6, --ipv6</code></a> | This option tells Hurl to use IPv6 addresses only when resolving host names, and not for example try IPv4.<br> |
|
||||
| <a href="#jobs" id="jobs"><code>--jobs <NUM></code></a> | Maximum number of parallel jobs in parallel mode. Default value corresponds (in most cases) to the<br>current amount of CPUs.<br><br>See also [`--parallel`](#parallel).<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#json" id="json"><code>--json</code></a> | Output each Hurl file result to JSON. The format is very closed to HAR format.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#key" id="key"><code>--key <KEY></code></a> | Private key file name.<br> |
|
||||
| <a href="#location" id="location"><code>-L, --location</code></a> | Follow redirect. To limit the amount of redirects to follow use the [`--max-redirs`](#max-redirs) option<br> |
|
||||
| <a href="#location-trusted" id="location-trusted"><code>--location-trusted</code></a> | Like [`-L, --location`](#location), but allows sending the name + password to all hosts that the site may redirect to.<br>This may or may not introduce a security breach if the site redirects you to a site to which you send your authentication info (which is plaintext in the case of HTTP Basic authentication).<br> |
|
||||
| <a href="#max-filesize" id="max-filesize"><code>--max-filesize <BYTES></code></a> | Specify the maximum size (in bytes) of a file to download. If the file requested is larger than this value, the transfer does not start.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#max-redirs" id="max-redirs"><code>--max-redirs <NUM></code></a> | Set maximum number of redirection-followings allowed<br><br>By default, the limit is set to 50 redirections. Set this option to -1 to make it unlimited.<br> |
|
||||
| <a href="#max-time" id="max-time"><code>-m, --max-time <SECONDS></code></a> | Maximum time in seconds that you allow a request/response to take. This is the standard timeout.<br><br>You can specify time units in the maximum time expression. Set Hurl to use a maximum time of 20 seconds with `--max-time 20s` or set it to 35,000 milliseconds with `--max-time 35000ms`. No spaces allowed.<br><br>See also [`--connect-timeout`](#connect-timeout).<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#netrc" id="netrc"><code>-n, --netrc</code></a> | Scan the .netrc file in the user's home directory for the username and password.<br><br>See also [`--netrc-file`](#netrc-file) and [`--netrc-optional`](#netrc-optional).<br> |
|
||||
| <a href="#netrc-file" id="netrc-file"><code>--netrc-file <FILE></code></a> | Like [`--netrc`](#netrc), but provide the path to the netrc file.<br><br>See also [`--netrc-optional`](#netrc-optional).<br> |
|
||||
| <a href="#netrc-optional" id="netrc-optional"><code>--netrc-optional</code></a> | Similar to [`--netrc`](#netrc), but make the .netrc usage optional.<br><br>See also [`--netrc-file`](#netrc-file).<br> |
|
||||
| <a href="#no-color" id="no-color"><code>--no-color</code></a> | Do not colorize output.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#no-output" id="no-output"><code>--no-output</code></a> | Suppress output. By default, Hurl outputs the body of the last response.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#noproxy" id="noproxy"><code>--noproxy <HOST(S)></code></a> | Comma-separated list of hosts which do not use a proxy.<br><br>Override value from Environment variable no_proxy.<br> |
|
||||
| <a href="#output" id="output"><code>-o, --output <FILE></code></a> | Write output to FILE instead of stdout.<br> |
|
||||
| <a href="#parallel" id="parallel"><code>--parallel</code></a> | Run files in parallel.<br><br>Each Hurl file is executed in its own worker thread, without sharing anything with the other workers. The default run mode is sequential. Parallel execution is by default in [`--test`](#test) mode.<br><br>See also [`--jobs`](#jobs).<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#path-as-is" id="path-as-is"><code>--path-as-is</code></a> | Tell Hurl to not handle sequences of /../ or /./ in the given URL path. Normally Hurl will squash or merge them according to standards but with this option set you tell it not to do that.<br> |
|
||||
| <a href="#proxy" id="proxy"><code>-x, --proxy <[PROTOCOL://]HOST[:PORT]></code></a> | Use the specified proxy.<br> |
|
||||
| <a href="#repeat" id="repeat"><code>--repeat <NUM></code></a> | Repeat the input files sequence NUM times, -1 for infinite loop. Given a.hurl, b.hurl, c.hurl as input, repeat two<br>times will run a.hurl, b.hurl, c.hurl, a.hurl, b.hurl, c.hurl.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#report-html" id="report-html"><code>--report-html <DIR></code></a> | Generate HTML report in DIR.<br><br>If the HTML report already exists, it will be updated with the new test results.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#report-json" id="report-json"><code>--report-json <DIR></code></a> | Generate JSON report in DIR.<br><br>If the JSON report already exists, it will be updated with the new test results.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#report-junit" id="report-junit"><code>--report-junit <FILE></code></a> | Generate JUnit File.<br><br>If the FILE report already exists, it will be updated with the new test results.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#report-tap" id="report-tap"><code>--report-tap <FILE></code></a> | Generate TAP report.<br><br>If the FILE report already exists, it will be updated with the new test results.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#resolve" id="resolve"><code>--resolve <HOST:PORT:ADDR></code></a> | Provide a custom address for a specific host and port pair. Using this, you can make the Hurl requests(s) use a specified address and prevent the otherwise normally resolved address to be used. Consider it a sort of /etc/hosts alternative provided on the command line.<br> |
|
||||
| <a href="#retry" id="retry"><code>--retry <NUM></code></a> | Maximum number of retries, 0 for no retries, -1 for unlimited retries. Retry happens if any error occurs (asserts, captures, runtimes etc...).<br> |
|
||||
| <a href="#retry-interval" id="retry-interval"><code>--retry-interval <MILLISECONDS></code></a> | Duration in milliseconds between each retry. Default is 1000 ms.<br><br>You can specify time units in the retry interval expression. Set Hurl to use a retry interval of 2 seconds with `--retry-interval 2s` or set it to 500 milliseconds with `--retry-interval 500ms`. No spaces allowed.<br> |
|
||||
| <a href="#ssl-no-revoke" id="ssl-no-revoke"><code>--ssl-no-revoke</code></a> | (Windows) This option tells Hurl to disable certificate revocation checks. WARNING: this option loosens the SSL security, and by using this flag you ask for exactly that.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#test" id="test"><code>--test</code></a> | Activate test mode: with this, the HTTP response is not outputted anymore, progress is reported for each Hurl file tested, and a text summary is displayed when all files have been run.<br><br>In test mode, files are executed in parallel. To run test in a sequential way use `--job 1`.<br><br>See also [`--jobs`](#jobs).<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#to-entry" id="to-entry"><code>--to-entry <ENTRY_NUMBER></code></a> | Execute Hurl file to ENTRY_NUMBER (starting at 1).<br>Ignore the remaining of the file. It is useful for debugging a session.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#unix-socket" id="unix-socket"><code>--unix-socket <PATH></code></a> | (HTTP) Connect through this Unix domain socket, instead of using the network.<br> |
|
||||
| <a href="#user" id="user"><code>-u, --user <USER:PASSWORD></code></a> | Add basic Authentication header to each request.<br> |
|
||||
| <a href="#user-agent" id="user-agent"><code>-A, --user-agent <NAME></code></a> | Specify the User-Agent string to send to the HTTP server.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#variable" id="variable"><code>--variable <NAME=VALUE></code></a> | Define variable (name/value) to be used in Hurl templates.<br> |
|
||||
| <a href="#variables-file" id="variables-file"><code>--variables-file <FILE></code></a> | Set properties file in which your define your variables.<br><br>Each variable is defined as name=value exactly as with [`--variable`](#variable) option.<br><br>Note that defining a variable twice produces an error.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#verbose" id="verbose"><code>-v, --verbose</code></a> | Turn on verbose output on standard error stream.<br>Useful for debugging.<br><br>A line starting with '>' means data sent by Hurl.<br>A line staring with '<' means data received by Hurl.<br>A line starting with '*' means additional info provided by Hurl.<br><br>If you only want HTTP headers in the output, [`-i, --include`](#include) might be the option you're looking for.<br> |
|
||||
| <a href="#very-verbose" id="very-verbose"><code>--very-verbose</code></a> | Turn on more verbose output on standard error stream.<br><br>In contrast to [`--verbose`](#verbose) option, this option outputs the full HTTP body request and response on standard error. In addition, lines starting with '**' are libcurl debug logs.<br> |
|
||||
| <a href="#help" id="help"><code>-h, --help</code></a> | Usage help. This lists all current command line options with a short description.<br> |
|
||||
| <a href="#version" id="version"><code>-V, --version</code></a> | Prints version information<br> |
|
||||
| Option | Description |
|
||||
|-------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| <a href="#aws-sigv4" id="aws-sigv4"><code>--aws-sigv4 <PROVIDER1[:PROVIDER2[:REGION[:SERVICE]]]></code></a> | Generate an `Authorization` header with an AWS SigV4 signature.<br><br>Use [`-u, --user`](#user) to specify Access Key Id (username) and Secret Key (password).<br><br>To use temporary session credentials (e.g. for an AWS IAM Role), add the `X-Amz-Security-Token` header containing the session token.<br> |
|
||||
| <a href="#cacert" id="cacert"><code>--cacert <FILE></code></a> | Specifies the certificate file for peer verification. The file may contain multiple CA certificates and must be in PEM format.<br>Normally Hurl is built to use a default file for this, so this option is typically used to alter that default file.<br> |
|
||||
| <a href="#cert" id="cert"><code>-E, --cert <CERTIFICATE[:PASSWORD]></code></a> | Client certificate file and password.<br><br>See also [`--key`](#key).<br> |
|
||||
| <a href="#color" id="color"><code>--color</code></a> | Colorize debug output (the HTTP response output is not colorized).<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#compressed" id="compressed"><code>--compressed</code></a> | Request a compressed response using one of the algorithms br, gzip, deflate and automatically decompress the content.<br> |
|
||||
| <a href="#connect-timeout" id="connect-timeout"><code>--connect-timeout <SECONDS></code></a> | Maximum time in seconds that you allow Hurl's connection to take.<br><br>You can specify time units in the connect timeout expression. Set Hurl to use a connect timeout of 20 seconds with `--connect-timeout 20s` or set it to 35,000 milliseconds with `--connect-timeout 35000ms`. No spaces allowed.<br><br>See also [`-m, --max-time`](#max-time).<br> |
|
||||
| <a href="#connect-to" id="connect-to"><code>--connect-to <HOST1:PORT1:HOST2:PORT2></code></a> | For a request to the given HOST1:PORT1 pair, connect to HOST2:PORT2 instead. This option can be used several times in a command line.<br><br>See also [`--resolve`](#resolve).<br> |
|
||||
| <a href="#continue-on-error" id="continue-on-error"><code>--continue-on-error</code></a> | Continue executing requests to the end of the Hurl file even when an assert error occurs.<br>By default, Hurl exits after an assert error in the HTTP response.<br><br>Note that this option does not affect the behavior with multiple input Hurl files.<br><br>All the input files are executed independently. The result of one file does not affect the execution of the other Hurl files.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#cookie" id="cookie"><code>-b, --cookie <FILE></code></a> | Read cookies from FILE (using the Netscape cookie file format).<br><br>Combined with [`-c, --cookie-jar`](#cookie-jar), you can simulate a cookie storage between successive Hurl runs.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#cookie-jar" id="cookie-jar"><code>-c, --cookie-jar <FILE></code></a> | Write cookies to FILE after running the session.<br>The file will be written using the Netscape cookie file format.<br><br>Combined with [`-b, --cookie`](#cookie), you can simulate a cookie storage between successive Hurl runs.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#curl" id="curl"><code>--curl <FILE></code></a> | Export each request to a list of curl commands.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#delay" id="delay"><code>--delay <MILLISECONDS></code></a> | Sets delay before each request (aka sleep). The delay is not applied to requests that have been retried because of [`--retry`](#retry). See [`--retry-interval`](#retry-interval) to space retried requests.<br><br>You can specify time units in the delay expression. Set Hurl to use a delay of 2 seconds with `--delay 2s` or set it to 500 milliseconds with `--delay 500ms`. Supported time units: ms, s, m, h. No spaces allowed.<br> |
|
||||
| <a href="#error-format" id="error-format"><code>--error-format <FORMAT></code></a> | Control the format of error message (short by default or long)<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#file-root" id="file-root"><code>--file-root <DIR></code></a> | Set root directory to import files in Hurl. This is used for files in multipart form data, request body and response output.<br>When it is not explicitly defined, files are relative to the Hurl file's directory.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#from-entry" id="from-entry"><code>--from-entry <ENTRY_NUMBER></code></a> | Execute Hurl file from ENTRY_NUMBER (starting at 1).<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#glob" id="glob"><code>--glob <GLOB></code></a> | Specify input files that match the given glob pattern.<br><br>Multiple glob flags may be used. This flag supports common Unix glob patterns like *, ? and [].<br>However, to avoid your shell accidentally expanding glob patterns before Hurl handles them, you must use single quotes or double quotes around each pattern.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#header" id="header"><code>-H, --header <HEADER></code></a> | Add an extra header to include in information sent. Can be used several times in a command<br><br>Do not add newlines or carriage returns<br> |
|
||||
| <a href="#http10" id="http10"><code>-0, --http1.0</code></a> | Tells Hurl to use HTTP version 1.0 instead of using its internally preferred HTTP version.<br> |
|
||||
| <a href="#http11" id="http11"><code>--http1.1</code></a> | Tells Hurl to use HTTP version 1.1.<br> |
|
||||
| <a href="#http2" id="http2"><code>--http2</code></a> | Tells Hurl to use HTTP version 2.<br>For HTTPS, this means Hurl negotiates HTTP/2 in the TLS handshake. Hurl does this by default.<br>For HTTP, this means Hurl attempts to upgrade the request to HTTP/2 using the Upgrade: request header.<br> |
|
||||
| <a href="#http3" id="http3"><code>--http3</code></a> | Tells Hurl to try HTTP/3 to the host in the URL, but fallback to earlier HTTP versions if the HTTP/3 connection establishment fails. HTTP/3 is only available for HTTPS and not for HTTP URLs.<br> |
|
||||
| <a href="#ignore-asserts" id="ignore-asserts"><code>--ignore-asserts</code></a> | Ignore all asserts defined in the Hurl file.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#include" id="include"><code>-i, --include</code></a> | Include the HTTP headers in the output<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#insecure" id="insecure"><code>-k, --insecure</code></a> | This option explicitly allows Hurl to perform "insecure" SSL connections and transfers.<br> |
|
||||
| <a href="#ipv4" id="ipv4"><code>-4, --ipv4</code></a> | This option tells Hurl to use IPv4 addresses only when resolving host names, and not for example try IPv6.<br> |
|
||||
| <a href="#ipv6" id="ipv6"><code>-6, --ipv6</code></a> | This option tells Hurl to use IPv6 addresses only when resolving host names, and not for example try IPv4.<br> |
|
||||
| <a href="#jobs" id="jobs"><code>--jobs <NUM></code></a> | Maximum number of parallel jobs in parallel mode. Default value corresponds (in most cases) to the<br>current amount of CPUs.<br><br>See also [`--parallel`](#parallel).<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#json" id="json"><code>--json</code></a> | Output each Hurl file result to JSON. The format is very closed to HAR format.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#key" id="key"><code>--key <KEY></code></a> | Private key file name.<br> |
|
||||
| <a href="#limit-rate" id="limit-rate"><code>--limit-rate <SPEED></code></a> | Specify the maximum transfer rate you want Hurl to use, for both downloads and uploads. This feature is useful if you have a limited pipe and you would like your transfer not to use your entire bandwidth. To make it slower than it otherwise would be.<br>The given speed is measured in bytes/second.<br> |
|
||||
| <a href="#location" id="location"><code>-L, --location</code></a> | Follow redirect. To limit the amount of redirects to follow use the [`--max-redirs`](#max-redirs) option<br> |
|
||||
| <a href="#location-trusted" id="location-trusted"><code>--location-trusted</code></a> | Like [`-L, --location`](#location), but allows sending the name + password to all hosts that the site may redirect to.<br>This may or may not introduce a security breach if the site redirects you to a site to which you send your authentication info (which is plaintext in the case of HTTP Basic authentication).<br> |
|
||||
| <a href="#max-filesize" id="max-filesize"><code>--max-filesize <BYTES></code></a> | Specify the maximum size in bytes of a file to download. If the file requested is larger than this value, the transfer does not start.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#max-redirs" id="max-redirs"><code>--max-redirs <NUM></code></a> | Set maximum number of redirection-followings allowed<br><br>By default, the limit is set to 50 redirections. Set this option to -1 to make it unlimited.<br> |
|
||||
| <a href="#max-time" id="max-time"><code>-m, --max-time <SECONDS></code></a> | Maximum time in seconds that you allow a request/response to take. This is the standard timeout.<br><br>You can specify time units in the maximum time expression. Set Hurl to use a maximum time of 20 seconds with `--max-time 20s` or set it to 35,000 milliseconds with `--max-time 35000ms`. No spaces allowed.<br><br>See also [`--connect-timeout`](#connect-timeout).<br> |
|
||||
| <a href="#negotiate" id="negotiate"><code>--negotiate</code></a> | Tell Hurl to use Negotiate (SPNEGO) authentication.<br> |
|
||||
| <a href="#netrc" id="netrc"><code>-n, --netrc</code></a> | Scan the .netrc file in the user's home directory for the username and password.<br><br>See also [`--netrc-file`](#netrc-file) and [`--netrc-optional`](#netrc-optional).<br> |
|
||||
| <a href="#netrc-file" id="netrc-file"><code>--netrc-file <FILE></code></a> | Like [`--netrc`](#netrc), but provide the path to the netrc file.<br><br>See also [`--netrc-optional`](#netrc-optional).<br> |
|
||||
| <a href="#netrc-optional" id="netrc-optional"><code>--netrc-optional</code></a> | Similar to [`--netrc`](#netrc), but make the .netrc usage optional.<br><br>See also [`--netrc-file`](#netrc-file).<br> |
|
||||
| <a href="#no-color" id="no-color"><code>--no-color</code></a> | Do not colorize output.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#no-output" id="no-output"><code>--no-output</code></a> | Suppress output. By default, Hurl outputs the body of the last response.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#no-pretty" id="no-pretty"><code>--no-pretty</code></a> | Do not prettify response output for supported content type (JSON only for the moment). By default, output is prettified if<br>standard output is a terminal.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#noproxy" id="noproxy"><code>--noproxy <HOST(S)></code></a> | Comma-separated list of hosts which do not use a proxy.<br><br>Override value from Environment variable no_proxy.<br> |
|
||||
| <a href="#ntlm" id="ntlm"><code>--ntlm</code></a> | Tell Hurl to use NTLM authentication<br> |
|
||||
| <a href="#output" id="output"><code>-o, --output <FILE></code></a> | Write output to FILE instead of stdout. Use '-' for stdout in [Options] sections.<br> |
|
||||
| <a href="#parallel" id="parallel"><code>--parallel</code></a> | Run files in parallel.<br><br>Each Hurl file is executed in its own worker thread, without sharing anything with the other workers. The default run mode is sequential. Parallel execution is by default in [`--test`](#test) mode.<br><br>See also [`--jobs`](#jobs).<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#path-as-is" id="path-as-is"><code>--path-as-is</code></a> | Tell Hurl to not handle sequences of /../ or /./ in the given URL path. Normally Hurl will squash or merge them according to standards but with this option set you tell it not to do that.<br> |
|
||||
| <a href="#pinnedpubkey" id="pinnedpubkey"><code>--pinnedpubkey <HASHES></code></a> | When negotiating a TLS or SSL connection, the server sends a certificate indicating its identity. A public key is extracted from this certificate and if it does not exactly match the public key provided to this option, Hurl aborts the connection before sending or receiving any data.<br> |
|
||||
| <a href="#pretty" id="pretty"><code>--pretty</code></a> | Prettify response output for supported content type (JSON only for the moment). By default, JSON response is prettified if standard output is a terminal, and colorized, see[`--no-color`](#no-color) to format without color.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#progress-bar" id="progress-bar"><code>--progress-bar</code></a> | Display a progress bar in test mode. The progress bar is displayed only in interactive TTYs. This option forces the progress bar to be displayed even in non-interactive TTYs.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#proxy" id="proxy"><code>-x, --proxy <[PROTOCOL://]HOST[:PORT]></code></a> | Use the specified proxy.<br> |
|
||||
| <a href="#repeat" id="repeat"><code>--repeat <NUM></code></a> | Repeat the input files sequence NUM times, -1 for infinite loop. Given a.hurl, b.hurl, c.hurl as input, repeat two<br>times will run a.hurl, b.hurl, c.hurl, a.hurl, b.hurl, c.hurl.<br> |
|
||||
| <a href="#report-html" id="report-html"><code>--report-html <DIR></code></a> | Generate HTML report in DIR.<br><br>If the HTML report already exists, it will be updated with the new test results.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#report-json" id="report-json"><code>--report-json <DIR></code></a> | Generate JSON report in DIR.<br><br>If the JSON report already exists, it will be updated with the new test results.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#report-junit" id="report-junit"><code>--report-junit <FILE></code></a> | Generate JUnit File.<br><br>If the FILE report already exists, it will be updated with the new test results.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#report-tap" id="report-tap"><code>--report-tap <FILE></code></a> | Generate TAP report.<br><br>If the FILE report already exists, it will be updated with the new test results.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#resolve" id="resolve"><code>--resolve <HOST:PORT:ADDR></code></a> | Provide a custom address for a specific host and port pair. Using this, you can make the Hurl requests(s) use a specified address and prevent the otherwise normally resolved address to be used. Consider it a sort of /etc/hosts alternative provided on the command line.<br> |
|
||||
| <a href="#retry" id="retry"><code>--retry <NUM></code></a> | Maximum number of retries, 0 for no retries, -1 for unlimited retries. Retry happens if any error occurs (asserts, captures, runtimes etc...).<br> |
|
||||
| <a href="#retry-interval" id="retry-interval"><code>--retry-interval <MILLISECONDS></code></a> | Duration in milliseconds between each retry. Default is 1000 ms.<br><br>You can specify time units in the retry interval expression. Set Hurl to use a retry interval of 2 seconds with `--retry-interval 2s` or set it to 500 milliseconds with `--retry-interval 500ms`. No spaces allowed.<br> |
|
||||
| <a href="#secret" id="secret"><code>--secret <NAME=VALUE></code></a> | Define secret value to be redacted from logs and report. When defined, secrets can be used as variable everywhere variables are used.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#secrets-file" id="secrets-file"><code>--secrets-file <FILE></code></a> | Define a secrets file in which you define your secrets<br><br>Each secret is defined as name=value exactly as with [`--secret`](#secret) option.<br><br>Note that defining a secret twice produces an error.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#ssl-no-revoke" id="ssl-no-revoke"><code>--ssl-no-revoke</code></a> | (Windows) This option tells Hurl to disable certificate revocation checks. WARNING: this option loosens the SSL security, and by using this flag you ask for exactly that.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#test" id="test"><code>--test</code></a> | Activate test mode: with this, the HTTP response is not outputted anymore, progress is reported for each Hurl file tested, and a text summary is displayed when all files have been run.<br><br>In test mode, files are executed in parallel. To run test in a sequential way use `--job 1`.<br><br>See also [`--jobs`](#jobs).<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#to-entry" id="to-entry"><code>--to-entry <ENTRY_NUMBER></code></a> | Execute Hurl file to ENTRY_NUMBER (starting at 1).<br>Ignore the remaining of the file. It is useful for debugging a session.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#unix-socket" id="unix-socket"><code>--unix-socket <PATH></code></a> | (HTTP) Connect through this Unix domain socket, instead of using the network.<br> |
|
||||
| <a href="#user" id="user"><code>-u, --user <USER:PASSWORD></code></a> | Add basic Authentication header to each request.<br> |
|
||||
| <a href="#user-agent" id="user-agent"><code>-A, --user-agent <NAME></code></a> | Specify the User-Agent string to send to the HTTP server.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#variable" id="variable"><code>--variable <NAME=VALUE></code></a> | Define variable (name/value) to be used in Hurl templates.<br> |
|
||||
| <a href="#variables-file" id="variables-file"><code>--variables-file <FILE></code></a> | Set properties file in which your define your variables.<br><br>Each variable is defined as name=value exactly as with [`--variable`](#variable) option.<br><br>Note that defining a variable twice produces an error.<br><br>This is a cli-only option.<br> |
|
||||
| <a href="#verbose" id="verbose"><code>-v, --verbose</code></a> | Turn on verbose output on standard error stream.<br>Useful for debugging.<br><br>A line starting with '>' means data sent by Hurl.<br>A line staring with '<' means data received by Hurl.<br>A line starting with '*' means additional info provided by Hurl.<br><br>If you only want HTTP headers in the output, [`-i, --include`](#include) might be the option you're looking for.<br> |
|
||||
| <a href="#very-verbose" id="very-verbose"><code>--very-verbose</code></a> | Turn on more verbose output on standard error stream.<br><br>In contrast to [`--verbose`](#verbose) option, this option outputs the full HTTP body request and response on standard error. In addition, lines starting with '**' are libcurl debug logs.<br> |
|
||||
| <a href="#help" id="help"><code>-h, --help</code></a> | Usage help. This lists all current command line options with a short description.<br> |
|
||||
| <a href="#version" id="version"><code>-V, --version</code></a> | Prints version information<br> |
|
||||
|
||||
## Environment
|
||||
|
||||
|
|
@ -1288,14 +1523,15 @@ Environment variables can only be specified in lowercase.
|
|||
|
||||
Using an environment variable to set the proxy has the same effect as using the [`-x, --proxy`](#proxy) option.
|
||||
|
||||
| Variable | Description |
|
||||
|--------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `http_proxy [PROTOCOL://]<HOST>[:PORT]` | Sets the proxy server to use for HTTP.<br> |
|
||||
| `https_proxy [PROTOCOL://]<HOST>[:PORT]` | Sets the proxy server to use for HTTPS.<br> |
|
||||
| `all_proxy [PROTOCOL://]<HOST>[:PORT]` | Sets the proxy server to use if no protocol-specific proxy is set.<br> |
|
||||
| `no_proxy <comma-separated list of hosts>` | List of host names that shouldn't go through any proxy.<br> |
|
||||
| `HURL_name value` | Define variable (name/value) to be used in Hurl templates. This is similar than [`--variable`](#variable) and [`--variables-file`](#variables-file) options.<br> |
|
||||
| `NO_COLOR` | When set to a non-empty string, do not colorize output (see [`--no-color`](#no-color) option).<br> |
|
||||
| Variable | Description |
|
||||
|--------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `http_proxy [PROTOCOL://]<HOST>[:PORT]` | Sets the proxy server to use for HTTP.<br> |
|
||||
| `https_proxy [PROTOCOL://]<HOST>[:PORT]` | Sets the proxy server to use for HTTPS.<br> |
|
||||
| `all_proxy [PROTOCOL://]<HOST>[:PORT]` | Sets the proxy server to use if no protocol-specific proxy is set.<br> |
|
||||
| `no_proxy <comma-separated list of hosts>` | List of host names that shouldn't go through any proxy.<br> |
|
||||
| `HURL_VARIABLE_name value` | Define variable (name/value) to be used in Hurl templates. This is similar to [`--variable`](#variable) and [`--variables-file`](#variables-file) options.<br> |
|
||||
| `HURL_SECRET_name value` | Define secret (name/value) to be used in Hurl templates. This is similar to [`--secret`](#secret) and [`--secrets-file`](#secrets-file) options.<br> |
|
||||
| `NO_COLOR` | When set to a non-empty string, do not colorize output (see [`--no-color`](#no-color) option).<br> |
|
||||
|
||||
## Exit Codes
|
||||
|
||||
|
|
@ -1322,25 +1558,33 @@ curl(1) hurlfmt(1)
|
|||
|
||||
### Linux
|
||||
|
||||
Precompiled binary is available at [Hurl latest GitHub release]:
|
||||
Precompiled binary (depending on libc >=2.35) is available at [Hurl latest GitHub release]:
|
||||
|
||||
```shell
|
||||
$ INSTALL_DIR=/tmp
|
||||
$ VERSION=5.0.0
|
||||
$ VERSION=7.1.0
|
||||
$ curl --silent --location https://github.com/Orange-OpenSource/hurl/releases/download/$VERSION/hurl-$VERSION-x86_64-unknown-linux-gnu.tar.gz | tar xvz -C $INSTALL_DIR
|
||||
$ export PATH=$INSTALL_DIR/hurl-$VERSION-x86_64-unknown-linux-gnu/bin:$PATH
|
||||
```
|
||||
|
||||
#### Debian / Ubuntu
|
||||
|
||||
For Debian / Ubuntu, Hurl can be installed using a binary .deb file provided in each Hurl release.
|
||||
For Debian >=12 / Ubuntu 22.04 and 24.04, Hurl can be installed using a binary .deb file provided in each Hurl release.
|
||||
|
||||
```shell
|
||||
$ VERSION=5.0.0
|
||||
$ VERSION=7.1.0
|
||||
$ curl --location --remote-name https://github.com/Orange-OpenSource/hurl/releases/download/$VERSION/hurl_${VERSION}_amd64.deb
|
||||
$ sudo apt update && sudo apt install ./hurl_${VERSION}_amd64.deb
|
||||
```
|
||||
|
||||
For Ubuntu >=22.04, Hurl can be installed from `ppa:lepapareil/hurl`
|
||||
|
||||
```shell
|
||||
$ VERSION=7.1.0
|
||||
$ sudo apt-add-repository -y ppa:lepapareil/hurl
|
||||
$ sudo apt install hurl="${VERSION}"*
|
||||
```
|
||||
|
||||
#### Alpine
|
||||
|
||||
Hurl is available on `testing` channel.
|
||||
|
|
@ -1418,7 +1662,7 @@ $ winget install hurl
|
|||
If you're a Rust programmer, Hurl can be installed with cargo.
|
||||
|
||||
```shell
|
||||
$ cargo install hurl
|
||||
$ cargo install --locked hurl
|
||||
```
|
||||
|
||||
### conda-forge
|
||||
|
|
@ -1452,31 +1696,31 @@ Hurl depends on libssl, libcurl and libxml2 native libraries. You will need thei
|
|||
#### Debian based distributions
|
||||
|
||||
```shell
|
||||
$ apt install -y build-essential pkg-config libssl-dev libcurl4-openssl-dev libxml2-dev
|
||||
$ apt install -y build-essential pkg-config libssl-dev libcurl4-openssl-dev libxml2-dev libclang-dev
|
||||
```
|
||||
|
||||
#### Fedora based distributions
|
||||
|
||||
```shell
|
||||
$ dnf install -y pkgconf-pkg-config gcc openssl-devel libxml2-devel
|
||||
$ dnf install -y pkgconf-pkg-config gcc openssl-devel libxml2-devel clang-devel
|
||||
```
|
||||
|
||||
#### Red Hat based distributions
|
||||
|
||||
```shell
|
||||
$ yum install -y pkg-config gcc openssl-devel libxml2-devel
|
||||
$ yum install -y pkg-config gcc openssl-devel libxml2-devel clang-devel
|
||||
```
|
||||
|
||||
#### Arch based distributions
|
||||
|
||||
```shell
|
||||
$ pacman -S --noconfirm pkgconf gcc glibc openssl libxml2
|
||||
$ pacman -S --noconfirm pkgconf gcc glibc openssl libxml2 clang
|
||||
```
|
||||
|
||||
#### Alpine based distributions
|
||||
|
||||
```shell
|
||||
$ apk add curl-dev gcc libxml2-dev musl-dev openssl-dev
|
||||
$ apk add curl-dev gcc libxml2-dev musl-dev openssl-dev clang-dev
|
||||
```
|
||||
|
||||
### Build on macOS
|
||||
|
|
@ -1521,6 +1765,9 @@ Please follow the [contrib on Windows section].
|
|||
[GitHub]: https://github.com/Orange-OpenSource/hurl
|
||||
[libcurl]: https://curl.se/libcurl/
|
||||
[star Hurl on GitHub]: https://github.com/Orange-OpenSource/hurl/stargazers
|
||||
[HTML]: /docs/standalone/hurl-7.0.0.html
|
||||
[PDF]: /docs/standalone/hurl-7.0.0.pdf
|
||||
[Markdown]: https://hurl.dev/docs/standalone/hurl-7.0.0.html
|
||||
[JSON body]: https://hurl.dev/docs/request.html#json-body
|
||||
[XML body]: https://hurl.dev/docs/request.html#xml-body
|
||||
[XML multiline string body]: https://hurl.dev/docs/request.html#multiline-string-body
|
||||
|
|
@ -1539,10 +1786,12 @@ Please follow the [contrib on Windows section].
|
|||
[Hurl templates]: https://hurl.dev/docs/templates.html
|
||||
[AWS Signature Version 4]: https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html
|
||||
[Captures]: https://hurl.dev/docs/capturing-response.html
|
||||
[option]: https://hurl.dev/docs/request.html#options
|
||||
[`--json` option]: https://hurl.dev/docs/manual.html#json
|
||||
[`--resolve`]: https://hurl.dev/docs/manual.html#resolve
|
||||
[`--connect-to`]: https://hurl.dev/docs/manual.html#connect-to
|
||||
[Functions]: https://hurl.dev/docs/templates.html#functions
|
||||
[`--location`]: https://hurl.dev/docs/manual.html#location
|
||||
[`--location-trusted`]: https://hurl.dev/docs/manual.html#location-trusted
|
||||
[GitHub]: https://github.com/Orange-OpenSource/hurl
|
||||
[Hurl latest GitHub release]: https://github.com/Orange-OpenSource/hurl/releases/latest
|
||||
[Visual C++ Redistributable Package]: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-microsoft-visual-c-redistributable-version
|
||||
|
|
|
|||
48
RELEASING.md
48
RELEASING.md
|
|
@ -14,20 +14,20 @@ We always have to start with current version x.y.0-snapshot (in all Cargo.toml).
|
|||
Used to publish a new release from master branch (normal process).
|
||||
|
||||
- Run `release.yml` workflow on `master` branch
|
||||
- Fill `Desired delivery version` input with the `x.y.z` version you want to publish, it will:
|
||||
- Clean pending release
|
||||
- Create new `release/x.y.0` branch
|
||||
- Checkout this new branch
|
||||
- Update all toml, crates, man and docs with `x.y.0`
|
||||
- Generate CHANGELOG
|
||||
- Commit all updates
|
||||
- Create the `x.y.0` tag
|
||||
- Create draft GitHub release `x.y.0`
|
||||
- Create PR from `release/x.y.0` to `master`
|
||||
- Publish the draft release
|
||||
- Fill `Desired delivery version` input with the `x.y.z` version you want to publish, it will:
|
||||
- Clean pending release
|
||||
- Create new `release/x.y.0` branch
|
||||
- Checkout this new branch
|
||||
- Update all toml, crates, man and docs with `x.y.0`
|
||||
- Generate CHANGELOG
|
||||
- Commit all updates
|
||||
- Create the `x.y.0` tag
|
||||
- Create draft GitHub release `x.y.0`
|
||||
- Create PR from `release/x.y.0` to `master`
|
||||
- Publish the draft release
|
||||
- Test release on external test project
|
||||
- Change the release status from draft to public on github
|
||||
- Accept the PR from `release/x.y.0` to `master` with `/accept`
|
||||
- Run `extra-package.yml` workflow on `master` branch filling in the `desired tag version` and selecting wanted extra packages
|
||||
- Run `update-branch-version.yml` workflow on `master` branch, filling in the `desired SNAPSHOT version`, it will:
|
||||
- Create `bot/update-branch-version-master` branch
|
||||
- Checkout this new branch
|
||||
|
|
@ -35,23 +35,25 @@ Used to publish a new release from master branch (normal process).
|
|||
- Commit all updates
|
||||
- Create PR from `bot/update-branch-version-master` to `master`
|
||||
- Accept the PR from `bot/update-branch-version-master` to `master` with `/accept`
|
||||
- Create/Build/Push all others manual packages like chocolatey, winget, brew, node, docker etc...
|
||||
|
||||
## Hotfix steps
|
||||
|
||||
Used when you want to deliver a fix from a published release (tag).
|
||||
|
||||
- Create a new branch `release/x.y.z` from desired tag `x.y.z` by increasing the patch version, for example `release/4.0.1` from tag `4.0.0`
|
||||
- Create a new branch `release/x.y.z` from desired tag `x.y.z` manually by increasing the patch version, for example `release/6.1.1` from tag `6.1.0`
|
||||
- Create your fix branch, work on it then merge it to the new fresh `release/x.y.z`
|
||||
- Run `release.yml` workflow on existing `release/x.y.z` branch
|
||||
- Fill `Desired delivery version` input your `x.y.z` version, it will:
|
||||
- Clean pending release
|
||||
- Checkout this new branch
|
||||
- Update all toml, crates, man and docs with `x.y.z`
|
||||
- Generate CHANGELOG
|
||||
- Commit all updates
|
||||
- Create the `x.y.z` tag
|
||||
- Create draft GitHub release `x.y.z`
|
||||
- Create PR from `release/x.y.z` to `master`
|
||||
- Publish the draft release
|
||||
- Fill `Desired delivery version` input your `x.y.z` version, it will:
|
||||
- Clean pending release
|
||||
- Checkout this new branch
|
||||
- Update all toml, crates, man and docs with `x.y.z`
|
||||
- Generate CHANGELOG
|
||||
- Commit all updates
|
||||
- Create the `x.y.z` tag
|
||||
- Create draft GitHub release `x.y.z`
|
||||
- Create PR from `release/x.y.z` to `master`
|
||||
- Publish the draft release
|
||||
- Change the release status from draft to public on github
|
||||
- Close the PR from `release/x.y.z` to `master` and manage it manually rebasing commits to reorder history and keep it linear
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
Set-StrictMode -Version latest
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
write-host -foregroundcolor Cyan "----- activate python venv -----"
|
||||
|
||||
$global:OriginalPath = $env:PATH
|
||||
python -m venv "$env:TMP\venv"
|
||||
. $env:TMP\venv\Scripts\activate.ps1
|
||||
$env:PATH = "$env:PATH" + ";" + "$global:OriginalPath"
|
||||
python -m pip install --upgrade pip --quiet
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
# shellcheck source=/dev/null
|
||||
set -Eeuo pipefail
|
||||
|
||||
echo "----- install python3 venv -----"
|
||||
echo "----- activate python3 venv -----"
|
||||
python3 -m venv /tmp/hurl-python3-venv
|
||||
source /tmp/hurl-python3-venv/bin/activate
|
||||
python3 -m pip install --upgrade pip --quiet
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
|
||||
color_red=$(echo -e "\033[1;31m")
|
||||
color_green=$(echo -ne "\033[1;32m")
|
||||
color_reset=$(echo -e "\033[0m")
|
||||
|
|
@ -9,11 +10,11 @@ errors_count=0
|
|||
# Check *.rs Orange Copyright
|
||||
echo "------------------------------------------------------------------------------------------"
|
||||
while read -r rust_file ; do
|
||||
if [ "$(grep -c "Copyright (C) 2024 Orange" "$rust_file" || true)" -eq 0 ] ; then
|
||||
echo "Missing [Copyright (C) 2024 Orange] in ${color_red}${rust_file}${color_reset}"
|
||||
if [ "$(grep -c "Copyright (C) 2025 Orange" "$rust_file" || true)" -eq 0 ] ; then
|
||||
echo "Missing [Copyright (C) 2025 Orange] in ${color_red}${rust_file}${color_reset}"
|
||||
errors_count=$((errors_count+1))
|
||||
else
|
||||
echo "[Copyright (C) 2024 Orange] is present in ${color_green}${rust_file}${color_reset}"
|
||||
echo "[Copyright (C) 2025 Orange] is present in ${color_green}${rust_file}${color_reset}"
|
||||
fi
|
||||
done < <(find packages -type f -name "*.rs")
|
||||
|
||||
|
|
@ -42,15 +43,16 @@ done < <(find . -type f -name "*.sh")
|
|||
# Check bash function names in kebab case instead of camel case
|
||||
echo "------------------------------------------------------------------------------------------"
|
||||
while read -r script ; do
|
||||
kebab_case_function_list=$( (grep -Ev "^#" "${script}" || true) | (grep -E "^function" "${script}" || true) | (grep '-' || true) )
|
||||
kebab_case_function_list=$( (grep -Ev "^#" "${script}" || true) | (grep -E "^function" "${script}" || true) | cut --delimiter '{' --field 1 | cut --delimiter '(' --field 1 | tr -s ' ' | cut --delimiter ' ' --field 2)
|
||||
if [ -n "${kebab_case_function_list}" ] ; then
|
||||
echo "Kebab case is not allowed for function naming, use snake case instead in ${color_red}${script}${color_reset}"
|
||||
while read -r function ; do
|
||||
clean_function=$(echo "${function}" | tr -s ' ' | cut --delimiter ' ' --field 2 | cut --delimiter '(' --field 1)
|
||||
echo "${color_red}${clean_function}${color_reset} have to be: $(echo "${clean_function}" | tr '-' '_')"
|
||||
if [[ "${function}" =~ "-" ]] ; then
|
||||
echo "${color_red}${script}: function ${function}${color_reset} have to be: $(echo "${function}" | tr '-' '_')"
|
||||
errors_count=$((errors_count+1))
|
||||
else
|
||||
echo "${script}: function ${function} ${color_green}well formated${color_reset}"
|
||||
fi
|
||||
done < <(echo "${kebab_case_function_list}")
|
||||
echo
|
||||
errors_count=$((errors_count+1))
|
||||
fi
|
||||
done < <(find . -type f -name "*.sh")
|
||||
|
||||
|
|
@ -71,6 +73,55 @@ while read -r script ; do
|
|||
fi
|
||||
done < <(find . -type f -name "*.ps1" | grep -v "./completions/")
|
||||
|
||||
# Check hurl command diffs between sh and ps1 tests files
|
||||
echo "------------------------------------------------------------------------------------------"
|
||||
tmp_sh="/tmp/sh"
|
||||
tmp_ps1="/tmp/ps1"
|
||||
tmp_diff="/tmp/diff"
|
||||
touch "${tmp_sh}" "${tmp_ps1}" "${tmp_diff}"
|
||||
command -v icdiff >/dev/null 2>&1 || sudo apt-get install -qq -y icdiff > /dev/null 2>&1
|
||||
if tput cols >/dev/null 2>&1 ; then
|
||||
nb_cols="$(tput cols)"
|
||||
else
|
||||
nb_cols=220
|
||||
fi
|
||||
function filter_hurl_and_hurlfmt { grep -E "hurl | hurl|hurlfmt | hurlfmt" "$1" || true ;}
|
||||
function clean_indent { sed "s/^ *hurl/hurl/g" ;}
|
||||
function uncomment { sed "s/^#//g" ;}
|
||||
function clean_sh_var_redirect { sed "s/.*=.*(hurl/hurl/g" | sed "s/)$//g" ;}
|
||||
function clean_completion_function { grep -v _hurl || true ;}
|
||||
function clean_non_exec_redirected_command { grep -Ev "=\(.*hurl" || true ;}
|
||||
function clean_ps1_var_redirect { sed "s/.*=hurl/hurl/g" ;}
|
||||
function clean_c_drive { sed "s/C://g" ;}
|
||||
function conv_ps1_antislash_to_sh { sed "s#\`\$#\\\#g" | sed "s#\`\\\#\\\\\\\#g" ;}
|
||||
function conv_ps1_null_to_sh { sed "s#\$null#/dev/null#g" | sed "s#--output NUL#--output /dev/null#g" ;}
|
||||
while read -r script_sh ; do
|
||||
script_ps1="${script_sh%.sh}.ps1"
|
||||
if [[ -f "${script_ps1}" ]] ; then
|
||||
filter_hurl_and_hurlfmt "${script_sh}" | clean_completion_function | clean_non_exec_redirected_command | clean_sh_var_redirect | clean_indent | uncomment > "${tmp_sh}"
|
||||
filter_hurl_and_hurlfmt "${script_ps1}" | clean_ps1_var_redirect | clean_c_drive | conv_ps1_antislash_to_sh | conv_ps1_null_to_sh | clean_indent | uncomment > "${tmp_ps1}"
|
||||
if ! cmp -s "${tmp_sh}" "${tmp_ps1}" >/dev/null 2>&1 ; then
|
||||
icdiff \
|
||||
--show-all-spaces \
|
||||
--highlight \
|
||||
--strip-trailing-cr \
|
||||
--cols="${nb_cols}" \
|
||||
--label="${script_sh}" \
|
||||
--label="${script_ps1}" \
|
||||
"${tmp_sh}" "${tmp_ps1}" | tee -a "${tmp_diff}"
|
||||
echo
|
||||
errors_count=$((errors_count+1))
|
||||
else
|
||||
echo "${script_sh} has the same hurl commands as ${color_green}${script_ps1}${color_reset}"
|
||||
fi
|
||||
else
|
||||
echo "${color_red}${script_sh}${color_reset} does not have his ${color_red}${script_ps1}${color_reset} clone."
|
||||
echo
|
||||
errors_count=$((errors_count+1))
|
||||
fi
|
||||
done < <(find ./integration/hurl*/*/ -maxdepth 2 -type f -name "*sh" | grep --invert-match "utils" | sort)
|
||||
unset -f filter_hurl_and_hurlfmt clean_indent uncomment clean_sh_var_redirect clean_ps1_var_redirect clean_c_drive conv_ps1_antislash_to_sh conv_ps1_null_to_sh
|
||||
|
||||
# Control errors count
|
||||
if [ "${errors_count}" -gt 0 ] ; then
|
||||
exit 1
|
||||
|
|
|
|||
|
|
@ -9,9 +9,16 @@ if [[ -z "$version" ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
date=$(echo "$first_line" | cut -d"(" -f2 | cut -d')' -f1)
|
||||
if [[ ! "$date" =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]]; then
|
||||
echo "Date must set to format yyyy-mm-dd in the first line <$first_line> of the CHANGELOG"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "version=$version"
|
||||
echo "date=$date"
|
||||
changelog=$(bin/release/changelog_extract.py "$version" | grep '^\* ')
|
||||
issues=$(bin/release/get_release_note.py "$version" | grep '^\* ')
|
||||
issues=$(bin/release/get_release_note.py --token "$GITHUB_TOKEN" "$version" | grep '^\* ')
|
||||
|
||||
if [ "$changelog" != "$issues" ]; then
|
||||
echo "Diff in issues in CHANGELOG"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
cargo clippy
|
||||
|
||||
cargo clippy --all-targets
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
for hurl_file in integration/hurl/{tests_failed,tests_ok}/*.hurl; do
|
||||
for hurl_file in integration/hurl/{tests_failed,tests_ok/**}/*.hurl; do
|
||||
echo "hurlfmt $hurl_file"
|
||||
output_file=/tmp/$(basename "$hurl_file")
|
||||
hurlfmt "$hurl_file" >"$output_file"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
bin/install_rust.sh
|
||||
python3 -m pip install --requirement bin/requirements-frozen.txt
|
||||
sudo apt-get update && sudo apt-get install -y libxml2-utils
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libxml2-utils
|
||||
bin/install_rust.sh
|
||||
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ This script checks that there is no dependencies with unauthorized license (GPL
|
|||
Examples:
|
||||
$ python3 bin/check/license.py
|
||||
"""
|
||||
from typing import List, Tuple
|
||||
|
||||
import json
|
||||
import subprocess
|
||||
from typing import List, Tuple
|
||||
|
||||
|
||||
def main():
|
||||
|
|
@ -17,8 +17,8 @@ def main():
|
|||
check_licenses(deps)
|
||||
|
||||
|
||||
def is_authorized(license: str) -> bool:
|
||||
for l in [
|
||||
def is_authorized(name: str) -> bool:
|
||||
for licence in [
|
||||
"MIT",
|
||||
"Apache-2.0",
|
||||
"Zlib",
|
||||
|
|
@ -27,15 +27,16 @@ def is_authorized(license: str) -> bool:
|
|||
"BSD-2-Clause",
|
||||
"BSD-3-Clause",
|
||||
"Unicode-3.0",
|
||||
"ISC",
|
||||
]:
|
||||
if l in license:
|
||||
if licence in name:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
def is_forbidden(license: str) -> bool:
|
||||
for l in ["GPL"]:
|
||||
if l in license:
|
||||
def is_forbidden(name: str) -> bool:
|
||||
for licence in ["GPL"]:
|
||||
if licence in name:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
ruff --version
|
||||
ruff format --check
|
||||
ruff check
|
||||
|
||||
|
|
@ -1,13 +1,25 @@
|
|||
#!/usr/bin/env python3
|
||||
import argparse
|
||||
import datetime
|
||||
import json
|
||||
import os
|
||||
import requests
|
||||
import sys
|
||||
|
||||
import requests
|
||||
|
||||
|
||||
def get_latest_release(token: str | None) -> None | tuple[str, datetime]:
|
||||
"""Returns the latest Rust release available."""
|
||||
url = "https://api.github.com/repos/rust-lang/rust/releases"
|
||||
headers = {}
|
||||
if token:
|
||||
headers["Authorization"] = f"Bearer {token}"
|
||||
r = requests.get(url, headers=headers)
|
||||
if r.status_code != 200:
|
||||
sys.stderr.write(f"Error GET {url} {r.status_code}\n")
|
||||
sys.stderr.write(f"{r.text}\n")
|
||||
return None
|
||||
|
||||
def get_latest_release():
|
||||
r = requests.get("https://api.github.com/repos/rust-lang/rust/releases")
|
||||
releases = json.loads(r.text)
|
||||
latest_release = releases[0]
|
||||
version = latest_release["tag_name"]
|
||||
|
|
@ -16,26 +28,43 @@ def get_latest_release():
|
|||
return version, date
|
||||
|
||||
|
||||
def get_current_version():
|
||||
def get_current_version() -> str:
|
||||
"""Returns the current Rust version used by the project."""
|
||||
return os.popen("cargo --version").read().split(" ")[1]
|
||||
|
||||
|
||||
def main():
|
||||
if len(sys.argv) < 2:
|
||||
print("Usage: rust_version.py NUM_DAYS_BEFORE_ERROR")
|
||||
sys.exit(1)
|
||||
num_days_before_error = int(sys.argv[1])
|
||||
parser = argparse.ArgumentParser(
|
||||
description="Check if Hurl uses the latest Rust version"
|
||||
)
|
||||
parser.add_argument(
|
||||
"num_days_before_error",
|
||||
type=int,
|
||||
metavar="NUM_DAYS_BEFORE_ERROR",
|
||||
help="Interval in days before raising an error if Hurl is not using latest Rust",
|
||||
)
|
||||
parser.add_argument("--token", help="GitHub authentication token")
|
||||
args = parser.parse_args()
|
||||
|
||||
latest_version, date = get_latest_release()
|
||||
num_days_before_error = args.num_days_before_error
|
||||
token = args.token
|
||||
|
||||
ret = get_latest_release(token=token)
|
||||
if not ret:
|
||||
sys.exit(2)
|
||||
|
||||
latest_version, date = ret
|
||||
current_version = get_current_version()
|
||||
if current_version < latest_version:
|
||||
sys.stderr.write(
|
||||
"Rust version must be updated from %s to the latest version %s\n"
|
||||
% (current_version, latest_version)
|
||||
f"Rust version must be updated from {current_version} to the latest version {latest_version}\n"
|
||||
)
|
||||
days_before_now = datetime.datetime.now() - date
|
||||
if days_before_now > datetime.timedelta(days=num_days_before_error):
|
||||
sys.exit(1)
|
||||
else:
|
||||
sys.stderr.write(f"Latest Rust version: {latest_version}\n")
|
||||
sys.stderr.write(f"Hurl Rust version: {current_version}\n")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
valgrind --version
|
||||
cargo-valgrind --help
|
||||
|
||||
cat <<END | cargo valgrind run -p hurl -- --test
|
||||
GET https://unpkg.com/vue@3.4.27/dist/vue.global.prod.js
|
||||
HTTP 200
|
||||
END
|
||||
|
|
@ -0,0 +1,127 @@
|
|||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
# functions
|
||||
function init_terminal_colors(){
|
||||
color_red=$(echo -ne "\033[1;31m")
|
||||
color_green=$(echo -ne "\033[1;32m")
|
||||
color_yellow=$(echo -ne "\033[1;33m")
|
||||
color_reset=$(echo -ne "\033[0m")
|
||||
}
|
||||
|
||||
function usage(){
|
||||
echo
|
||||
echo "Usage: $(basename "$0") [Options]... file1 file2..."
|
||||
echo
|
||||
echo "Options: #mandatory #optional"
|
||||
echo
|
||||
echo " --help #optional"
|
||||
echo " This help text"
|
||||
echo
|
||||
echo " --github-token <github token access> #mandatory"
|
||||
echo " specify github user token"
|
||||
echo " : example: --github-token ghp_kJvDuaalZidk3nB1uYtgsqMrkQ5Hkh76jh2o"
|
||||
}
|
||||
|
||||
function consume_args(){
|
||||
github_token=
|
||||
files_count=0
|
||||
while [[ $# -gt 0 ]] ; do
|
||||
case "$1" in
|
||||
--help)
|
||||
usage
|
||||
exit 0
|
||||
;;
|
||||
--github-token)
|
||||
if [[ -n ${2:-} ]] ; then
|
||||
github_token="$2"
|
||||
shift
|
||||
shift
|
||||
else
|
||||
echo "${color_red}Error${color_reset} - Option $1 can not be null."
|
||||
usage >&2
|
||||
return 1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
if [[ -f ${1} ]] ; then
|
||||
files+=("$1")
|
||||
files_count=$((files_count+1))
|
||||
shift
|
||||
else
|
||||
echo "${color_red}Error${color_reset} - $1 is not a file or is not readable"
|
||||
usage >&2
|
||||
return 1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
if [[ -z "${github_token}" ]] ; then
|
||||
echo "${color_red}Error${color_reset} - Option --github_token is mandatory."
|
||||
usage >&2
|
||||
return 1
|
||||
fi
|
||||
if [[ $files_count == 0 ]] ; then
|
||||
echo "${color_red}Error${color_reset} - You must provide at least one file for analysis."
|
||||
usage >&2
|
||||
return 1
|
||||
fi
|
||||
if ! (command -v zizmor >/dev/null 2>&1) ; then
|
||||
echo "${color_red}Error${color_reset} - Zizmor has to be installed on your system (https://woodruffw.github.io/zizmor/installation)."
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
function set_zizmor_conf(){
|
||||
cat <<- "EOF" > "$1"
|
||||
rules:
|
||||
excessive-permissions:
|
||||
ignore:
|
||||
- accept-pull-request.yml
|
||||
- auto-close-inactive-pr.yml
|
||||
- coverage.yml
|
||||
- extra-package.yml
|
||||
- release.yml
|
||||
- update-actions.yml
|
||||
- update-branch-version.yml
|
||||
- update-crates.yml
|
||||
unpinned-uses:
|
||||
config:
|
||||
policies:
|
||||
"*": ref-pin
|
||||
EOF
|
||||
}
|
||||
|
||||
# main
|
||||
init_terminal_colors
|
||||
consume_args "$@"
|
||||
zizmor --version
|
||||
conf="/tmp/conf"
|
||||
set_zizmor_conf "${conf}"
|
||||
error_count=0
|
||||
|
||||
for file in "${files[@]}" ; do
|
||||
# disable release.yml for now because output vars have to be rewrited from scratch"
|
||||
if [[ "${file}" =~ release.yml ]] ; then
|
||||
echo "${color_yellow}$file is disabled for now because output vars have to be rewrited from scratch${color_reset}"
|
||||
continue
|
||||
fi
|
||||
# disable accept-pull-request.yml for now because input vars have to be rewrited from scratch"
|
||||
if [[ "${file}" =~ accept-pull-request.yml ]] ; then
|
||||
echo "${color_yellow}$file is disabled for now because input vars have to be rewrited from scratch${color_reset}"
|
||||
continue
|
||||
fi
|
||||
tmpfile="/tmp/$(basename "${file}")"
|
||||
(sed "s/❌//g" "${file}" 2>/dev/null || true) | \
|
||||
(sed "s/✅//g" "${file}" 2>/dev/null || true) | \
|
||||
(sed "s/🔨//g" "${file}" 2>/dev/null || true) | \
|
||||
(sed "s/🕗//g" "${file}" 2>/dev/null || true) > "${tmpfile}"
|
||||
echo "> ${file} (tmp file: ${tmpfile}):"
|
||||
zizmor --no-progress --config "${conf}" --gh-token "${github_token}" "${tmpfile}" || error_count=$((error_count+1))
|
||||
done
|
||||
if [[ $error_count -gt 0 ]] ; then
|
||||
echo "${color_red}There are problems with github workflows${color_reset}"
|
||||
exit 1
|
||||
else
|
||||
echo "${color_green}No problem with github workflows${color_reset}"
|
||||
fi
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
import sys
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
COVERAGE_DIR = "target/coverage"
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
echo "----- Disable PAM for sudo -----"
|
||||
{
|
||||
echo "auth sufficient pam_permit.so"
|
||||
echo "account sufficient pam_permit.so"
|
||||
echo "session sufficient pam_permit.so"
|
||||
} > /etc/pam.d/sudo
|
||||
cat /etc/pam.d/sudo
|
||||
|
||||
|
|
@ -9,19 +9,20 @@ Examples:
|
|||
$ python3 bin/docs/build_man_md.py docs/manual/hurl.md > docs/manual.md
|
||||
|
||||
"""
|
||||
|
||||
import re
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from typing import List
|
||||
|
||||
from markdown import (
|
||||
parse_markdown,
|
||||
MarkdownDoc,
|
||||
Header,
|
||||
Paragraph,
|
||||
Whitespace,
|
||||
MarkdownDoc,
|
||||
Node,
|
||||
Paragraph,
|
||||
Table,
|
||||
Whitespace,
|
||||
parse_markdown,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -14,12 +14,13 @@ Examples:
|
|||
$ python3 bin/docs/build_readme.py crates > packages/hurl/README.md
|
||||
|
||||
"""
|
||||
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from markdown import parse_markdown, MarkdownDoc
|
||||
from markdown import MarkdownDoc, parse_markdown
|
||||
|
||||
|
||||
def build_home_md(text: str) -> MarkdownDoc:
|
||||
|
|
@ -137,6 +138,22 @@ def replace(text: str, dest: str) -> str:
|
|||
</picture>
|
||||
""",
|
||||
),
|
||||
# TODO: extract version from Cargo.toml
|
||||
(
|
||||
"[HTML]: /docs/standalone/hurl-6.1.0.html",
|
||||
"[HTML]: /docs/standalone/hurl-6.1.0.html",
|
||||
"[HTML]: https://hurl.dev/assets/docs/hurl-6.1.0.html.gz",
|
||||
),
|
||||
(
|
||||
"[PDF]: /docs/standalone/hurl-6.1.0.pdf",
|
||||
"[PDF]: /docs/standalone/hurl-6.1.0.pdf",
|
||||
"[PDF]: https://hurl.dev/assets/docs/hurl-6.1.0.pdf.gz",
|
||||
),
|
||||
(
|
||||
"[Markdown]: https://hurl.dev/docs/standalone/hurl-6.1.0.html",
|
||||
"[Markdown]: /docs/standalone/hurl-6.1.0.md",
|
||||
"[Markdown]: https://hurl.dev/assets/docs/hurl-6.1.0.md.gz",
|
||||
),
|
||||
]
|
||||
for old, new_for_github, new_for_crates in snippets:
|
||||
if dest == "github":
|
||||
|
|
|
|||
|
|
@ -0,0 +1,359 @@
|
|||
#!/usr/bin/env python3
|
||||
"""
|
||||
Build a standalone Markdown file of all the documentation. All links and anchors are rewritten so the
|
||||
links are functional: during the concatenation of two files, the script insures that an anchor is well
|
||||
specific to a given pages. "The essential, it works": means that while this script is working, it may be
|
||||
not easy to maintain it.
|
||||
|
||||
Examples:
|
||||
$ python3 bin/docs/build_standalone_md.py > docs/standalone/hurl-5.0.1.md
|
||||
"""
|
||||
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import unicodedata
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
|
||||
import markdown
|
||||
import tomllib
|
||||
from markdown import Header, MarkdownDoc, Paragraph, RefLink, Table, Whitespace
|
||||
|
||||
|
||||
def add_section_header(doc: MarkdownDoc, title: str):
|
||||
"""Add a section header h1 to a Markdown document, with a given title"""
|
||||
node = Header(title=title, level=1)
|
||||
add_header_id(header=node, prefix=None)
|
||||
doc.add_child(node)
|
||||
node = Whitespace(content="\n")
|
||||
doc.add_child(node)
|
||||
|
||||
|
||||
def add_sections(doc: MarkdownDoc, title: str | None, files: [str]):
|
||||
"""Add a new section to a markdown documentation, using a list of files to concatenate"""
|
||||
if title:
|
||||
add_section_header(doc=doc, title=title)
|
||||
|
||||
for file in files:
|
||||
sys.stderr.write(f">>> Processing <{file}>...\n")
|
||||
path = Path(file)
|
||||
text = path.read_text()
|
||||
file_md = markdown.parse_markdown(text=text)
|
||||
file_md.indent()
|
||||
|
||||
# All ref links (https://daringfireball.net/projects/markdown/syntax) are inlined so we can concatenate
|
||||
# multiple documents without any problem
|
||||
#
|
||||
# Before:
|
||||
# ```markdown
|
||||
# Some bla bal [a reference][ref]
|
||||
# [ref]: https://foo.com
|
||||
# ```
|
||||
#
|
||||
# After:
|
||||
# ```markdown
|
||||
# Some bla bal [a reference](https://foo.com)
|
||||
# ```
|
||||
inline_ref_link(md=file_md)
|
||||
|
||||
# Anchors are normalize so we can concatenate multiple documents that have the same anchors
|
||||
#
|
||||
# Before:
|
||||
# ```markdown
|
||||
# Some bla bal [a reference](#anchor)
|
||||
# ```
|
||||
#
|
||||
# After:
|
||||
# ```markdown
|
||||
# Some bla bal [a reference](#name-of-the-document-anchor)
|
||||
|
||||
anchors_prefix = f"{title} {path.stem}"
|
||||
anchors_prefix = slugify(anchors_prefix)
|
||||
rewrite_links(md=file_md, prefix=anchors_prefix)
|
||||
|
||||
hr = Paragraph(content="\n\n<hr>\n\n")
|
||||
file_md.add_child(hr)
|
||||
|
||||
doc.extend(file_md)
|
||||
|
||||
|
||||
def add_header_id(header: Header, prefix: str | None):
|
||||
"""Add an anchor id to a header
|
||||
Example: `# Some title` => `# Some title {#a-prefix-some-title}`
|
||||
"""
|
||||
slug = slugify(header.title)
|
||||
if prefix:
|
||||
_id = f"{prefix}-{slug}"
|
||||
else:
|
||||
_id = slug
|
||||
header.id = _id
|
||||
header.update_content()
|
||||
|
||||
|
||||
def slugify(text: str) -> str:
|
||||
"""Makes a slug from a text."""
|
||||
text = unicodedata.normalize("NFKD", text).encode("ascii", "ignore").decode("ascii")
|
||||
text = re.sub(r"[^\w\s/-]", "", text).strip().lower()
|
||||
return re.sub(r"[-\s]+", "-", text).replace("/", "")
|
||||
|
||||
|
||||
def section_from_page(page: str):
|
||||
"""Returns the section title from a page ex: "manual.md" => "Getting Started" """
|
||||
if page in ["home.md"]:
|
||||
return "Introduction"
|
||||
elif page in ["license.md"]:
|
||||
return "Resources"
|
||||
elif page in [
|
||||
"installation.md",
|
||||
"manual.md",
|
||||
"sample.md",
|
||||
"running-tests.md",
|
||||
"frequently-asked-questions.md",
|
||||
]:
|
||||
return "Getting Started"
|
||||
else:
|
||||
return "File Format"
|
||||
|
||||
|
||||
def rewrite_links(md: MarkdownDoc, prefix: str):
|
||||
"""When multiple Markdown documents are concatenate, we need to rewrite links and anchor because
|
||||
some anchors can overlapped and documents are merged into a single document."""
|
||||
# Find all headers and add an id specific to the page
|
||||
# `# Some title` => `# Some title {#some-title}`
|
||||
headers = [c for c in md.children if isinstance(c, Header)]
|
||||
for header in headers:
|
||||
add_header_id(header, prefix=prefix)
|
||||
|
||||
# Replace `[Foo](#anchor)` => `[Foo](#current-page-anchor)`
|
||||
nodes = [c for c in md.children if isinstance(c, Paragraph) or isinstance(c, Table)]
|
||||
for node in nodes:
|
||||
|
||||
def repl(match_obj):
|
||||
title = match_obj.group("title")
|
||||
anchor = match_obj.group("anchor")
|
||||
_id = f"#{prefix}-{anchor}"
|
||||
return f"[{title}]({_id})"
|
||||
|
||||
node.content = re.sub(
|
||||
r"\[(?P<title>.+?)]\(#(?P<anchor>.+?)\)", repl, node.content
|
||||
)
|
||||
|
||||
# Replace `[Foo](/docs/some-page.md#anchor)` => `[Foo](#some-page-anchor)`
|
||||
nodes = [c for c in md.children if isinstance(c, Paragraph) or isinstance(c, Table)]
|
||||
for node in nodes:
|
||||
|
||||
def repl(match_obj):
|
||||
old = match_obj.group(0)
|
||||
title = match_obj.group("title")
|
||||
page = match_obj.group("page")
|
||||
section = section_from_page(page)
|
||||
section = slugify(section)
|
||||
page = page[:-3] # Remove .md extension
|
||||
anchor = match_obj.group("anchor")
|
||||
if anchor:
|
||||
_id = f"#{section}-{page}-{anchor}"
|
||||
else:
|
||||
_id = f"#{section}-{page}"
|
||||
new = f"[{title}]({_id})"
|
||||
sys.stderr.write(f"Replace `{old}` to `{new}\n")
|
||||
return new
|
||||
|
||||
node.content = re.sub(
|
||||
r"\[(?P<title>.+?)]\(/docs/(?P<page>[a-zA-Z0-9-/]+?\.md)#?(?P<anchor>[a-z0-9-]+?)?\)",
|
||||
repl,
|
||||
node.content,
|
||||
)
|
||||
|
||||
# Replace Manual links
|
||||
# `<a href="#aws-sigv4" id="aws-sigv4">`
|
||||
tables = [c for c in md.children if isinstance(c, Table)]
|
||||
for table in tables:
|
||||
|
||||
def repl(match_obj):
|
||||
href = match_obj.group("href")
|
||||
_id = match_obj.group("_id")
|
||||
if href != _id:
|
||||
return f'<a href="{href}" id="{_id}">'
|
||||
else:
|
||||
return f'<a href="#{prefix}-{href}" id="{prefix}-{_id}">'
|
||||
|
||||
table.content = re.sub(
|
||||
r"<a href=\"#(?P<href>.+?)\" id=\"(?P<_id>.+?)\">", repl, table.content
|
||||
)
|
||||
table.reformat()
|
||||
|
||||
|
||||
def inline_ref_link(md: MarkdownDoc):
|
||||
"""Ref links are inline: as documents are merged, we do not want to have ref links in the
|
||||
middle of the final document."""
|
||||
# Find all ref link:
|
||||
p_nodes = [c for c in md.children if isinstance(c, Paragraph)]
|
||||
ref_nodes = [c for c in md.children if isinstance(c, RefLink)]
|
||||
|
||||
# Inline ref links
|
||||
for p in p_nodes:
|
||||
|
||||
def repl(match_obj):
|
||||
ref = match_obj.group("ref")
|
||||
ref_links = (n for n in ref_nodes if n.ref == ref)
|
||||
ref_link = next(ref_links, None)
|
||||
if not ref_link:
|
||||
sys.stderr.write(f"No ref for [{ref}]\n")
|
||||
return f"[{ref}]"
|
||||
url = ref_link.link.strip()
|
||||
new = f"[{ref}]({url})"
|
||||
sys.stderr.write(f"Inline `[{ref}]` to `{new}`\n")
|
||||
return new
|
||||
|
||||
p.content = re.sub(r"\[(?P<ref>.+?)]", repl, p.content)
|
||||
|
||||
# Delete ref links
|
||||
md.remove_nodes(ref_nodes)
|
||||
|
||||
|
||||
def main() -> int:
|
||||
# Identify version
|
||||
with open("packages/hurl/Cargo.toml", "rb") as f:
|
||||
data = tomllib.load(f)
|
||||
version = data["package"]["version"]
|
||||
version = version.replace("-SNAPSHOT", "")
|
||||
sys.stderr.write(f"version:{version}\n")
|
||||
|
||||
standalone_md = MarkdownDoc()
|
||||
|
||||
add_sections(
|
||||
doc=standalone_md,
|
||||
title="Introduction",
|
||||
files=[
|
||||
"docs/home.md",
|
||||
],
|
||||
)
|
||||
|
||||
add_sections(
|
||||
doc=standalone_md,
|
||||
title="Getting Started",
|
||||
files=[
|
||||
"docs/installation.md",
|
||||
"docs/manual.md",
|
||||
"docs/samples.md",
|
||||
"docs/running-tests.md",
|
||||
"docs/frequently-asked-questions.md",
|
||||
],
|
||||
)
|
||||
|
||||
add_sections(
|
||||
doc=standalone_md,
|
||||
title="File Format",
|
||||
files=[
|
||||
"docs/hurl-file.md",
|
||||
"docs/entry.md",
|
||||
"docs/request.md",
|
||||
"docs/response.md",
|
||||
"docs/capturing-response.md",
|
||||
"docs/asserting-response.md",
|
||||
"docs/filters.md",
|
||||
"docs/templates.md",
|
||||
"docs/grammar.md",
|
||||
],
|
||||
)
|
||||
|
||||
add_sections(
|
||||
doc=standalone_md,
|
||||
title="Resources",
|
||||
files=[
|
||||
"docs/license.md",
|
||||
],
|
||||
)
|
||||
|
||||
# Make the cover
|
||||
toc_txt = standalone_md.toc()
|
||||
toc = Paragraph(content=toc_txt)
|
||||
standalone_md.children.insert(0, toc)
|
||||
|
||||
title = Header(title="Hurl Documentation", level=1)
|
||||
standalone_md.children.insert(0, title)
|
||||
ws = Whitespace(content="\n")
|
||||
standalone_md.children.insert(1, ws)
|
||||
date = datetime.today().strftime("%d-%m-%Y")
|
||||
title = Header(title=f"Version {version} - {date}", level=2)
|
||||
standalone_md.children.insert(2, title)
|
||||
ws = Whitespace(content="\n")
|
||||
standalone_md.children.insert(3, ws)
|
||||
|
||||
standalone = standalone_md.to_text()
|
||||
standalone = rewrite_content(text=standalone, version=version)
|
||||
|
||||
print(standalone)
|
||||
return os.EX_OK
|
||||
|
||||
|
||||
def rewrite_content(text: str, version: str) -> str:
|
||||
"""Some hardcoded replacement."""
|
||||
return (
|
||||
text.replace("/docs/assets/img/", "https://hurl.dev/assets/img/")
|
||||
.replace('<div id="home-demo"></div>', "")
|
||||
.replace("[Blog](blog.md)", "[Blog](https://hurl.dev/blog)")
|
||||
.replace(
|
||||
"[Tutorial](#file-format-tutorial/your-first-hurl-file)",
|
||||
"[Tutorial](https://hurl.dev/docs/tutorial/your-first-hurl-file.html)",
|
||||
)
|
||||
.replace(
|
||||
"[Documentation](#getting-started-installation)",
|
||||
"[Documentation](https://hurl.dev)",
|
||||
)
|
||||
.replace(
|
||||
f" (download [HTML](/docs/standalone/hurl-{version}.html), [PDF](/docs/standalone/hurl-{version}.pdf), [Markdown](/docs/standalone/hurl-{version}.md))",
|
||||
"",
|
||||
)
|
||||
.replace("/docs/asserting-response.html#", "#file-format-asserting-response-")
|
||||
.replace(
|
||||
'<a href="/docs/capturing-response.html">',
|
||||
'<a href="#file-format-capturing-response-capturing-response">',
|
||||
)
|
||||
.replace(
|
||||
'<a href="#method">Method</a>',
|
||||
'<a href="#file-format-request-method">Method</a>',
|
||||
)
|
||||
.replace('<a href="#url">URL</a>', '<a href="#file-format-request-url">URL</a>')
|
||||
.replace(
|
||||
'<a href="#headers">HTTP request headers</a>',
|
||||
'<a href="#file-format-request-headers">HTTP request headers</a>',
|
||||
)
|
||||
.replace(
|
||||
'<a href="#options">Options</a>',
|
||||
'<a href="#file-format-options">Options</a>',
|
||||
)
|
||||
.replace(
|
||||
'<a href="#query-parameters">query strings</a>',
|
||||
'<a href="#file-format-request-query-parameters">query strings</a>',
|
||||
)
|
||||
.replace(
|
||||
'<a href="#form-parameters">form params</a>',
|
||||
'<a href="#file-format-request-form-parameters">form params</a>',
|
||||
)
|
||||
.replace(
|
||||
'<a href="#cookies">cookies</a>',
|
||||
'<a href="#file-format-request-cookies">cookies</a>',
|
||||
)
|
||||
.replace(
|
||||
'<a href="#basic-authentication">authentication</a>',
|
||||
'<a href="#file-format-request-basic-authentication">authentication</a>',
|
||||
)
|
||||
.replace(
|
||||
'<a href="#body">HTTP request body</a>',
|
||||
'<a href="#file-format-request-body">HTTP request body</a>',
|
||||
)
|
||||
.replace(
|
||||
"[UUID v4 random string]",
|
||||
"[UUID v4 random string](https://en.wikipedia.org/wiki/Universally_unique_identifier)",
|
||||
)
|
||||
.replace(
|
||||
"[RFC 3339]",
|
||||
"[RFC 3339](https://www.rfc-editor.org/rfc/rfc3339)",
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
@ -42,7 +42,7 @@ class Whitespace(Node):
|
|||
pass
|
||||
|
||||
|
||||
def build_header(title: str, level: int) -> str:
|
||||
def build_header(title: str, level: int, _id: str | None) -> str:
|
||||
"""Constructs a header in Markdown format.
|
||||
|
||||
Arg:
|
||||
|
|
@ -50,7 +50,10 @@ def build_header(title: str, level: int) -> str:
|
|||
level: 1 base index of the header level
|
||||
"""
|
||||
hashes = "#" * level
|
||||
return f"{hashes} {title}\n"
|
||||
if _id:
|
||||
return f"{hashes} {title} {{#{_id}}}\n"
|
||||
else:
|
||||
return f"{hashes} {title}\n"
|
||||
|
||||
|
||||
class Header(Node):
|
||||
|
|
@ -58,11 +61,13 @@ class Header(Node):
|
|||
|
||||
title: str
|
||||
level: int
|
||||
_id: str | None
|
||||
|
||||
def __init__(self, title: str, level: int) -> None:
|
||||
def __init__(self, title: str, level: int, _id: str = None) -> None:
|
||||
super().__init__(content=None)
|
||||
self.title = title
|
||||
self.level = level
|
||||
self._id = _id
|
||||
self.update_content()
|
||||
|
||||
def indent(self, count: int) -> None:
|
||||
|
|
@ -75,7 +80,15 @@ class Header(Node):
|
|||
self.update_content()
|
||||
|
||||
def update_content(self) -> None:
|
||||
self.content = build_header(title=self.title, level=self.level)
|
||||
self.content = build_header(title=self.title, level=self.level, _id=self._id)
|
||||
|
||||
@property
|
||||
def id(self) -> str | None:
|
||||
return self._id
|
||||
|
||||
@id.setter
|
||||
def id(self, value: str | None):
|
||||
self._id = value
|
||||
|
||||
|
||||
class RefLink(Node):
|
||||
|
|
@ -198,6 +211,19 @@ def parse_code(parser: Parser) -> Code:
|
|||
return Code(content=content)
|
||||
|
||||
|
||||
def parse_table(parser: Parser) -> Table:
|
||||
"""Parse and return a table token."""
|
||||
content = ""
|
||||
while parser.left() > 0:
|
||||
line = parser.read_while(lambda it: it != "\n")
|
||||
_ = parser.read()
|
||||
content += line + "\n"
|
||||
c = parser.peek()
|
||||
if c != "|":
|
||||
break
|
||||
return Table(content=content)
|
||||
|
||||
|
||||
def parse_header(parser: Parser) -> Header:
|
||||
"""Parse and return a header token."""
|
||||
hashes = parser.read_while(lambda it: it == "#")
|
||||
|
|
@ -255,6 +281,11 @@ def parse_markdown(text: str) -> "MarkdownDoc":
|
|||
root.add_child(node)
|
||||
continue
|
||||
|
||||
if c == "|":
|
||||
node = parse_table(parser=parser)
|
||||
root.add_child(node)
|
||||
continue
|
||||
|
||||
# Default node parsing:
|
||||
node = parse_paragraph(parser=parser)
|
||||
root.add_child(node)
|
||||
|
|
@ -312,12 +343,12 @@ class MarkdownDoc:
|
|||
self.children.extend(other.children)
|
||||
|
||||
def insert_node(self, start: Node, node: Node) -> None:
|
||||
"""Insert a child node to the current document, after a specified node."""
|
||||
"""Insert a child node to the current document, before a specified node."""
|
||||
index = self.children.index(start)
|
||||
self.children.insert(index, node)
|
||||
|
||||
def insert_nodes(self, start: Node, nodes: List[Node]) -> None:
|
||||
"""Insert children nodes to the current document, after a specified node."""
|
||||
"""Insert children nodes to the current document, before a specified node."""
|
||||
index = self.children.index(start)
|
||||
self.children[index:index] = nodes
|
||||
|
||||
|
|
@ -373,15 +404,23 @@ class MarkdownDoc:
|
|||
return re.sub(r"[-\s]+", "-", value).replace("/", "")
|
||||
|
||||
headers = [child for child in self.children if isinstance(child, Header)]
|
||||
|
||||
# Find the minimum header level, we'll delta all documents level from this
|
||||
min_level = min([h.level for h in headers])
|
||||
|
||||
toc = dedent(
|
||||
"""\
|
||||
Table of Contents
|
||||
=================
|
||||
# Table of Contents
|
||||
|
||||
"""
|
||||
)
|
||||
for header in headers:
|
||||
indent = " " * header.level
|
||||
slug = slugify(header.title)
|
||||
indent = " " * (header.level - min_level)
|
||||
if header.id:
|
||||
slug = header.id
|
||||
else:
|
||||
slug = slugify(header.title)
|
||||
line = f"{indent}* [{header.title}](#{slug})\n"
|
||||
toc += line
|
||||
toc += "\n"
|
||||
return toc
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
import unittest
|
||||
|
||||
from markdown import *
|
||||
from markdown import Table
|
||||
|
||||
|
||||
class UtilsTest(unittest.TestCase):
|
||||
|
|
|
|||
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
# First generates Rust code, bash completion, part of hurl.md and hurlfmt.md
|
||||
python3 bin/spec/options/generate_all.py
|
||||
|
||||
# Regenerates manual, READMEs etc..
|
||||
python3 bin/release/gen_manpage.py docs/manual/hurl.md > docs/manual/hurl.1
|
||||
python3 bin/release/gen_manpage.py docs/manual/hurlfmt.md > docs/manual/hurlfmt.1
|
||||
python3 bin/docs/build_man_md.py docs/manual/hurl.md > docs/manual.md
|
||||
python3 bin/docs/build_readme.py github > README.md
|
||||
python3 bin/docs/build_readme.py crates > packages/hurl/README.md
|
||||
|
|
@ -15,10 +15,12 @@ vcpkg --version
|
|||
if ($LASTEXITCODE) { Throw }
|
||||
|
||||
write-host "# python"
|
||||
(Get-Command -Name python -CommandType Application).Source
|
||||
Get-command python | Format-Table -Wrap -Autosize
|
||||
python -V
|
||||
if ($LASTEXITCODE) { Throw }
|
||||
(Get-Command -Name pip -CommandType Application).Source
|
||||
|
||||
write-host "# pip"
|
||||
Get-command pip | Format-Table -Wrap -Autosize
|
||||
pip --version
|
||||
if ($LASTEXITCODE) { Throw }
|
||||
|
||||
|
|
|
|||
|
|
@ -6,14 +6,23 @@ date
|
|||
echo "# os"
|
||||
uname -a
|
||||
|
||||
echo "# user"
|
||||
whoami
|
||||
|
||||
echo "# python3"
|
||||
if command -V python3 ; then
|
||||
which python3
|
||||
python3 -V
|
||||
else
|
||||
echo "No python3 installed"
|
||||
fi
|
||||
|
||||
echo "# pip"
|
||||
if command -V pip ; then
|
||||
which pip
|
||||
pip --version
|
||||
else
|
||||
echo "No python3 installed"
|
||||
echo "No pip installed"
|
||||
fi
|
||||
|
||||
echo "# curl"
|
||||
|
|
|
|||
|
|
@ -18,9 +18,12 @@ apk add --quiet \
|
|||
openssl-dev \
|
||||
python3 \
|
||||
python3-dev \
|
||||
py3-pip \
|
||||
cargo \
|
||||
squid \
|
||||
jq
|
||||
|
||||
# libxml crate >= 0.3.4 uses bindgen
|
||||
apk add --quiet clang-dev
|
||||
|
||||
sudo squid -k shutdown || true
|
||||
sudo rm -v /dev/shm/squid*.shm >/dev/null 2>&1 || true
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ pacman -Syu --noconfirm \
|
|||
expect \
|
||||
openssl \
|
||||
python3 \
|
||||
python-pip \
|
||||
icu \
|
||||
base-devel \
|
||||
libxml2 \
|
||||
|
|
@ -17,8 +16,11 @@ pacman -Syu --noconfirm \
|
|||
openbsd-netcat \
|
||||
squid \
|
||||
jq
|
||||
# Temporary install to patch a python3/pip crash
|
||||
pacman -Syu --noconfirm expat
|
||||
sudo squid -k shutdown || true
|
||||
sudo rm -v /dev/shm/squid*.shm >/dev/null 2>&1 || true
|
||||
|
||||
# libxml crate >= 0.3.4 uses bindgen
|
||||
pacman -Syu --noconfirm clang
|
||||
|
||||
# Temporary install to patch a python3/pip crash
|
||||
pacman -Syu --noconfirm expat
|
||||
|
|
|
|||
|
|
@ -0,0 +1,33 @@
|
|||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
echo "----- install prerequisite packages -----"
|
||||
if ! command -V sudo ; then
|
||||
echo ":: Installing sudo"
|
||||
apt-get update
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y install sudo
|
||||
fi
|
||||
sudo apt-get update
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install \
|
||||
bash \
|
||||
expect \
|
||||
curl \
|
||||
net-tools \
|
||||
g++-aarch64-linux-gnu \
|
||||
libc6-dev-arm64-cross \
|
||||
libxml2-dev \
|
||||
pkg-config \
|
||||
libcurl4-openssl-dev \
|
||||
libxml2-utils \
|
||||
libxml2-dev \
|
||||
libssl-dev \
|
||||
netcat-openbsd \
|
||||
squid \
|
||||
jq \
|
||||
python3 \
|
||||
python3-venv \
|
||||
python3-dev
|
||||
sudo service squid stop || true
|
||||
sudo squid -k shutdown || true
|
||||
sudo rm -v /dev/shm/squid*.shm >/dev/null 2>&1 || true
|
||||
|
||||
|
|
@ -7,17 +7,18 @@ yum install -y \
|
|||
sudo \
|
||||
expect \
|
||||
which \
|
||||
python3 \
|
||||
procps \
|
||||
gcc \
|
||||
libxml2-devel \
|
||||
openssl-devel \
|
||||
libcurl-devel \
|
||||
python3-devel \
|
||||
python3-pip \
|
||||
python3.11-devel \
|
||||
nc \
|
||||
squid \
|
||||
jq
|
||||
ln -sf /usr/bin/python3.11 /usr/bin/python3
|
||||
sudo squid -k shutdown || true
|
||||
sudo rm -v /dev/shm/squid*.shm >/dev/null 2>&1 || true
|
||||
|
||||
# libxml crate >= 0.3.4 uses bindgen
|
||||
yum install -y clang-devel
|
||||
|
|
|
|||
|
|
@ -1,21 +1,9 @@
|
|||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
echo "----- preinstalled curl version -----"
|
||||
curl --version
|
||||
|
||||
echo "----- install prerequisite packages -----"
|
||||
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=true
|
||||
brew uninstall --force --ignore-dependencies curl
|
||||
brew update
|
||||
brew install -s curl
|
||||
brew link --force --overwrite curl
|
||||
CURL_PATH="$(brew --prefix curl)/bin"
|
||||
export CURL_PATH
|
||||
echo "CURL_PATH=$CURL_PATH"
|
||||
PATH="$CURL_PATH:$PATH"
|
||||
export PATH
|
||||
brew install bash expect pkg-config squid jq
|
||||
brew install bash expect squid jq
|
||||
sudo squid -k shutdown || true
|
||||
sudo rm -v /dev/shm/squid*.shm >/dev/null 2>&1 || true
|
||||
|
||||
|
|
|
|||
|
|
@ -3,15 +3,17 @@ set -Eeuo pipefail
|
|||
|
||||
echo "----- install prerequisite packages -----"
|
||||
if ! command -V sudo ; then
|
||||
echo ":: Installing sudo"
|
||||
apt-get update
|
||||
apt-get -y install sudo
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y install sudo
|
||||
fi
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install \
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install \
|
||||
bash \
|
||||
expect \
|
||||
curl \
|
||||
net-tools \
|
||||
build-essential \
|
||||
g++-aarch64-linux-gnu \
|
||||
libc6-dev-arm64-cross \
|
||||
libxml2-dev \
|
||||
|
|
@ -21,7 +23,6 @@ sudo apt-get -y install \
|
|||
libxml2-dev \
|
||||
libssl-dev \
|
||||
python3 \
|
||||
python3-pip \
|
||||
python3-venv \
|
||||
netcat-openbsd \
|
||||
squid \
|
||||
|
|
@ -30,3 +31,5 @@ sudo service squid stop || true
|
|||
sudo squid -k shutdown || true
|
||||
sudo rm -v /dev/shm/squid*.shm >/dev/null 2>&1 || true
|
||||
|
||||
# libxml crate >= 0.3.4 uses bindgen
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install libclang-dev
|
||||
|
|
|
|||
|
|
@ -8,21 +8,19 @@ $vcpkg_dir=((Get-command vcpkg).Source | Split-Path)
|
|||
$lib_dir="$vcpkg_dir\installed\x64-windows\bin"
|
||||
git -C $vcpkg_dir pull
|
||||
|
||||
# install libxml and libcurl[openssl]
|
||||
vcpkg install --recurse --x-use-aria2 curl[core,non-http,schannel,ssl,sspi,http2]:x64-windows || true
|
||||
vcpkg install --recurse --x-use-aria2 libxml2[core,iconv]:x64-windows || true
|
||||
# install libxml and libcurl
|
||||
vcpkg install --recurse curl[core,sspi,http2,non-http,ssl]:x64-windows
|
||||
vcpkg install --recurse libxml2[core,iconv]:x64-windows
|
||||
|
||||
vcpkg update
|
||||
if ($LASTEXITCODE) { Throw }
|
||||
vcpkg upgrade --no-dry-run
|
||||
if ($LASTEXITCODE) { Throw }
|
||||
vcpkg integrate install
|
||||
if ($LASTEXITCODE) { Throw }
|
||||
Set-ItemProperty -Path HKCU:\Environment -Name VCPKGRS_DYNAMIC -Value "1"
|
||||
$env:VCPKGRS_DYNAMIC = [System.Environment]::GetEnvironmentVariable("VCPKGRS_DYNAMIC","User")
|
||||
if ($LASTEXITCODE) { Throw }
|
||||
|
||||
# update pip
|
||||
python -m pip install --upgrade pip --quiet
|
||||
# install python 3.11
|
||||
choco install --confirm python311
|
||||
if ($LASTEXITCODE) { Throw }
|
||||
|
||||
# install proxy
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
python_version="${1:-11}"
|
||||
sudo apt-get install -y software-properties-common
|
||||
grep -R deadsnakes /etc/apt/ 2>/dev/null 2>&1 || sudo add-apt-repository -y ppa:deadsnakes/ppa
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install \
|
||||
python3."${python_version}" \
|
||||
python3."${python_version}"-dev \
|
||||
python3."${python_version}"-venv
|
||||
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3."${python_version}" 1 || true
|
||||
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3."${python_version}" 1 || true
|
||||
|
||||
|
|
@ -1,6 +1,12 @@
|
|||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
case $(uname -m) in
|
||||
x86_64) arch="amd64" ;;
|
||||
aarch64) arch="arm64" ;;
|
||||
*) echo "Unkown arch" ; uname -m ;;
|
||||
esac
|
||||
|
||||
sudo rm -rf target/debian
|
||||
mkdir target/debian
|
||||
mkdir -p target/debian/usr/bin target/debian/DEBIAN
|
||||
|
|
@ -22,7 +28,7 @@ cat <<END >target/debian/DEBIAN/control
|
|||
Package: hurl
|
||||
Version: $VERSION
|
||||
Section: web
|
||||
Architecture: amd64
|
||||
Architecture: $arch
|
||||
Priority: optional
|
||||
Standards-Version: 3.9.4
|
||||
Maintainer: Fabrice Reix <fabrice.reix@orange.com>
|
||||
|
|
@ -36,11 +42,10 @@ Description: Run and test HTTP requests
|
|||
END
|
||||
dpkg --build target/debian
|
||||
|
||||
|
||||
echo "Check Lintian"
|
||||
sudo apt-get install -y lintian
|
||||
lintian --verbose target/debian.deb
|
||||
|
||||
mkdir -p target/upload
|
||||
cp target/debian.deb "target/upload/hurl_${VERSION}_amd64.deb"
|
||||
cp target/debian.deb "target/upload/hurl_${VERSION}_${arch}.deb"
|
||||
|
||||
|
|
|
|||
|
|
@ -6,8 +6,15 @@ write-host -foregroundcolor Cyan "----- create windows64 installer -----"
|
|||
$actual_dir=(Get-Location).Path
|
||||
|
||||
# install NSIS
|
||||
if (Get-Command makensis) {echo "makensis already installed"} else {choco install --confirm --no-progress nsis}
|
||||
if (Get-Command makensis -ErrorAction SilentlyContinue) {
|
||||
echo "makensis already installed"
|
||||
} else {
|
||||
choco install --confirm --no-progress nsis
|
||||
$env:Path = 'C:\Program Files (x86)\NSIS' + ";" + "$env:Path"
|
||||
}
|
||||
makensis /VERSION
|
||||
$nsis_dir=(Get-Command makensis).path | Split-Path -Parent
|
||||
echo "nsis_dir=$nsis_dir"
|
||||
Expand-Archive -Path "$PSScriptRoot\..\..\bin\windows\EnVar_plugin.zip" -DestinationPath "$nsis_dir" -Force -Verbose
|
||||
|
||||
# create win64 installer
|
||||
|
|
@ -16,4 +23,3 @@ makensis.exe /NOCD /V4 ..\..\bin\windows\hurl.nsi
|
|||
if ($LASTEXITCODE) { Throw }
|
||||
|
||||
cd $actual_dir
|
||||
|
||||
|
|
|
|||
|
|
@ -10,8 +10,9 @@ Examples:
|
|||
$ python3 bin/release/gen_manpage.py docs/manual/hurlfmt.md > docs/manual/hurlfmt.1
|
||||
|
||||
"""
|
||||
import sys
|
||||
|
||||
import re
|
||||
import sys
|
||||
from datetime import date
|
||||
from typing import Optional
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
toolchain=$(rustup show active-toolchain | cut -d '-' -f 2- | cut -d ' ' -f1)
|
||||
toolchain=$(rustup show active-toolchain | cut -d '-' -f 2- | cut -d ' ' -f1 | head -1)
|
||||
echo "${toolchain}"
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ Example:
|
|||
$ python3 bin/release/get_release_note.py 1.7.0
|
||||
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import datetime
|
||||
import json
|
||||
|
|
@ -12,7 +13,6 @@ import sys
|
|||
from typing import List, Optional
|
||||
|
||||
import requests
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
hurl_repo_url = "https://github.com/Orange-OpenSource/hurl"
|
||||
|
||||
|
|
@ -22,6 +22,7 @@ class Pull:
|
|||
self,
|
||||
url: str,
|
||||
description: str,
|
||||
author: str,
|
||||
tags: Optional[List[str]] = None,
|
||||
issues: Optional[List[int]] = None,
|
||||
):
|
||||
|
|
@ -31,13 +32,15 @@ class Pull:
|
|||
issues = []
|
||||
self.url = url
|
||||
self.description = description
|
||||
self.author = author
|
||||
self.tags = tags
|
||||
self.issues = issues
|
||||
|
||||
def __repr__(self):
|
||||
return 'Pull("%s", "%s","%s", %s)' % (
|
||||
return 'Pull("%s", "%s", "%s", "%s", %s)' % (
|
||||
self.url,
|
||||
self.description,
|
||||
self.author,
|
||||
str(self.tags),
|
||||
str(self.issues),
|
||||
)
|
||||
|
|
@ -49,6 +52,8 @@ class Pull:
|
|||
return False
|
||||
if self.description != other.description:
|
||||
return False
|
||||
if self.author != other.author:
|
||||
return False
|
||||
if self.tags != other.tags:
|
||||
return False
|
||||
if self.issues != other.issues:
|
||||
|
|
@ -79,8 +84,74 @@ class Issue:
|
|||
def release_note(milestone: str, token: Optional[str]) -> str:
|
||||
"""return markdown release note for the given milestone"""
|
||||
date = datetime.datetime.now()
|
||||
milestone_number = get_milestone(title=milestone, token=token)
|
||||
issues = get_issues(milestone_number=milestone_number, token=token)
|
||||
|
||||
query = """\
|
||||
query {
|
||||
repository(owner:"Orange-OpenSource", name:"hurl") {
|
||||
milestones(query:"MILESTONE", first:1) {
|
||||
edges {
|
||||
node {
|
||||
issues(last:100, states:CLOSED) {
|
||||
edges {
|
||||
node {
|
||||
title
|
||||
number
|
||||
url
|
||||
author {
|
||||
login
|
||||
}
|
||||
closedByPullRequestsReferences(includeClosedPrs:true, first:5) {
|
||||
edges {
|
||||
node {
|
||||
title
|
||||
url
|
||||
author {
|
||||
login
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
labels(first:5) {
|
||||
edges {
|
||||
node {
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
query = query.replace("MILESTONE", milestone)
|
||||
payload = github_graphql(token=token, query=query)
|
||||
response = json.loads(payload)
|
||||
issues_dict = response["data"]["repository"]["milestones"]["edges"][0]["node"][
|
||||
"issues"
|
||||
]["edges"]
|
||||
issues = []
|
||||
for issue_dict in issues_dict:
|
||||
number = issue_dict["node"]["number"]
|
||||
author_issue = issue_dict["node"]["author"]["login"]
|
||||
tags_dict = issue_dict["node"]["labels"]["edges"]
|
||||
tags = [t["node"]["name"] for t in tags_dict]
|
||||
|
||||
pulls = []
|
||||
pulls_dict = issue_dict["node"]["closedByPullRequestsReferences"]["edges"]
|
||||
for pull_dict in pulls_dict:
|
||||
title = pull_dict["node"]["title"]
|
||||
url = pull_dict["node"]["url"]
|
||||
author_pull = pull_dict["node"]["author"]["login"]
|
||||
pull = Pull(description=title, url=url, author=author_pull)
|
||||
pulls.append(pull)
|
||||
|
||||
issue = Issue(number=number, tags=tags, author=author_issue, pulls=pulls)
|
||||
issues.append(issue)
|
||||
|
||||
pulls = pulls_from_issues(issues)
|
||||
authors = [
|
||||
author
|
||||
|
|
@ -102,7 +173,7 @@ def pulls_from_issues(issues: List[Issue]) -> List[Pull]:
|
|||
saved_pull.tags.append(tag)
|
||||
saved_pull.issues.append(issue.number)
|
||||
else:
|
||||
if pull.url.startswith("/Orange-OpenSource/hurl"):
|
||||
if pull.url.startswith("https://github.com/Orange-OpenSource/hurl"):
|
||||
pull.tags = issue.tags
|
||||
pull.issues.append(issue.number)
|
||||
pulls[pull.url] = pull
|
||||
|
|
@ -110,65 +181,15 @@ def pulls_from_issues(issues: List[Issue]) -> List[Pull]:
|
|||
return list(pulls.values())
|
||||
|
||||
|
||||
def get_issues(milestone_number: int, token: Optional[str]) -> List[Issue]:
|
||||
"""Return issues for the given milestone and tags"""
|
||||
path = "/issues?milestone=%s&state=closed&per_page=100" % milestone_number
|
||||
response = github_get(path=path, token=token)
|
||||
issues = []
|
||||
for issue_json in json.loads(response):
|
||||
if "pull_request" in issue_json:
|
||||
continue
|
||||
number = issue_json["number"]
|
||||
tags = []
|
||||
if "labels" in issue_json:
|
||||
labels = issue_json["labels"]
|
||||
tags = [label["name"] for label in labels]
|
||||
author = issue_json["user"]["login"]
|
||||
pulls = get_linked_pulls(issue_number=number, token=token)
|
||||
issue = Issue(number, tags, author, pulls)
|
||||
issues.append(issue)
|
||||
return issues
|
||||
|
||||
|
||||
def get_linked_pulls(issue_number: int, token: Optional[str]) -> List[Pull]:
|
||||
"""return linked pull request for a given issue"""
|
||||
# Webscapping the webpage issue
|
||||
# because the API does not provide the relationship between issues and Pull request
|
||||
|
||||
url = "https://github.com/Orange-OpenSource/hurl/issues/%d" % issue_number
|
||||
sys.stderr.write("* GET %s\n" % url)
|
||||
headers = {}
|
||||
if token:
|
||||
headers["Authorization"] = f"Bearer {token}"
|
||||
r = requests.get(url, headers=headers)
|
||||
html = r.text
|
||||
pulls = webscrapping_linked_pulls(html)
|
||||
return pulls
|
||||
|
||||
|
||||
def webscrapping_linked_pulls(html: str) -> List[Pull]:
|
||||
soup = BeautifulSoup(html, "html.parser")
|
||||
links = soup.select("development-menu a")
|
||||
pulls = []
|
||||
for link in links:
|
||||
url = link["href"]
|
||||
if not isinstance(url, str):
|
||||
continue
|
||||
if url == "/Orange-OpenSource/hurl":
|
||||
continue
|
||||
description = "".join(link.getText()).strip()
|
||||
pull = Pull(url, description)
|
||||
pulls.append(pull)
|
||||
return pulls
|
||||
|
||||
|
||||
def authors_from_issues(issues: List[Issue]) -> List[str]:
|
||||
"""return list of unique authors from a list of issues"""
|
||||
authors = []
|
||||
for issue in issues:
|
||||
author = issue.author
|
||||
if author not in authors:
|
||||
authors.append(author)
|
||||
if issue.author not in authors:
|
||||
authors.append(issue.author)
|
||||
for pull in issue.pulls:
|
||||
if pull.author not in authors:
|
||||
authors.append(pull.author)
|
||||
return authors
|
||||
|
||||
|
||||
|
|
@ -192,6 +213,7 @@ def generate_md(
|
|||
"enhancement": "Enhancements",
|
||||
"bug": "Bugs Fixed",
|
||||
"security": "Security Issues Fixed",
|
||||
"deprecation": "Deprecations",
|
||||
}
|
||||
|
||||
for category in categories:
|
||||
|
|
@ -209,25 +231,16 @@ def generate_md(
|
|||
return s
|
||||
|
||||
|
||||
def get_milestone(title: str, token: Optional[str]) -> int:
|
||||
"""Return milestone number"""
|
||||
path = "/milestones?state=all"
|
||||
response = github_get(path=path, token=token)
|
||||
for milestone in json.loads(response):
|
||||
if milestone["title"] == title:
|
||||
return milestone["number"]
|
||||
return -1
|
||||
|
||||
|
||||
def github_get(path: str, token: Optional[str]) -> str:
|
||||
"""Execute an HTTP GET with request"""
|
||||
github_api_url = "https://api.github.com/repos/Orange-OpenSource/hurl"
|
||||
url = github_api_url + path
|
||||
sys.stderr.write("* GET %s\n" % url)
|
||||
def github_graphql(token: Optional[str], query: str) -> str:
|
||||
"""Execute a GraphQL query using GitHub API."""
|
||||
url = "https://api.github.com/graphql"
|
||||
query_json = {"query": query}
|
||||
body = json.dumps(query_json)
|
||||
sys.stderr.write("* POST %s\n" % url)
|
||||
headers = {}
|
||||
if token:
|
||||
headers["Authorization"] = f"Bearer {token}"
|
||||
r = requests.get(url, headers=headers)
|
||||
r = requests.post(url, data=body, headers=headers)
|
||||
if r.status_code != 200:
|
||||
raise Exception("HTTP Error %s - %s" % (r.status_code, r.text))
|
||||
return r.text
|
||||
|
|
|
|||
|
|
@ -1,8 +1,15 @@
|
|||
#!/usr/bin/env python3
|
||||
import datetime
|
||||
import unittest
|
||||
|
||||
from get_release_note import *
|
||||
|
||||
from get_release_note import (
|
||||
Issue,
|
||||
Pull,
|
||||
authors_from_issues,
|
||||
generate_md,
|
||||
pulls_from_issues,
|
||||
webscrapping_linked_pulls,
|
||||
)
|
||||
|
||||
ISSUES = [
|
||||
Issue(number=1, tags=["enhancement"], author="bob", pulls=[Pull("url1", "pull1")]),
|
||||
|
|
|
|||
|
|
@ -30,7 +30,10 @@ function prerequisites(){
|
|||
if ! command -v 7z >/dev/null 2>&1 ; then
|
||||
log_error "prerequisite" "Please install p7zip-full to make $(basename "$0") work."
|
||||
return 1
|
||||
elif ! command -v tar >/dev/null 2>&1 ; then
|
||||
elif ! command -v tar --version >/dev/null 2>&1 ; then
|
||||
log_error "prerequisite" "Please install tar to make $(basename "$0") work."
|
||||
return 1
|
||||
elif ! command -v zstd --version >/dev/null 2>&1 ; then
|
||||
log_error "prerequisite" "Please install tar to make $(basename "$0") work."
|
||||
return 1
|
||||
elif ! command -v unzip >/dev/null 2>&1 ; then
|
||||
|
|
@ -222,12 +225,12 @@ function format_tree(){
|
|||
function tree_file(){
|
||||
file="$1"
|
||||
if [[ ${file} =~ \.deb$ ]] ; then
|
||||
if ! (7z l "${file}" 2>/dev/null | grep data.tar >/dev/null 2>&1) ; then
|
||||
log_error "package integrity" "${file} is not a valid deb package as it does not contain a root file named data.tar"
|
||||
if ! (7z l "${file}" 2>/dev/null | grep data.tar.zst >/dev/null 2>&1) ; then
|
||||
log_error "package integrity" "${file} is not a valid deb package as it does not contain a root file named data.tar.zst"
|
||||
return 1
|
||||
fi
|
||||
if ! (7z e -so "${file}" data.tar 2>/dev/null | tar -tvf - >/dev/null 2>&1) ; then
|
||||
log_error "package integrity" "${file} is not a valid deb package as his data.tar file is not a valid tar package"
|
||||
if ! (7z e -so "${file}" data.tar.zst 2>/dev/null | tar --use-compress-program=unzstd -tvf - >/dev/null 2>&1) ; then
|
||||
log_error "package integrity" "${file} is not a valid deb package as his data.tar.zst file is not a valid tar package"
|
||||
return 1
|
||||
fi
|
||||
raw_tree=$(tree_deb "${file}")
|
||||
|
|
@ -255,7 +258,7 @@ function tree_file(){
|
|||
|
||||
function tree_deb(){
|
||||
file="$1"
|
||||
raw_tree=$(7z e -so "${file}" data.tar | tar -tvf - | grep -vE "\./$" | tr -s ' ' | cut --delimiter " " --field 1,2,3,6)
|
||||
raw_tree=$(7z e -so "${file}" data.tar.zst | tar --use-compress-program=unzstd -tvf - | grep -vE "\./$" | tr -s ' ' | cut --delimiter " " --field 1,2,3,6)
|
||||
echo "${raw_tree}"
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,12 +6,19 @@ write-host -foregroundcolor Cyan "----- build release -----"
|
|||
$actual_dir=(Get-Location).Path
|
||||
$project_root_path=(Resolve-Path -LiteralPath $PSScriptRoot\..\..).path
|
||||
|
||||
# link libs
|
||||
$actual_path=$env:Path
|
||||
$vcpkg_dir=(Split-Path -Parent (Get-Command vcpkg).Source) -replace '\\','/'
|
||||
$lib_dir="$vcpkg_dir/installed/x64-windows/bin"
|
||||
$env:VCPKGRS_DYNAMIC=1
|
||||
$env:BINDGEN_EXTRA_CLANG_ARGS="-I$vcpkg_dir/installed/x64-windows/include/libxml2 -v"
|
||||
$env:Path="$lib_dir" + ";" + "$actual_path"
|
||||
|
||||
# build
|
||||
cargo build --release --verbose --locked
|
||||
if ($LASTEXITCODE) { Throw }
|
||||
|
||||
# create final package
|
||||
$lib_dir=((Get-Command vcpkg).Source | Split-path) + "\installed\x64-windows\bin"
|
||||
$release_dir="$project_root_path\target\release"
|
||||
$package_dir="$project_root_path\target\win-package"
|
||||
New-Item -ItemType Directory -Force -Path $package_dir
|
||||
|
|
@ -28,7 +35,7 @@ Get-Content $package_dir\version.txt
|
|||
# add hurl to PATH
|
||||
$registry_user_path=(Get-ItemProperty -Path 'HKCU:\Environment').Path
|
||||
$registry_machine_path=(Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment').Path
|
||||
$env:Path = "$package_dir;$registry_user_path;$registry_machine_path"
|
||||
$env:Path = $actual_path + ";" + $package_dir + ";" + $registry_user_path + ";" + $registry_machine_path
|
||||
sleep 10
|
||||
|
||||
# hurl infos
|
||||
|
|
|
|||
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
echo "Test Caddy Hurl tests <https://github.com/caddyserver/caddy>"
|
||||
echo "------------------------------------------------------------"
|
||||
|
||||
work_dir=build/
|
||||
mkdir -p build/
|
||||
cd "$work_dir".
|
||||
rm -rf caddy || true
|
||||
git clone --branch hurl-tests --no-depth https://github.com/caddyserver/caddy.git
|
||||
cd caddy
|
||||
|
||||
# TODO: Install caddy depending on the system
|
||||
|
||||
caddy stop || true
|
||||
caddy start 2>/dev/null
|
||||
|
||||
hurl --jobs 1 --variables-file caddytest/spec/hurl_vars.properties --test caddytest/spec/
|
||||
|
||||
caddy stop
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
echo "Test Hurl tutorial <https://github.com/jcamiel/hurl-express-tutorial>"
|
||||
echo "---------------------------------------------------------------------"
|
||||
|
||||
work_dir=build/
|
||||
mkdir -p build/
|
||||
cd "$work_dir".
|
||||
rm -rf hurl-express-tutorial || true
|
||||
git clone --no-depth https://github.com/jcamiel/hurl-express-tutorial
|
||||
cd hurl-express-tutorial
|
||||
|
||||
|
||||
docker stop movies || true
|
||||
|
||||
docker run --rm --detach --quiet \
|
||||
--name movies \
|
||||
--publish 3000:3000 \
|
||||
ghcr.io/jcamiel/hurl-express-tutorial:latest
|
||||
|
||||
echo -e "GET http://localhost:3000\n200" | hurl --retry 60 --retry-interval 1s > /dev/null
|
||||
|
||||
hurl --variable host="http://localhost:3000" --test --color integration/*.hurl
|
||||
|
||||
docker stop movies
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
echo "Test Python infra Hurl tests <https://github.com/python/psf-salt>"
|
||||
echo "-----------------------------------------------------------------"
|
||||
|
||||
work_dir=build/
|
||||
mkdir -p build/
|
||||
cd "$work_dir".
|
||||
rm -rf psf-salt || true
|
||||
git clone --no-depth https://github.com/python/psf-salt.git
|
||||
cd psf-salt
|
||||
|
||||
|
||||
docker stop docs-redirects-nginx || true
|
||||
|
||||
docker run --rm --detach --quiet \
|
||||
--name docs-redirects-nginx \
|
||||
--tty \
|
||||
--publish 10000:10000 \
|
||||
--mount type=bind,source=./tests/docs-redirects/nginx.conf,target=/etc/nginx/conf.d/docs.conf,readonly \
|
||||
--mount type=bind,source=./salt/docs/config/nginx.docs-redirects.conf,target=/etc/nginx/docs-redirects.conf,readonly \
|
||||
nginx:1.26.1-alpine
|
||||
|
||||
echo -e "GET http://localhost:10000\n302" | hurl --retry 60 --retry-interval 1s > /dev/null
|
||||
|
||||
hurl --color --continue-on-error --variable host=http://localhost:10000 --test ./tests/docs-redirects/specs/*.hurl
|
||||
|
||||
docker stop docs-redirects-nginx
|
||||
|
|
@ -1,22 +1,21 @@
|
|||
beautifulsoup4==4.12.3
|
||||
black==24.4.2
|
||||
blinker==1.8.2
|
||||
certifi==2024.7.4
|
||||
charset-normalizer==3.3.2
|
||||
click==8.1.7
|
||||
Flask==3.0.3
|
||||
idna==3.7
|
||||
beautifulsoup4==4.14.3
|
||||
blinker==1.9.0
|
||||
certifi==2025.11.12
|
||||
charset-normalizer==3.4.4
|
||||
click==8.3.1
|
||||
Flask==3.1.2
|
||||
idna==3.11
|
||||
itsdangerous==2.2.0
|
||||
Jinja2==3.1.4
|
||||
lxml==5.2.2
|
||||
MarkupSafe==2.1.5
|
||||
mypy==1.10.0
|
||||
mypy-extensions==1.0.0
|
||||
packaging==24.1
|
||||
Jinja2==3.1.6
|
||||
librt==0.7.2
|
||||
MarkupSafe==3.0.3
|
||||
mypy==1.19.0
|
||||
mypy_extensions==1.1.0
|
||||
pathspec==0.12.1
|
||||
platformdirs==4.2.2
|
||||
requests==2.32.3
|
||||
soupsieve==2.5
|
||||
typing_extensions==4.12.2
|
||||
urllib3==2.2.2
|
||||
Werkzeug==3.0.3
|
||||
requests==2.32.5
|
||||
ruff==0.14.8
|
||||
soupsieve==2.8
|
||||
typing_extensions==4.15.0
|
||||
urllib3==2.6.0
|
||||
waitress==3.0.2
|
||||
Werkzeug==3.1.4
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
black==24.4.2
|
||||
beautifulsoup4==4.12.3
|
||||
Flask==3.0.3
|
||||
lxml==5.2.2
|
||||
mypy==1.10.0
|
||||
requests==2.32.3
|
||||
beautifulsoup4==4.14.3
|
||||
Flask==3.1.2
|
||||
mypy==1.19.0
|
||||
requests==2.32.5
|
||||
ruff==0.14.8
|
||||
waitress==3.0.2
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
import sys
|
||||
|
||||
from option import Option
|
||||
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -1,12 +1,13 @@
|
|||
#!/usr/bin/env python3
|
||||
from typing import List
|
||||
import glob
|
||||
from option import Option
|
||||
import generate_source
|
||||
import generate_man
|
||||
import generate_completion
|
||||
import sys
|
||||
import re
|
||||
import sys
|
||||
from typing import List
|
||||
|
||||
import generate_completion
|
||||
import generate_man
|
||||
import generate_source
|
||||
from option import Option
|
||||
|
||||
|
||||
def get_option_files(dir) -> List[str]:
|
||||
|
|
|
|||
|
|
@ -2,7 +2,9 @@
|
|||
"""
|
||||
Generate Completion files
|
||||
"""
|
||||
from typing import *
|
||||
|
||||
from typing import List
|
||||
|
||||
from option import Option
|
||||
|
||||
|
||||
|
|
@ -19,8 +21,7 @@ _"""
|
|||
+ name
|
||||
+ """()
|
||||
{
|
||||
local cur prev words cword
|
||||
_init_completion || return
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
|
||||
if [[ $cur == -* ]]; then
|
||||
COMPREPLY=($(compgen -W '"""
|
||||
|
|
@ -28,7 +29,8 @@ _"""
|
|||
+ """' -- "$cur"))
|
||||
return
|
||||
fi
|
||||
|
||||
# Generate filenames by default
|
||||
COMPREPLY=($(compgen -f "$cur" | sort))
|
||||
} &&
|
||||
complete -F _"""
|
||||
+ name
|
||||
|
|
@ -121,17 +123,15 @@ def zsh_option(option: Option):
|
|||
action = ": :"
|
||||
|
||||
if option.short and option.long:
|
||||
option_specifier = (
|
||||
f"(-{option.short} --{option.long})'{{-{option.short},--{option.long}}}'"
|
||||
)
|
||||
option_specifier = f"(-{option.short} --{option.long}){cardinality}'{{-{option.short},--{option.long}}}'"
|
||||
elif option.long:
|
||||
option_specifier = f"--{option.long}"
|
||||
option_specifier = f"{cardinality}--{option.long}"
|
||||
elif option.short:
|
||||
option_specifier = f"-{option.short}"
|
||||
option_specifier = f"{cardinality}-{option.short}"
|
||||
else:
|
||||
raise ValueError("No long or short option specified")
|
||||
|
||||
return f"'{cardinality}{option_specifier}[{help}]{action}' \\"
|
||||
return f"'{option_specifier}[{help}]{action}' \\"
|
||||
|
||||
|
||||
def generate_fish_completion(name: str, options: List[Option]):
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
#!/usr/bin/env python3
|
||||
import sys
|
||||
|
||||
from option import Option
|
||||
|
||||
"""
|
||||
Generate options for man
|
||||
"""
|
||||
import sys
|
||||
|
||||
|
||||
def generate_man(options: list[Option]) -> str:
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
#!/usr/bin/env python3
|
||||
import os
|
||||
import sys
|
||||
|
||||
from option import Option
|
||||
import sys
|
||||
|
||||
"""
|
||||
Generate source file for clap
|
||||
|
|
@ -10,7 +11,7 @@ Generate source file for clap
|
|||
|
||||
COPYRIGHT = """/*
|
||||
* Hurl (https://hurl.dev)
|
||||
* Copyright (C) 2024 Orange
|
||||
* Copyright (C) 2025 Orange
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -25,8 +26,6 @@ COPYRIGHT = """/*
|
|||
* limitations under the License.
|
||||
*
|
||||
*/"""
|
||||
import os
|
||||
import sys
|
||||
|
||||
# Relative script file
|
||||
SCRIPT_FILE = __file__[len(os.getcwd()) + 1 :]
|
||||
|
|
@ -58,24 +57,27 @@ def generate_source_option(option: Option) -> str:
|
|||
s += f"\n .short('{option.short}')"
|
||||
if option.value is not None:
|
||||
s += f'\n .value_name("{option.value}")'
|
||||
if option.value_default is not None:
|
||||
s += f'\n .default_value("{option.value_default}")'
|
||||
if option.value_parser is not None:
|
||||
s += f"\n .value_parser({option.value_parser})"
|
||||
if "-1" in option.value_parser:
|
||||
s += f"\n .allow_hyphen_values(true)"
|
||||
s += f'\n .help("{option.help}")'
|
||||
s += "\n .allow_hyphen_values(true)"
|
||||
help = option.help
|
||||
if option.value_default is not None:
|
||||
help += " [default: " + option.value_default + "]"
|
||||
s += f'\n .help("{help}")'
|
||||
if option.help_heading is not None:
|
||||
s += f'\n .help_heading("{option.help_heading}")'
|
||||
if option.conflict is not None:
|
||||
for conflict in option.conflict:
|
||||
s += f'\n .conflicts_with("{conflict}")'
|
||||
if option.value is not None:
|
||||
s += f"\n .num_args(1)"
|
||||
s += "\n .num_args(1)"
|
||||
else:
|
||||
s += f"\n .action(clap::ArgAction::SetTrue)"
|
||||
s += "\n .action(clap::ArgAction::SetTrue)"
|
||||
if option.append:
|
||||
s += f"\n .action(clap::ArgAction::Append)"
|
||||
s += "\n .action(clap::ArgAction::Append)"
|
||||
if option.deprecated or option.experimental:
|
||||
s += f"\n .hide(true)"
|
||||
s += "\n .hide(true)"
|
||||
s += "\n}"
|
||||
return s
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
from dataclasses import dataclass
|
||||
from typing import *
|
||||
from typing import Optional
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
@ -13,6 +13,7 @@ class Option:
|
|||
value_default: Optional[str] = None
|
||||
value_parser: Optional[str] = None
|
||||
help: Optional[str] = None
|
||||
help_heading: Optional[str] = None
|
||||
conflict: Optional[str] = None
|
||||
append: bool = False
|
||||
cli_only: bool = False
|
||||
|
|
@ -32,6 +33,8 @@ class Option:
|
|||
s += "\nvalue_parser: " + self.value_parser
|
||||
if self.help is not None:
|
||||
s += "\nhelp: " + self.help
|
||||
if self.help_heading is not None:
|
||||
s += "\nhelp_heading: " + self.help_heading
|
||||
if self.conflict is not None:
|
||||
s += "\nconflict: " + " ".join(self.conflict)
|
||||
if self.append:
|
||||
|
|
@ -55,6 +58,7 @@ class Option:
|
|||
value_default = None
|
||||
value_parser = None
|
||||
help = None
|
||||
help_heading = None
|
||||
conflict = None
|
||||
append = False
|
||||
cli_only = False
|
||||
|
|
@ -86,6 +90,8 @@ class Option:
|
|||
help = v
|
||||
if help.endswith("."):
|
||||
raise Exception(f"{name}: help should not end with period")
|
||||
elif key == "help_heading":
|
||||
help_heading = v
|
||||
elif key == "conflict":
|
||||
conflict = [a.strip() for a in v.split(" ")]
|
||||
elif key == "multi":
|
||||
|
|
@ -135,6 +141,7 @@ class Option:
|
|||
value_default=value_default,
|
||||
value_parser=value_parser,
|
||||
help=help,
|
||||
help_heading=help_heading,
|
||||
conflict=conflict,
|
||||
append=append,
|
||||
cli_only=cli_only,
|
||||
|
|
@ -145,8 +152,6 @@ class Option:
|
|||
|
||||
@staticmethod
|
||||
def parse_file(filename: str) -> "Option":
|
||||
import sys
|
||||
|
||||
# sys.stderr.write("Parsing " + filename + "\n")
|
||||
s = open(filename).read()
|
||||
return Option.parse(s)
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ value: SECONDS
|
|||
value_default: 300
|
||||
value_parser: u64
|
||||
help: Maximum time allowed for connection
|
||||
help_heading: HTTP options
|
||||
---
|
||||
Maximum time in seconds that you allow Hurl’s connection to take.
|
||||
|
||||
|
|
@ -33,6 +34,7 @@ See also -m, --max-time.
|
|||
value_default="300",
|
||||
value_parser="u64",
|
||||
help="Maximum time allowed for connection",
|
||||
help_heading="HTTP options",
|
||||
conflict=None,
|
||||
append=False,
|
||||
deprecated=False,
|
||||
|
|
@ -47,6 +49,7 @@ See also -m, --max-time.
|
|||
long: connect-to
|
||||
value: HOST1:PORT1:HOST2:PORT2
|
||||
help: For a request to the given HOST1:PORT1 pair, connect to HOST2:PORT2 instead
|
||||
help_heading: HTTP options
|
||||
multi: append
|
||||
---
|
||||
For a request to the given HOST1:PORT1 pair, connect to HOST2:PORT2 instead.
|
||||
|
|
@ -62,6 +65,7 @@ For a request to the given HOST1:PORT1 pair, connect to HOST2:PORT2 instead.
|
|||
value_default=None,
|
||||
value_parser=None,
|
||||
help="For a request to the given HOST1:PORT1 pair, connect to HOST2:PORT2 instead",
|
||||
help_heading="HTTP options",
|
||||
conflict=None,
|
||||
append=True,
|
||||
deprecated=False,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,127 @@
|
|||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
# functions
|
||||
function init_terminal_colors(){
|
||||
color_red=$(echo -ne "\033[1;31m")
|
||||
color_green=$(echo -ne "\033[1;32m")
|
||||
color_yellow=$(echo -ne "\033[1;33m")
|
||||
color_cyan=$(echo -ne "\033[1;36m")
|
||||
color_reset=$(echo -ne "\033[0m")
|
||||
}
|
||||
|
||||
function log(){
|
||||
color="$1"
|
||||
title="$2"
|
||||
message="$3"
|
||||
if basename "$0" >/dev/null 2>&1 ; then
|
||||
parent=$(basename "$0")
|
||||
else
|
||||
parent="."
|
||||
fi
|
||||
echo "${color}${parent}: ${title}: ${message}${color_reset}"
|
||||
}
|
||||
|
||||
function log_error(){
|
||||
title="$1"
|
||||
message="$2"
|
||||
log "${color_red}" "${title}" "${message}"
|
||||
}
|
||||
|
||||
function usage(){
|
||||
echo
|
||||
echo "Usage: $(basename "$0") [Options]..."
|
||||
echo
|
||||
echo "Options: #mandatory #optional"
|
||||
echo
|
||||
echo " --help #optional"
|
||||
echo " This help text"
|
||||
echo
|
||||
echo " --dest-dir #optional"
|
||||
echo " path where actual dir is copied to convert hurl files to CRLF"
|
||||
echo " : default value: /tmp/hurl_tmp"
|
||||
echo " : example: --dest-dir /tmp/my_tmp_dir"
|
||||
echo
|
||||
}
|
||||
|
||||
function consume_args(){
|
||||
dest_dir=/tmp/hurl_tmp
|
||||
while [[ $# -gt 0 ]] ; do
|
||||
case "$1" in
|
||||
--help)
|
||||
usage
|
||||
exit 0
|
||||
;;
|
||||
--dest-dir)
|
||||
dest_dir=$2
|
||||
shift
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
log_error "option $1" "is unknown"
|
||||
usage >&2
|
||||
return 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
function prerequisites(){
|
||||
if ! command -V unix2dos --version >/dev/null 2>&1 ; then
|
||||
log_error "Prerequisites" "Please install dos2unix first."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
function is_not_bad_format(){
|
||||
file="$1"
|
||||
if (file "${file}" | grep "very short file" >/dev/null 2>&1) ; then
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
function is_not_assert_body(){
|
||||
file="$1"
|
||||
if (sed '/^HTTP/{N;s/\n/ /;}' "${file}" | grep -E "^HTTP.*\`\`\`" > /dev/null 2>&1) ; then
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
# main
|
||||
init_terminal_colors
|
||||
prerequisites
|
||||
consume_args "$@"
|
||||
echo "${color_cyan}# Clone this dir ${PWD} to ${dest_dir}${color_reset}"
|
||||
echo
|
||||
if cp -frp . "${dest_dir}" ; then
|
||||
echo " - current dir ${PWD} : ${color_green}copied to ${dest_dir}${color_reset}"
|
||||
else
|
||||
echo " - current dir ${PWD} : ${color_red}copied to ${dest_dir}${color_reset}"
|
||||
exit 1
|
||||
fi
|
||||
cp -frp . "${dest_dir}"
|
||||
echo
|
||||
echo "${color_cyan}# Unix2dos all *.hurl files in ${dest_dir}${color_reset}"
|
||||
echo
|
||||
exit_code=0
|
||||
while read -r hurl_file ; do
|
||||
if is_not_bad_format "${hurl_file}" ; then
|
||||
if is_not_assert_body "${hurl_file}" ; then
|
||||
if unix2dos "${hurl_file}" ; then
|
||||
echo " - ${hurl_file} : ${color_green}converted to dos${color_reset}"
|
||||
else
|
||||
echo " - ${hurl_file} : ${color_red}not converted to dos${color_reset}"
|
||||
exit_code=1
|
||||
fi
|
||||
else
|
||||
echo " - ${hurl_file} : ${color_yellow}not converted to dos because it contains body implicit asserts${color_reset}"
|
||||
fi
|
||||
else
|
||||
echo " - ${hurl_file} : ${color_yellow}not converted (bad file format)${color_reset}"
|
||||
fi
|
||||
done < <(find "${dest_dir}/integration/hurl" -name "*.hurl")
|
||||
exit "${exit_code}"
|
||||
|
|
@ -7,7 +7,7 @@ $actual_dir=(Get-Location).Path
|
|||
$project_root_path=(Resolve-Path -LiteralPath $PSScriptRoot\..\..).path
|
||||
|
||||
# install python libs
|
||||
python3 -m pip install --requirement $project_root_path\bin\requirements-frozen.txt
|
||||
python -m pip install --requirement $project_root_path\bin\requirements-frozen.txt
|
||||
if ($LASTEXITCODE) { Throw }
|
||||
|
||||
# start mock servers
|
||||
|
|
@ -19,17 +19,17 @@ if ($LASTEXITCODE) { Throw }
|
|||
sleep 5
|
||||
if (netstat -ano | Select-String LISTENING | Select-string 127.0.0.1:8000) {write-host -foregroundcolor Green "server is up"} else {write-host -foregroundcolor Red "server is down" ; cat build\server.log ; exit 1}
|
||||
|
||||
python ssl/server.py 8001 ssl/server/cert.selfsigned.pem false 2>&1 > build\server-ssl-selfsigned.log &
|
||||
python tests_ssl/ssl_server.py 8001 tests_ssl/certs/server/cert.selfsigned.pem false 2>&1 > build\server-ssl-selfsigned.log &
|
||||
if ($LASTEXITCODE) { Throw }
|
||||
sleep 5
|
||||
if (netstat -ano | Select-String LISTENING | Select-string 127.0.0.1:8001) {write-host -foregroundcolor Green "server-ssl-selfsigned up"} else {write-host -foregroundcolor Red "server-ssl-selfsigned is down" ; cat build\server-ssl-selfsigned.log ; exit 1}
|
||||
|
||||
python ssl/server.py 8002 ssl/server/cert.pem false 2>&1 > build\server-ssl-signedbyca.log &
|
||||
python tests_ssl/ssl_server.py 8002 tests_ssl/certs/server/cert.pem false 2>&1 > build\server-ssl-signedbyca.log &
|
||||
if ($LASTEXITCODE) { Throw }
|
||||
sleep 5
|
||||
if (netstat -ano | Select-String LISTENING | Select-string 127.0.0.1:8002) {write-host -foregroundcolor Green "server-ssl-signedbyca up"} else {write-host -foregroundcolor Red "server-ssl-signedbyca is down" ; cat build\server-ssl-signedbyca.log ; exit 1}
|
||||
|
||||
python ssl/server.py 8003 ssl/server/cert.pem true 2>&1 > build\server-ssl-client-authent.log &
|
||||
python tests_ssl/ssl_server.py 8003 tests_ssl/certs/server/cert.pem true 2>&1 > build\server-ssl-client-authent.log &
|
||||
if ($LASTEXITCODE) { Throw }
|
||||
sleep 5
|
||||
if (netstat -ano | Select-String LISTENING | Select-string 127.0.0.1:8003) {write-host -foregroundcolor Green "server-ssl-client-authent up"} else {write-host -foregroundcolor Red "server-ssl-client-authent is down" ; cat build\server-ssl-client-authent.log ; exit 1}
|
||||
|
|
|
|||
|
|
@ -77,21 +77,21 @@ echo -e "\n------------------ Starting server.py"
|
|||
python3 server.py > build/server.log 2>&1 &
|
||||
check_listen_port "server.py" 8000 || cat_and_exit_err build/server.log
|
||||
|
||||
echo -e "\n------------------ Starting ssl/server.py (Self-signed certificate)"
|
||||
python3 ssl/server.py 8001 ssl/server/cert.selfsigned.pem false > build/server-ssl-selfsigned.log 2>&1 &
|
||||
check_listen_port "ssl/server.py" 8001 || cat_and_exit_err build/server-ssl-selfsigned.log
|
||||
echo -e "\n------------------ Starting tests_ssl/ssl_server.py (Self-signed certificate)"
|
||||
python3 tests_ssl/ssl_server.py 8001 tests_ssl/certs/server/cert.selfsigned.pem false > build/server-ssl-selfsigned.log 2>&1 &
|
||||
check_listen_port "tests_ssl/ssl_server.py" 8001 || cat_and_exit_err build/server-ssl-selfsigned.log
|
||||
|
||||
echo -e "\n------------------ Starting ssl/server.py (Signed by CA)"
|
||||
python3 ssl/server.py 8002 ssl/server/cert.pem false > build/server-ssl-signedbyca.log 2>&1 &
|
||||
check_listen_port "ssl/server.py" 8002 || cat_and_exit_err build/server-ssl-signedbyca.log
|
||||
echo -e "\n------------------ Starting tests_ssl/ssl_server.py (Signed by CA)"
|
||||
python3 tests_ssl/ssl_server.py 8002 tests_ssl/certs/server/cert.pem false > build/server-ssl-signedbyca.log 2>&1 &
|
||||
check_listen_port "tests_ssl/ssl_server.py" 8002 || cat_and_exit_err build/server-ssl-signedbyca.log
|
||||
|
||||
echo -e "\n------------------ Starting ssl/server.py (Self-signed certificate + Client certificate authentication)"
|
||||
python3 ssl/server.py 8003 ssl/server/cert.selfsigned.pem true > build/server-ssl-client-authent.log 2>&1 &
|
||||
check_listen_port "ssl/server.py" 8003 || cat_and_exit_err build/server-ssl-client-authent.log
|
||||
echo -e "\n------------------ Starting ssl/ssl_server.py (Self-signed certificate + Client certificate authentication)"
|
||||
python3 tests_ssl/ssl_server.py 8003 tests_ssl/certs/server/cert.selfsigned.pem true > build/server-ssl-client-authent.log 2>&1 &
|
||||
check_listen_port "tests_ssl/ssl_server.py" 8003 || cat_and_exit_err build/server-ssl-client-authent.log
|
||||
|
||||
echo -e "\n------------------ Starting unix_socket/server.py"
|
||||
python3 unix_socket/server.py > build/server-unix-socket.log 2>&1 &
|
||||
check_unix_socket "unix_socket/server.py" build/unix_socket.sock "GET /hello HTTP/1.0\r\n"
|
||||
echo -e "\n------------------ Starting tests_unix_socket/unix_socket_server.py"
|
||||
python3 tests_unix_socket/unix_socket_server.py > build/server-unix-socket.log 2>&1 &
|
||||
check_unix_socket "tests_unix_socket/unix_socket_server.py" build/unix_socket.sock "GET /hello HTTP/1.0\r\n"
|
||||
|
||||
echo -e "\n------------------ Starting squid (proxy)"
|
||||
if [ -f /var/run/squid.pid ] ; then
|
||||
|
|
|
|||
|
|
@ -3,20 +3,15 @@ $ErrorActionPreference = 'Stop'
|
|||
|
||||
write-host -foregroundcolor Cyan "----- unit tests -----"
|
||||
|
||||
# exe dir
|
||||
$original_env_path="$env:Path"
|
||||
|
||||
# lib dir
|
||||
$vcpkg_dir=((Get-command vcpkg).Source | Split-Path)
|
||||
$lib_dir="$vcpkg_dir\installed\x64-windows\bin"
|
||||
|
||||
# link libs
|
||||
$env:Path = "$lib_dir" + ";" + "$original_env_path"
|
||||
$actual_path=$env:Path
|
||||
$vcpkg_dir=(Split-Path -Parent (Get-Command vcpkg).Source) -replace '\\','/'
|
||||
$lib_dir="$vcpkg_dir/installed/x64-windows/bin"
|
||||
$env:VCPKGRS_DYNAMIC=1
|
||||
$env:BINDGEN_EXTRA_CLANG_ARGS="-I$vcpkg_dir/installed/x64-windows/include/libxml2 -v"
|
||||
$env:Path="$lib_dir" + ";" + "$actual_path"
|
||||
|
||||
# execute test units
|
||||
cargo test --release --tests
|
||||
if ($LASTEXITCODE) { Throw }
|
||||
|
||||
# unlink libs
|
||||
$env:Path = "$original_env_path"
|
||||
|
||||
|
|
|
|||
|
|
@ -43,12 +43,10 @@ convert_toml_crates_to_key_value() {
|
|||
|
||||
get_crate_latest_version() {
|
||||
# init args
|
||||
crate_url="$1"
|
||||
crate="$1"
|
||||
|
||||
# get crate latest version
|
||||
crate_object=$(curl -kLs "${crate_url}" || true)
|
||||
crate_max_stable_version=$(echo "${crate_object}" | (jq -r .crate.max_stable_version 2>/dev/null || true))
|
||||
last_version=$(echo "${crate_max_stable_version}" | (grep --extended-regexp --only-matching "^[0-9]*\.[0-9]*\.[0-9]*" || true))
|
||||
last_version=$( (cargo info "${crate}" 2<&1 || true) | (grep "^version: " || true) | cut -d':' -f2 | tr -d ' ' | sed -E 's/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
|
||||
echo "${last_version}"
|
||||
}
|
||||
|
||||
|
|
@ -112,10 +110,9 @@ main() {
|
|||
echo -e "\n--------------------------------------------------------"
|
||||
echo -e "### Crates updates for *${toml_file}*\n"
|
||||
while read -r crate actual_version; do
|
||||
crate_url="${crates_api_root_url}/${crate}"
|
||||
last_version=$(get_crate_latest_version "${crate_url}")
|
||||
last_version=$(get_crate_latest_version "${crate}")
|
||||
if [ -z "${last_version}" ]; then
|
||||
echo "${color_red}runtime error${color_reset}, i could not get last version from ${crate_url}"
|
||||
echo "${color_red}runtime error${color_reset}, i could not get last version for ${crate}"
|
||||
return 1
|
||||
fi
|
||||
echo -n "- ${crate} ${actual_version} "
|
||||
|
|
@ -127,6 +124,7 @@ main() {
|
|||
updated_count=$((updated_count + 1))
|
||||
else
|
||||
update_crate_version_in_toml "${crate}" "${actual_version}" "${last_version}" "${toml_file}"
|
||||
crate_url="${crates_api_root_url}/${crate}"
|
||||
get_crate_github_release_body "${crate_url}" "${last_version}"
|
||||
fi
|
||||
fi
|
||||
|
|
@ -164,4 +162,3 @@ main() {
|
|||
|
||||
# run
|
||||
main "$@"
|
||||
|
||||
|
|
|
|||
|
|
@ -25,15 +25,16 @@ _hurl() {
|
|||
'*--connect-to[For a request to the given HOST1:PORT1 pair, connect to HOST2:PORT2 instead]: :' \
|
||||
'--continue-on-error[Continue executing requests even if an error occurs]' \
|
||||
'(-b --cookie)'{-b,--cookie}'[Read cookies from FILE]: :_files' \
|
||||
'(-c --cookie-jar)'{-c,--cookie-jar}'[Write cookies to FILE after running the session (only for one session)]: :_files' \
|
||||
'--delay[Sets delay before each request]: :' \
|
||||
'(-c --cookie-jar)'{-c,--cookie-jar}'[Write cookies to FILE after running the session]: :_files' \
|
||||
'--curl[Export each request to a list of curl commands]: :_files' \
|
||||
'--delay[Sets delay before each request (aka sleep)]: :' \
|
||||
'--error-format[Control the format of error messages]: :' \
|
||||
'--fail-at-end[Fail at end]' \
|
||||
'--file-root[Set root directory to import files \[default: input file directory\]]: :' \
|
||||
'(-L --location)'{-L,--location}'[Follow redirects]' \
|
||||
'--location-trusted[Follow redirects but allows sending the name + password to all hosts that the site may redirect to]' \
|
||||
'--from-entry[Execute Hurl file from ENTRY_NUMBER (starting at 1)]: :' \
|
||||
'*--glob[Specify input files that match the given GLOB. Multiple glob flags may be used]: :' \
|
||||
'(-H --header)*'{-H,--header}'[Pass custom header(s) to server]: :' \
|
||||
'(-0 --http1.0)'{-0,--http1.0}'[Tell Hurl to use HTTP version 1.0]' \
|
||||
'--http1.1[Tell Hurl to use HTTP version 1.1]' \
|
||||
'--http2[Tell Hurl to use HTTP version 2]' \
|
||||
|
|
@ -44,20 +45,27 @@ _hurl() {
|
|||
'--interactive[Turn on interactive mode]' \
|
||||
'(-4 --ipv4)'{-4,--ipv4}'[Tell Hurl to use IPv4 addresses only when resolving host names, and not for example try IPv6]' \
|
||||
'(-6 --ipv6)'{-6,--ipv6}'[Tell Hurl to use IPv6 addresses only when resolving host names, and not for example try IPv4]' \
|
||||
'--jobs[Maximum number of parallel jobs]: :' \
|
||||
'--jobs[Maximum number of parallel jobs, 0 to disable parallel execution]: :' \
|
||||
'--json[Output each Hurl file result to JSON]' \
|
||||
'--max-filesize[Specify the maximum size (in bytes) of a file to download]: :' \
|
||||
'--limit-rate[Specify the maximum transfer rate in bytes/second, for both downloads and uploads]: :' \
|
||||
'--max-filesize[Specify the maximum size in bytes of a file to download]: :' \
|
||||
'--max-redirs[Maximum number of redirects allowed, -1 for unlimited redirects]: :' \
|
||||
'(-m --max-time)'{-m,--max-time}'[Maximum time allowed for the transfer]: :' \
|
||||
'--negotiate[Tell Hurl to use Negotiate (SPNEGO) authentication]' \
|
||||
'(-n --netrc)'{-n,--netrc}'[Must read .netrc for username and password]' \
|
||||
'--netrc-file[Specify FILE for .netrc]: :_files' \
|
||||
'--netrc-optional[Use either .netrc or the URL]' \
|
||||
'--no-color[Do not colorize output]' \
|
||||
'--no-output[Suppress output. By default, Hurl outputs the body of the last response]' \
|
||||
'--no-pretty[Do not prettify response output]' \
|
||||
'--noproxy[List of hosts which do not use proxy]: :' \
|
||||
'--ntlm[Tell Hurl to use NTLM authentication]' \
|
||||
'(-o --output)'{-o,--output}'[Write to FILE instead of stdout]: :_files' \
|
||||
'--parallel[Run files in parallel (default in test mode)]' \
|
||||
'--path-as-is[Tell Hurl to not handle sequences of /../ or /./ in the given URL path]' \
|
||||
'--pinnedpubkey[Public key to verify peer against]: :' \
|
||||
'--pretty[Prettify JSON response output]' \
|
||||
'--progress-bar[Display a progress bar in test mode]' \
|
||||
'(-x --proxy)'{-x,--proxy}'[Use proxy on given PROTOCOL/HOST/PORT]: :' \
|
||||
'--repeat[Repeat the input files sequence NUM times, -1 for infinite loop]: :' \
|
||||
'--report-html[Generate HTML report to DIR]: :' \
|
||||
|
|
@ -67,6 +75,8 @@ _hurl() {
|
|||
'*--resolve[Provide a custom address for a specific HOST and PORT pair]: :' \
|
||||
'--retry[Maximum number of retries, 0 for no retries, -1 for unlimited retries]: :' \
|
||||
'--retry-interval[Interval in milliseconds before a retry]: :' \
|
||||
'*--secret[Define a variable which value is secret]: :' \
|
||||
'*--secrets-file[Define a secrets file in which you define your secrets]: :_files' \
|
||||
'--ssl-no-revoke[(Windows) Tell Hurl to disable certificate revocation checks]' \
|
||||
'--test[Activate test mode (use parallel execution)]' \
|
||||
'--to-entry[Execute Hurl file to ENTRY_NUMBER (starting at 1)]: :' \
|
||||
|
|
|
|||
|
|
@ -30,15 +30,16 @@ Register-ArgumentCompleter -Native -CommandName 'hurl' -ScriptBlock {
|
|||
[CompletionResult]::new('--connect-to', 'connect-to', [CompletionResultType]::ParameterName, 'For a request to the given HOST1:PORT1 pair, connect to HOST2:PORT2 instead')
|
||||
[CompletionResult]::new('--continue-on-error', 'continue-on-error', [CompletionResultType]::ParameterName, 'Continue executing requests even if an error occurs')
|
||||
[CompletionResult]::new('--cookie', 'cookie', [CompletionResultType]::ParameterName, 'Read cookies from FILE')
|
||||
[CompletionResult]::new('--cookie-jar', 'cookie-jar', [CompletionResultType]::ParameterName, 'Write cookies to FILE after running the session (only for one session)')
|
||||
[CompletionResult]::new('--delay', 'delay', [CompletionResultType]::ParameterName, 'Sets delay before each request')
|
||||
[CompletionResult]::new('--cookie-jar', 'cookie-jar', [CompletionResultType]::ParameterName, 'Write cookies to FILE after running the session')
|
||||
[CompletionResult]::new('--curl', 'curl', [CompletionResultType]::ParameterName, 'Export each request to a list of curl commands')
|
||||
[CompletionResult]::new('--delay', 'delay', [CompletionResultType]::ParameterName, 'Sets delay before each request (aka sleep)')
|
||||
[CompletionResult]::new('--error-format', 'error-format', [CompletionResultType]::ParameterName, 'Control the format of error messages')
|
||||
[CompletionResult]::new('--fail-at-end', 'fail-at-end', [CompletionResultType]::ParameterName, 'Fail at end')
|
||||
[CompletionResult]::new('--file-root', 'file-root', [CompletionResultType]::ParameterName, 'Set root directory to import files [default: input file directory]')
|
||||
[CompletionResult]::new('--location', 'location', [CompletionResultType]::ParameterName, 'Follow redirects')
|
||||
[CompletionResult]::new('--location-trusted', 'location-trusted', [CompletionResultType]::ParameterName, 'Follow redirects but allows sending the name + password to all hosts that the site may redirect to')
|
||||
[CompletionResult]::new('--from-entry', 'from-entry', [CompletionResultType]::ParameterName, 'Execute Hurl file from ENTRY_NUMBER (starting at 1)')
|
||||
[CompletionResult]::new('--glob', 'glob', [CompletionResultType]::ParameterName, 'Specify input files that match the given GLOB. Multiple glob flags may be used')
|
||||
[CompletionResult]::new('--header', 'header', [CompletionResultType]::ParameterName, 'Pass custom header(s) to server')
|
||||
[CompletionResult]::new('--http1.0', 'http1.0', [CompletionResultType]::ParameterName, 'Tell Hurl to use HTTP version 1.0')
|
||||
[CompletionResult]::new('--http1.1', 'http1.1', [CompletionResultType]::ParameterName, 'Tell Hurl to use HTTP version 1.1')
|
||||
[CompletionResult]::new('--http2', 'http2', [CompletionResultType]::ParameterName, 'Tell Hurl to use HTTP version 2')
|
||||
|
|
@ -49,20 +50,27 @@ Register-ArgumentCompleter -Native -CommandName 'hurl' -ScriptBlock {
|
|||
[CompletionResult]::new('--interactive', 'interactive', [CompletionResultType]::ParameterName, 'Turn on interactive mode')
|
||||
[CompletionResult]::new('--ipv4', 'ipv4', [CompletionResultType]::ParameterName, 'Tell Hurl to use IPv4 addresses only when resolving host names, and not for example try IPv6')
|
||||
[CompletionResult]::new('--ipv6', 'ipv6', [CompletionResultType]::ParameterName, 'Tell Hurl to use IPv6 addresses only when resolving host names, and not for example try IPv4')
|
||||
[CompletionResult]::new('--jobs', 'jobs', [CompletionResultType]::ParameterName, 'Maximum number of parallel jobs')
|
||||
[CompletionResult]::new('--jobs', 'jobs', [CompletionResultType]::ParameterName, 'Maximum number of parallel jobs, 0 to disable parallel execution')
|
||||
[CompletionResult]::new('--json', 'json', [CompletionResultType]::ParameterName, 'Output each Hurl file result to JSON')
|
||||
[CompletionResult]::new('--max-filesize', 'max-filesize', [CompletionResultType]::ParameterName, 'Specify the maximum size (in bytes) of a file to download')
|
||||
[CompletionResult]::new('--limit-rate', 'limit-rate', [CompletionResultType]::ParameterName, 'Specify the maximum transfer rate in bytes/second, for both downloads and uploads')
|
||||
[CompletionResult]::new('--max-filesize', 'max-filesize', [CompletionResultType]::ParameterName, 'Specify the maximum size in bytes of a file to download')
|
||||
[CompletionResult]::new('--max-redirs', 'max-redirs', [CompletionResultType]::ParameterName, 'Maximum number of redirects allowed, -1 for unlimited redirects')
|
||||
[CompletionResult]::new('--max-time', 'max-time', [CompletionResultType]::ParameterName, 'Maximum time allowed for the transfer')
|
||||
[CompletionResult]::new('--negotiate', 'negotiate', [CompletionResultType]::ParameterName, 'Tell Hurl to use Negotiate (SPNEGO) authentication')
|
||||
[CompletionResult]::new('--netrc', 'netrc', [CompletionResultType]::ParameterName, 'Must read .netrc for username and password')
|
||||
[CompletionResult]::new('--netrc-file', 'netrc-file', [CompletionResultType]::ParameterName, 'Specify FILE for .netrc')
|
||||
[CompletionResult]::new('--netrc-optional', 'netrc-optional', [CompletionResultType]::ParameterName, 'Use either .netrc or the URL')
|
||||
[CompletionResult]::new('--no-color', 'no-color', [CompletionResultType]::ParameterName, 'Do not colorize output')
|
||||
[CompletionResult]::new('--no-output', 'no-output', [CompletionResultType]::ParameterName, 'Suppress output. By default, Hurl outputs the body of the last response')
|
||||
[CompletionResult]::new('--no-pretty', 'no-pretty', [CompletionResultType]::ParameterName, 'Do not prettify response output')
|
||||
[CompletionResult]::new('--noproxy', 'noproxy', [CompletionResultType]::ParameterName, 'List of hosts which do not use proxy')
|
||||
[CompletionResult]::new('--ntlm', 'ntlm', [CompletionResultType]::ParameterName, 'Tell Hurl to use NTLM authentication')
|
||||
[CompletionResult]::new('--output', 'output', [CompletionResultType]::ParameterName, 'Write to FILE instead of stdout')
|
||||
[CompletionResult]::new('--parallel', 'parallel', [CompletionResultType]::ParameterName, 'Run files in parallel (default in test mode)')
|
||||
[CompletionResult]::new('--path-as-is', 'path-as-is', [CompletionResultType]::ParameterName, 'Tell Hurl to not handle sequences of /../ or /./ in the given URL path')
|
||||
[CompletionResult]::new('--pinnedpubkey', 'pinnedpubkey', [CompletionResultType]::ParameterName, 'Public key to verify peer against')
|
||||
[CompletionResult]::new('--pretty', 'pretty', [CompletionResultType]::ParameterName, 'Prettify JSON response output')
|
||||
[CompletionResult]::new('--progress-bar', 'progress-bar', [CompletionResultType]::ParameterName, 'Display a progress bar in test mode')
|
||||
[CompletionResult]::new('--proxy', 'proxy', [CompletionResultType]::ParameterName, 'Use proxy on given PROTOCOL/HOST/PORT')
|
||||
[CompletionResult]::new('--repeat', 'repeat', [CompletionResultType]::ParameterName, 'Repeat the input files sequence NUM times, -1 for infinite loop')
|
||||
[CompletionResult]::new('--report-html', 'report-html', [CompletionResultType]::ParameterName, 'Generate HTML report to DIR')
|
||||
|
|
@ -72,6 +80,8 @@ Register-ArgumentCompleter -Native -CommandName 'hurl' -ScriptBlock {
|
|||
[CompletionResult]::new('--resolve', 'resolve', [CompletionResultType]::ParameterName, 'Provide a custom address for a specific HOST and PORT pair')
|
||||
[CompletionResult]::new('--retry', 'retry', [CompletionResultType]::ParameterName, 'Maximum number of retries, 0 for no retries, -1 for unlimited retries')
|
||||
[CompletionResult]::new('--retry-interval', 'retry-interval', [CompletionResultType]::ParameterName, 'Interval in milliseconds before a retry')
|
||||
[CompletionResult]::new('--secret', 'secret', [CompletionResultType]::ParameterName, 'Define a variable which value is secret')
|
||||
[CompletionResult]::new('--secrets-file', 'secrets-file', [CompletionResultType]::ParameterName, 'Define a secrets file in which you define your secrets')
|
||||
[CompletionResult]::new('--ssl-no-revoke', 'ssl-no-revoke', [CompletionResultType]::ParameterName, '(Windows) Tell Hurl to disable certificate revocation checks')
|
||||
[CompletionResult]::new('--test', 'test', [CompletionResultType]::ParameterName, 'Activate test mode (use parallel execution)')
|
||||
[CompletionResult]::new('--to-entry', 'to-entry', [CompletionResultType]::ParameterName, 'Execute Hurl file to ENTRY_NUMBER (starting at 1)')
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ _hurlfmt() {
|
|||
_arguments "${_arguments_options[@]}" \
|
||||
'--check[Run in check mode]' \
|
||||
'--color[Colorize Output]' \
|
||||
'--format[Specify output format: hurl, json or html]: :' \
|
||||
'--in-place[Modify files in place]' \
|
||||
'--in[Specify input format: hurl or curl]: :' \
|
||||
'--no-color[Do not colorize output]' \
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ Register-ArgumentCompleter -Native -CommandName 'hurlfmt' -ScriptBlock {
|
|||
'hurlfmt'
|
||||
{[CompletionResult]::new('--check', 'check', [CompletionResultType]::ParameterName, 'Run in check mode')
|
||||
[CompletionResult]::new('--color', 'color', [CompletionResultType]::ParameterName, 'Colorize Output')
|
||||
[CompletionResult]::new('--format', 'format', [CompletionResultType]::ParameterName, 'Specify output format: hurl, json or html')
|
||||
[CompletionResult]::new('--in-place', 'in-place', [CompletionResultType]::ParameterName, 'Modify files in place')
|
||||
[CompletionResult]::new('--in', 'in', [CompletionResultType]::ParameterName, 'Specify input format: hurl or curl')
|
||||
[CompletionResult]::new('--no-color', 'no-color', [CompletionResultType]::ParameterName, 'Do not colorize output')
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
# hurl(1) completion -*- shell-script -*-
|
||||
_hurl()
|
||||
{
|
||||
local cur prev words cword
|
||||
_init_completion || return
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
|
||||
if [[ $cur == -* ]]; then
|
||||
COMPREPLY=($(compgen -W '--aws-sigv4 --cacert --cert --key --color --compressed --connect-timeout --connect-to --continue-on-error --cookie --cookie-jar --delay --error-format --fail-at-end --file-root --location --location-trusted --from-entry --glob --http1.0 --http1.1 --http2 --http3 --ignore-asserts --include --insecure --interactive --ipv4 --ipv6 --jobs --json --max-filesize --max-redirs --max-time --netrc --netrc-file --netrc-optional --no-color --no-output --noproxy --output --parallel --path-as-is --proxy --repeat --report-html --report-json --report-junit --report-tap --resolve --retry --retry-interval --ssl-no-revoke --test --to-entry --unix-socket --user --user-agent --variable --variables-file --verbose --very-verbose --help --version' -- "$cur"))
|
||||
COMPREPLY=($(compgen -W '--aws-sigv4 --cacert --cert --key --color --compressed --connect-timeout --connect-to --continue-on-error --cookie --cookie-jar --curl --delay --error-format --file-root --location --location-trusted --from-entry --glob --header --http1.0 --http1.1 --http2 --http3 --ignore-asserts --include --insecure --interactive --ipv4 --ipv6 --jobs --json --limit-rate --max-filesize --max-redirs --max-time --negotiate --netrc --netrc-file --netrc-optional --no-color --no-output --no-pretty --noproxy --ntlm --output --parallel --path-as-is --pinnedpubkey --pretty --progress-bar --proxy --repeat --report-html --report-json --report-junit --report-tap --resolve --retry --retry-interval --secret --secrets-file --ssl-no-revoke --test --to-entry --unix-socket --user --user-agent --variable --variables-file --verbose --very-verbose --help --version' -- "$cur"))
|
||||
return
|
||||
fi
|
||||
|
||||
# Generate filenames by default
|
||||
COMPREPLY=($(compgen -f "$cur" | sort))
|
||||
} &&
|
||||
complete -F _hurl hurl
|
||||
# ex: filetype=sh
|
||||
|
|
|
|||
|
|
@ -8,15 +8,16 @@ complete -c hurl -l connect-timeout -d 'Maximum time allowed for connection'
|
|||
complete -c hurl -l connect-to -d 'For a request to the given HOST1:PORT1 pair, connect to HOST2:PORT2 instead'
|
||||
complete -c hurl -l continue-on-error -d 'Continue executing requests even if an error occurs'
|
||||
complete -c hurl -l cookie -d 'Read cookies from FILE'
|
||||
complete -c hurl -l cookie-jar -d 'Write cookies to FILE after running the session (only for one session)'
|
||||
complete -c hurl -l delay -d 'Sets delay before each request'
|
||||
complete -c hurl -l cookie-jar -d 'Write cookies to FILE after running the session'
|
||||
complete -c hurl -l curl -d 'Export each request to a list of curl commands'
|
||||
complete -c hurl -l delay -d 'Sets delay before each request (aka sleep)'
|
||||
complete -c hurl -l error-format -d 'Control the format of error messages'
|
||||
complete -c hurl -l fail-at-end -d 'Fail at end'
|
||||
complete -c hurl -l file-root -d 'Set root directory to import files [default: input file directory]'
|
||||
complete -c hurl -l location -d 'Follow redirects'
|
||||
complete -c hurl -l location-trusted -d 'Follow redirects but allows sending the name + password to all hosts that the site may redirect to'
|
||||
complete -c hurl -l from-entry -d 'Execute Hurl file from ENTRY_NUMBER (starting at 1)'
|
||||
complete -c hurl -l glob -d 'Specify input files that match the given GLOB. Multiple glob flags may be used'
|
||||
complete -c hurl -l header -d 'Pass custom header(s) to server'
|
||||
complete -c hurl -l http1.0 -d 'Tell Hurl to use HTTP version 1.0'
|
||||
complete -c hurl -l http1.1 -d 'Tell Hurl to use HTTP version 1.1'
|
||||
complete -c hurl -l http2 -d 'Tell Hurl to use HTTP version 2'
|
||||
|
|
@ -27,20 +28,27 @@ complete -c hurl -l insecure -d 'Allow insecure SSL connections'
|
|||
complete -c hurl -l interactive -d 'Turn on interactive mode'
|
||||
complete -c hurl -l ipv4 -d 'Tell Hurl to use IPv4 addresses only when resolving host names, and not for example try IPv6'
|
||||
complete -c hurl -l ipv6 -d 'Tell Hurl to use IPv6 addresses only when resolving host names, and not for example try IPv4'
|
||||
complete -c hurl -l jobs -d 'Maximum number of parallel jobs'
|
||||
complete -c hurl -l jobs -d 'Maximum number of parallel jobs, 0 to disable parallel execution'
|
||||
complete -c hurl -l json -d 'Output each Hurl file result to JSON'
|
||||
complete -c hurl -l max-filesize -d 'Specify the maximum size (in bytes) of a file to download'
|
||||
complete -c hurl -l limit-rate -d 'Specify the maximum transfer rate in bytes/second, for both downloads and uploads'
|
||||
complete -c hurl -l max-filesize -d 'Specify the maximum size in bytes of a file to download'
|
||||
complete -c hurl -l max-redirs -d 'Maximum number of redirects allowed, -1 for unlimited redirects'
|
||||
complete -c hurl -l max-time -d 'Maximum time allowed for the transfer'
|
||||
complete -c hurl -l negotiate -d 'Tell Hurl to use Negotiate (SPNEGO) authentication'
|
||||
complete -c hurl -l netrc -d 'Must read .netrc for username and password'
|
||||
complete -c hurl -l netrc-file -d 'Specify FILE for .netrc'
|
||||
complete -c hurl -l netrc-optional -d 'Use either .netrc or the URL'
|
||||
complete -c hurl -l no-color -d 'Do not colorize output'
|
||||
complete -c hurl -l no-output -d 'Suppress output. By default, Hurl outputs the body of the last response'
|
||||
complete -c hurl -l no-pretty -d 'Do not prettify response output'
|
||||
complete -c hurl -l noproxy -d 'List of hosts which do not use proxy'
|
||||
complete -c hurl -l ntlm -d 'Tell Hurl to use NTLM authentication'
|
||||
complete -c hurl -l output -d 'Write to FILE instead of stdout'
|
||||
complete -c hurl -l parallel -d 'Run files in parallel (default in test mode)'
|
||||
complete -c hurl -l path-as-is -d 'Tell Hurl to not handle sequences of /../ or /./ in the given URL path'
|
||||
complete -c hurl -l pinnedpubkey -d 'Public key to verify peer against'
|
||||
complete -c hurl -l pretty -d 'Prettify JSON response output'
|
||||
complete -c hurl -l progress-bar -d 'Display a progress bar in test mode'
|
||||
complete -c hurl -l proxy -d 'Use proxy on given PROTOCOL/HOST/PORT'
|
||||
complete -c hurl -l repeat -d 'Repeat the input files sequence NUM times, -1 for infinite loop'
|
||||
complete -c hurl -l report-html -d 'Generate HTML report to DIR'
|
||||
|
|
@ -50,6 +58,8 @@ complete -c hurl -l report-tap -d 'Write a TAP report to FILE'
|
|||
complete -c hurl -l resolve -d 'Provide a custom address for a specific HOST and PORT pair'
|
||||
complete -c hurl -l retry -d 'Maximum number of retries, 0 for no retries, -1 for unlimited retries'
|
||||
complete -c hurl -l retry-interval -d 'Interval in milliseconds before a retry'
|
||||
complete -c hurl -l secret -d 'Define a variable which value is secret'
|
||||
complete -c hurl -l secrets-file -d 'Define a secrets file in which you define your secrets'
|
||||
complete -c hurl -l ssl-no-revoke -d '(Windows) Tell Hurl to disable certificate revocation checks'
|
||||
complete -c hurl -l test -d 'Activate test mode (use parallel execution)'
|
||||
complete -c hurl -l to-entry -d 'Execute Hurl file to ENTRY_NUMBER (starting at 1)'
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
# hurlfmt(1) completion -*- shell-script -*-
|
||||
_hurlfmt()
|
||||
{
|
||||
local cur prev words cword
|
||||
_init_completion || return
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
|
||||
if [[ $cur == -* ]]; then
|
||||
COMPREPLY=($(compgen -W '--check --color --format --in-place --in --no-color --output --out --standalone --help --version' -- "$cur"))
|
||||
COMPREPLY=($(compgen -W '--check --color --in-place --in --no-color --output --out --standalone --help --version' -- "$cur"))
|
||||
return
|
||||
fi
|
||||
|
||||
# Generate filenames by default
|
||||
COMPREPLY=($(compgen -f "$cur" | sort))
|
||||
} &&
|
||||
complete -F _hurlfmt hurlfmt
|
||||
# ex: filetype=sh
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
complete -c hurlfmt -l check -d 'Run in check mode'
|
||||
complete -c hurlfmt -l color -d 'Colorize Output'
|
||||
complete -c hurlfmt -l format -d 'Specify output format: hurl, json or html'
|
||||
complete -c hurlfmt -l in-place -d 'Modify files in place'
|
||||
complete -c hurlfmt -l in -d 'Specify input format: hurl or curl'
|
||||
complete -c hurlfmt -l no-color -d 'Do not colorize output'
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ bin/release/create_tarball.sh linux
|
|||
```
|
||||
bin/release/install_generic_linux_package.sh
|
||||
export PATH="/tmp/hurl-generic-linux:${PATH}"
|
||||
bin/install_python3_venv.sh
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH=/tmp/hurl-python3-venv/bin:$PATH
|
||||
bin/test/test_prerequisites.sh
|
||||
bin/test/test_integ.sh
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
FROM --platform=$TARGETPLATFORM alpine:3.17 AS builder
|
||||
FROM alpine:3.22 AS builder
|
||||
ARG TARGETPLATFORM
|
||||
WORKDIR /tmp/hurl-docker
|
||||
COPY . /tmp/hurl-docker
|
||||
|
|
@ -11,7 +11,7 @@ RUN apk add --no-cache bash git && \
|
|||
bash -c "bin/install_rust.sh" && \
|
||||
bash -c "./bin/release/release.sh"
|
||||
|
||||
FROM --platform=$TARGETPLATFORM alpine:3.17 AS runner
|
||||
FROM alpine:3.22 AS runner
|
||||
ARG docker_build_date
|
||||
ARG docker_build_tag
|
||||
LABEL "org.opencontainers.image.source"="https://github.com/Orange-OpenSource/hurl"
|
||||
|
|
@ -27,10 +27,14 @@ LABEL "com.orange.hurl.vendor"="Orange-OpenSource"
|
|||
LABEL "com.orange.hurl.licenses"="Apache-2.0"
|
||||
LABEL "com.orange.hurl.title"="Hurl"
|
||||
LABEL "com.orange.hurl.description"="Hurl is a command line tool that runs HTTP requests defined in a simple plain text format"
|
||||
LABEL "com.orange.hurl.base.name"="alpine:3.17"
|
||||
LABEL "com.orange.hurl.base.name"="alpine:3.21"
|
||||
COPY --from=builder /tmp/hurl-docker/target/release/hurl /usr/bin/
|
||||
COPY --from=builder /tmp/hurl-docker/target/release/hurlfmt /usr/bin/
|
||||
COPY --from=builder /usr/lib/libcurl.so.* /usr/lib/
|
||||
COPY --from=builder /usr/lib/libcares.so.* /usr/lib/
|
||||
COPY --from=builder /usr/lib/libpsl.so.* /usr/lib/
|
||||
COPY --from=builder /usr/lib/libzstd.so.* /usr/lib/
|
||||
COPY --from=builder /usr/lib/libunistring.so.* /usr/lib/
|
||||
COPY --from=builder /usr/lib/libnghttp2.so.* /usr/lib/
|
||||
COPY --from=builder /usr/lib/libbrotli*.so.* /usr/lib/
|
||||
COPY --from=builder /usr/lib/libxml2.so.* /usr/lib/
|
||||
|
|
|
|||
|
|
@ -7,10 +7,14 @@
|
|||
<option name="HEX_PREFIX" value="" />
|
||||
<option name="NUM_POSTFIXES" value="" />
|
||||
</options>
|
||||
<!-- Most used methods -->
|
||||
<keywords keywords="GET;HEAD;POST;PUT;DELETE;CONNECT;DELETE;OPTIONS;TRACE;PATCH;LINK;UNLINK;PURGE;LOCK;UNLOCK;PROPFIND;VIEW" ignore_case="false" />
|
||||
<keywords2 keywords="[Asserts];[BasicAuth];[Captures];[Cookies];[FormParams];[MultipartFormData];[QueryStringParams];[Options]" ignore_case="false" />
|
||||
<keywords3 keywords="certificate;status;url;header;cookie;body;xpath;jsonpath;regex;variable;duration;sha256;md5;bytes;HTTP;HTTP/*;HTTP/1.0;HTTP/1.1;HTTP/2" ignore_case="false"/>
|
||||
<keywords4 keywords="not;<;<=;==;!=;>;>=;startsWith;endsWith;contains;includes;matches;exists;isBoolean;isCollection;isDate;isEmpty;isFloat;isInteger;isIsoDate;isNumber;isString;count;daysAfterNow;daysBeforeNow;decode;format;htmlEscape;htmlUnescape;nth;replace;split;toDate;toInt;urlEncode;urlDecode" ignore_case="false" />
|
||||
<!-- All sections -->
|
||||
<keywords2 keywords="[Asserts];[BasicAuth];[Captures];[Cookies];[Form];[FormParams];[Multipart];[MultipartFormData];[Query];[QueryStringParams];[Options]" ignore_case="false" />
|
||||
<!-- Queries -->
|
||||
<keywords3 keywords="body;bytes;certificate;cookie;duration;header;ip;jsonpath;md5;redirects;regex;sha256;status;url;variable;version;xpath;HTTP;HTTP/1.0;HTTP/1.1;HTTP/2" ignore_case="false"/>
|
||||
<!-- Predicates and filters -->
|
||||
<keywords4 keywords="not;<;<=;==;!=;>;>=;startsWith;endsWith;contains;includes;matches;exists;isBoolean;isCollection;isDate;isEmpty;isFloat;isInteger;isIsoDate;isNumber;isString;isIpv4;isIpv6;base64Decode;base64Encode;base64UrlSafeDecode;base64UrlSafeEncode;count;daysAfterNow;daysBeforeNow;decode;first;format;htmlEscape;htmlUnescape;jsonpath;last;location;nth;regex;replace;replaceRegex;split;toDate;toFloat;toHex;toInt;toString;urlDecode;urlEncode;urlQueryParam;xpath" ignore_case="false" />
|
||||
</highlighting>
|
||||
<extensionMap>
|
||||
<mapping ext="hurl" />
|
||||
|
|
|
|||
|
|
@ -3,10 +3,11 @@
|
|||
Examples:
|
||||
$ python3 contrib/npm/check_archive.py 1.6.1
|
||||
"""
|
||||
import sys
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from urllib import request
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ versatile, it can be used for <b>fetching data</b> and <b>testing HTTP</b> sessi
|
|||
```hurl
|
||||
# Get home:
|
||||
GET https://example.net
|
||||
|
||||
HTTP 200
|
||||
[Captures]
|
||||
csrf_token: xpath "string(//meta[@name='_csrf_token']/@content)"
|
||||
|
|
@ -35,7 +34,6 @@ POST https://example.org/api/tests
|
|||
"id": "4568",
|
||||
"evaluate": true
|
||||
}
|
||||
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
header "X-Frame-Options" == "SAMEORIGIN"
|
||||
|
|
@ -48,7 +46,6 @@ jsonpath "$.id" matches /\d{4}/ # Check the format of the id
|
|||
|
||||
```hurl
|
||||
GET https://example.org
|
||||
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
xpath "normalize-space(//head/title)" == "Hello world!"
|
||||
|
|
|
|||
|
|
@ -19,9 +19,7 @@
|
|||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const crypto = require("crypto");
|
||||
|
||||
const rimraf = require("rimraf");
|
||||
const axios = require("axios");
|
||||
const { Readable } = require('stream');
|
||||
const tar = require("tar");
|
||||
const extract = require("extract-zip");
|
||||
|
||||
|
|
@ -37,50 +35,53 @@ function install(url, dir, checksum) {
|
|||
|
||||
// Install a fresh bin directory.
|
||||
if (fs.existsSync(dir)) {
|
||||
rimraf.sync(dir);
|
||||
}
|
||||
if (!fs.existsSync(dir)) {
|
||||
fs.mkdirSync(dir, { recursive: true });
|
||||
fs.rmSync(dir, {recursive: true});
|
||||
}
|
||||
fs.mkdirSync(dir, {recursive: true});
|
||||
|
||||
axios({url: url, responseType: "stream" })
|
||||
fetch(url)
|
||||
.then(res => {
|
||||
if (!res.ok) {
|
||||
console.error(`Error fetching release ${url}: ${res.statusText}`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
// Check archive extension.
|
||||
const isWindows = url.endsWith(".zip");
|
||||
const isUnixLike = url.endsWith(".tar.gz");
|
||||
if (!isWindows && !isUnixLike) {
|
||||
console.error("Error: unsupported archive type");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const archive = isWindows ? "archive.zip" : "archive.tar.gz";
|
||||
const archivePath = path.join(dir, archive);
|
||||
const fileStream = fs.createWriteStream(archivePath);
|
||||
const readable = Readable.fromWeb(res.body);
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
// Linux, macOS archives are tar.gz files.
|
||||
if (url.endsWith(".tar.gz")) {
|
||||
const archive = path.join(dir, "archive.tar.gz");
|
||||
const sink = res.data.pipe(fs.createWriteStream(archive));
|
||||
sink.on("finish", () => {
|
||||
verifyCheckSum(archive, checksum);
|
||||
tar.x({ strip: 1, C: dir, file: archive });
|
||||
resolve();
|
||||
});
|
||||
sink.on("error", err => reject(err));
|
||||
}
|
||||
// Windows archive is a zip archive.
|
||||
else if (url.endsWith(".zip")) {
|
||||
const archive = path.join(dir, "archive.zip");
|
||||
const sink = res.data.pipe(
|
||||
fs.createWriteStream(archive)
|
||||
);
|
||||
sink.on("finish", () => {
|
||||
verifyCheckSum(archive, checksum);
|
||||
extract(archive, {dir: dir})
|
||||
.then( () => resolve())
|
||||
.catch( err => reject(err));
|
||||
});
|
||||
sink.on("error", err => reject(err));
|
||||
} else {
|
||||
console.error("Error unsupported archive");
|
||||
process.exit(1);
|
||||
}
|
||||
readable.pipe(fileStream)
|
||||
.on("finish", () => {
|
||||
try {
|
||||
verifyCheckSumSync(archivePath, checksum);
|
||||
} catch (e) {
|
||||
return reject(e);
|
||||
}
|
||||
|
||||
const extractor = isWindows
|
||||
? extract(archivePath, { dir })
|
||||
: tar.x({ strip: 1, C: dir, file: archivePath });
|
||||
|
||||
extractor.then(resolve).catch(reject);
|
||||
})
|
||||
.on("error", reject);
|
||||
});
|
||||
})
|
||||
.then(() => {
|
||||
console.log(`Archive has been installed to ${dir}!`);
|
||||
})
|
||||
.catch(e => {
|
||||
console.error(`Error fetching release: ${e.message}`);
|
||||
console.error(`Installation failed: ${e.message}`);
|
||||
process.exit(1);
|
||||
});
|
||||
}
|
||||
|
|
@ -90,7 +91,7 @@ function install(url, dir, checksum) {
|
|||
* @param file input file
|
||||
* @param expectedChecksum expected checksum
|
||||
*/
|
||||
function verifyCheckSum(file, expectedChecksum) {
|
||||
function verifyCheckSumSync(file, expectedChecksum) {
|
||||
const checksum = sha256(file);
|
||||
if (expectedChecksum !== checksum) {
|
||||
console.error(`Downloaded archive checksum didn't match the expected checksum (actual: ${checksum}, expected ${expectedChecksum}`);
|
||||
|
|
@ -108,4 +109,5 @@ function sha256(file) {
|
|||
return crypto.createHash("sha256").update(data).digest("hex").toLowerCase();
|
||||
}
|
||||
|
||||
|
||||
exports.install = install;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
.TH hurl 1 "24 Apr 2024" "hurl 4.3.0" " Hurl Manual"
|
||||
.TH hurl 1 "18 Nov 2025" "hurl 7.1.0" " Hurl Manual"
|
||||
.SH NAME
|
||||
|
||||
hurl - run and test HTTP requests.
|
||||
|
|
@ -36,6 +36,7 @@ If no input files are specified, input is read from stdin.
|
|||
"url": "http://httpbin.org/get"
|
||||
}
|
||||
|
||||
Hurl can take files as input, or directories. In the latter case, Hurl will search files with `.hurl` extension recursively.
|
||||
|
||||
Output goes to stdout by default. To have output go to a file, use the \fI-o, --output\fP option:
|
||||
|
||||
|
|
@ -158,6 +159,8 @@ Request a compressed response using one of the algorithms br, gzip, deflate and
|
|||
|
||||
Maximum time in seconds that you allow Hurl's connection to take.
|
||||
|
||||
You can specify time units in the connect timeout expression. Set Hurl to use a connect timeout of 20 seconds with `--connect-timeout 20s` or set it to 35,000 milliseconds with `--connect-timeout 35000ms`. No spaces allowed.
|
||||
|
||||
See also \fI-m, --max-time\fP.
|
||||
|
||||
.IP "--connect-to <HOST1:PORT1:HOST2:PORT2> "
|
||||
|
|
@ -187,16 +190,24 @@ This is a cli-only option.
|
|||
|
||||
.IP "-c, --cookie-jar <FILE> "
|
||||
|
||||
Write cookies to FILE after running the session (only for one session).
|
||||
Write cookies to FILE after running the session.
|
||||
The file will be written using the Netscape cookie file format.
|
||||
|
||||
Combined with \fI-b, --cookie\fP, you can simulate a cookie storage between successive Hurl runs.
|
||||
|
||||
This is a cli-only option.
|
||||
|
||||
.IP "--curl <FILE> "
|
||||
|
||||
Export each request to a list of curl commands.
|
||||
|
||||
This is a cli-only option.
|
||||
|
||||
.IP "--delay <MILLISECONDS> "
|
||||
|
||||
Sets delay before each request.
|
||||
Sets delay before each request (aka sleep). The delay is not applied to requests that have been retried because of \fI--retry\fP. See \fI--retry-interval\fP to space retried requests.
|
||||
|
||||
You can specify time units in the delay expression. Set Hurl to use a delay of 2 seconds with `--delay 2s` or set it to 500 milliseconds with `--delay 500ms`. Supported time units: ms, s, m, h. No spaces allowed.
|
||||
|
||||
.IP "--error-format <FORMAT> "
|
||||
|
||||
|
|
@ -226,6 +237,12 @@ However, to avoid your shell accidentally expanding glob patterns before Hurl ha
|
|||
|
||||
This is a cli-only option.
|
||||
|
||||
.IP "-H, --header <HEADER> "
|
||||
|
||||
Add an extra header to include in information sent. Can be used several times in a command
|
||||
|
||||
Do not add newlines or carriage returns
|
||||
|
||||
.IP "-0, --http1.0 "
|
||||
|
||||
Tells Hurl to use HTTP version 1.0 instead of using its internally preferred HTTP version.
|
||||
|
|
@ -260,14 +277,6 @@ This is a cli-only option.
|
|||
|
||||
This option explicitly allows Hurl to perform "insecure" SSL connections and transfers.
|
||||
|
||||
.IP "--interactive "
|
||||
|
||||
Stop between requests.
|
||||
|
||||
This is similar to a break point, You can then continue (Press C) or quit (Press Q).
|
||||
|
||||
This is a cli-only option.
|
||||
|
||||
.IP "-4, --ipv4 "
|
||||
|
||||
This option tells Hurl to use IPv4 addresses only when resolving host names, and not for example try IPv6.
|
||||
|
|
@ -278,7 +287,7 @@ This option tells Hurl to use IPv6 addresses only when resolving host names, and
|
|||
|
||||
.IP "--jobs <NUM> "
|
||||
|
||||
(Experimental) Maximum number of parallel jobs in parallel mode. Default value corresponds (in most cases) to the
|
||||
Maximum number of parallel jobs in parallel mode. Default value corresponds (in most cases) to the
|
||||
current amount of CPUs.
|
||||
|
||||
See also \fI--parallel\fP.
|
||||
|
|
@ -295,6 +304,11 @@ This is a cli-only option.
|
|||
|
||||
Private key file name.
|
||||
|
||||
.IP "--limit-rate <SPEED> "
|
||||
|
||||
Specify the maximum transfer rate you want Hurl to use, for both downloads and uploads. This feature is useful if you have a limited pipe and you would like your transfer not to use your entire bandwidth. To make it slower than it otherwise would be.
|
||||
The given speed is measured in bytes/second.
|
||||
|
||||
.IP "-L, --location "
|
||||
|
||||
Follow redirect. To limit the amount of redirects to follow use the \fI--max-redirs\fP option
|
||||
|
|
@ -306,7 +320,7 @@ This may or may not introduce a security breach if the site redirects you to a s
|
|||
|
||||
.IP "--max-filesize <BYTES> "
|
||||
|
||||
Specify the maximum size (in bytes) of a file to download. If the file requested is larger than this value, the transfer does not start.
|
||||
Specify the maximum size in bytes of a file to download. If the file requested is larger than this value, the transfer does not start.
|
||||
|
||||
This is a cli-only option.
|
||||
|
||||
|
|
@ -320,9 +334,13 @@ By default, the limit is set to 50 redirections. Set this option to -1 to make i
|
|||
|
||||
Maximum time in seconds that you allow a request/response to take. This is the standard timeout.
|
||||
|
||||
You can specify time units in the maximum time expression. Set Hurl to use a maximum time of 20 seconds with `--max-time 20s` or set it to 35,000 milliseconds with `--max-time 35000ms`. No spaces allowed.
|
||||
|
||||
See also \fI--connect-timeout\fP.
|
||||
|
||||
This is a cli-only option.
|
||||
.IP "--negotiate "
|
||||
|
||||
Tell Hurl to use Negotiate (SPNEGO) authentication.
|
||||
|
||||
.IP "-n, --netrc "
|
||||
|
||||
|
|
@ -354,21 +372,32 @@ Suppress output. By default, Hurl outputs the body of the last response.
|
|||
|
||||
This is a cli-only option.
|
||||
|
||||
.IP "--no-pretty "
|
||||
|
||||
Do not prettify response output for supported content type (JSON only for the moment). By default, output is prettified if
|
||||
standard output is a terminal.
|
||||
|
||||
This is a cli-only option.
|
||||
|
||||
.IP "--noproxy <HOST(S)> "
|
||||
|
||||
Comma-separated list of hosts which do not use a proxy.
|
||||
|
||||
Override value from Environment variable no_proxy.
|
||||
|
||||
.IP "--ntlm "
|
||||
|
||||
Tell Hurl to use NTLM authentication
|
||||
|
||||
.IP "-o, --output <FILE> "
|
||||
|
||||
Write output to FILE instead of stdout.
|
||||
Write output to FILE instead of stdout. Use '-' for stdout in [Options] sections.
|
||||
|
||||
.IP "--parallel "
|
||||
|
||||
(Experimental) Run files in parallel.
|
||||
Run files in parallel.
|
||||
|
||||
Each Hurl file is executed in its own worker thread, without sharing anything with the other workers. The default run mode is sequential.
|
||||
Each Hurl file is executed in its own worker thread, without sharing anything with the other workers. The default run mode is sequential. Parallel execution is by default in \fI--test\fP mode.
|
||||
|
||||
See also \fI--jobs\fP.
|
||||
|
||||
|
|
@ -378,10 +407,31 @@ This is a cli-only option.
|
|||
|
||||
Tell Hurl to not handle sequences of /../ or /./ in the given URL path. Normally Hurl will squash or merge them according to standards but with this option set you tell it not to do that.
|
||||
|
||||
.IP "--pinnedpubkey <HASHES> "
|
||||
|
||||
When negotiating a TLS or SSL connection, the server sends a certificate indicating its identity. A public key is extracted from this certificate and if it does not exactly match the public key provided to this option, Hurl aborts the connection before sending or receiving any data.
|
||||
|
||||
.IP "--pretty "
|
||||
|
||||
Prettify response output for supported content type (JSON only for the moment). By default, JSON response is prettified if standard output is a terminal, and colorized, see\fI--no-color\fP to format without color.
|
||||
|
||||
This is a cli-only option.
|
||||
|
||||
.IP "--progress-bar "
|
||||
|
||||
Display a progress bar in test mode. The progress bar is displayed only in interactive TTYs. This option forces the progress bar to be displayed even in non-interactive TTYs.
|
||||
|
||||
This is a cli-only option.
|
||||
|
||||
.IP "-x, --proxy <[PROTOCOL://]HOST[:PORT]> "
|
||||
|
||||
Use the specified proxy.
|
||||
|
||||
.IP "--repeat <NUM> "
|
||||
|
||||
Repeat the input files sequence NUM times, -1 for infinite loop. Given a.hurl, b.hurl, c.hurl as input, repeat two
|
||||
times will run a.hurl, b.hurl, c.hurl, a.hurl, b.hurl, c.hurl.
|
||||
|
||||
.IP "--report-html <DIR> "
|
||||
|
||||
Generate HTML report in DIR.
|
||||
|
|
@ -390,6 +440,14 @@ If the HTML report already exists, it will be updated with the new test results.
|
|||
|
||||
This is a cli-only option.
|
||||
|
||||
.IP "--report-json <DIR> "
|
||||
|
||||
Generate JSON report in DIR.
|
||||
|
||||
If the JSON report already exists, it will be updated with the new test results.
|
||||
|
||||
This is a cli-only option.
|
||||
|
||||
.IP "--report-junit <FILE> "
|
||||
|
||||
Generate JUnit File.
|
||||
|
|
@ -418,6 +476,24 @@ Maximum number of retries, 0 for no retries, -1 for unlimited retries. Retry hap
|
|||
|
||||
Duration in milliseconds between each retry. Default is 1000 ms.
|
||||
|
||||
You can specify time units in the retry interval expression. Set Hurl to use a retry interval of 2 seconds with `--retry-interval 2s` or set it to 500 milliseconds with `--retry-interval 500ms`. No spaces allowed.
|
||||
|
||||
.IP "--secret <NAME=VALUE> "
|
||||
|
||||
Define secret value to be redacted from logs and report. When defined, secrets can be used as variable everywhere variables are used.
|
||||
|
||||
This is a cli-only option.
|
||||
|
||||
.IP "--secrets-file <FILE> "
|
||||
|
||||
Define a secrets file in which you define your secrets
|
||||
|
||||
Each secret is defined as name=value exactly as with \fI--secret\fP option.
|
||||
|
||||
Note that defining a secret twice produces an error.
|
||||
|
||||
This is a cli-only option.
|
||||
|
||||
.IP "--ssl-no-revoke "
|
||||
|
||||
(Windows) This option tells Hurl to disable certificate revocation checks. WARNING: this option loosens the SSL security, and by using this flag you ask for exactly that.
|
||||
|
|
@ -428,6 +504,10 @@ This is a cli-only option.
|
|||
|
||||
Activate test mode: with this, the HTTP response is not outputted anymore, progress is reported for each Hurl file tested, and a text summary is displayed when all files have been run.
|
||||
|
||||
In test mode, files are executed in parallel. To run test in a sequential way use `--job 1`.
|
||||
|
||||
See also \fI--jobs\fP.
|
||||
|
||||
This is a cli-only option.
|
||||
|
||||
.IP "--to-entry <ENTRY_NUMBER> "
|
||||
|
|
@ -512,9 +592,13 @@ Sets the proxy server to use if no protocol-specific proxy is set.
|
|||
|
||||
List of host names that shouldn't go through any proxy.
|
||||
|
||||
.IP "HURL_name value"
|
||||
.IP "HURL_VARIABLE_name value"
|
||||
|
||||
Define variable (name/value) to be used in Hurl templates. This is similar than \fI--variable\fP and \fI--variables-file\fP options.
|
||||
Define variable (name/value) to be used in Hurl templates. This is similar to \fI--variable\fP and \fI--variables-file\fP options.
|
||||
|
||||
.IP "HURL_SECRET_name value"
|
||||
|
||||
Define secret (name/value) to be used in Hurl templates. This is similar to \fI--secret\fP and \fI--secrets-file\fP options.
|
||||
|
||||
.IP "NO_COLOR"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
.TH hurl 1 "24 Apr 2024" "hurl 4.3.0" " Hurl Manual"
|
||||
.TH hurl 1 "18 Nov 2025" "hurl 7.1.0" " Hurl Manual"
|
||||
.SH NAME
|
||||
|
||||
hurlfmt - format Hurl files
|
||||
|
|
@ -60,7 +60,7 @@ hurlfmt can also be used to convert a curl command-line to Hurl
|
|||
|
||||
.IP "--check "
|
||||
|
||||
Run in 'check' mode. Exits with 0 if input is formatted correctly, 1 otherwise.
|
||||
Run in check mode. Exits with 0 if input is formatted correctly, 1 otherwise.
|
||||
|
||||
This can not be used with \fI--output\fP.
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@orangeopensource/hurl",
|
||||
"version": "4.3.3",
|
||||
"hurlBinaryVersion": "4.3.0",
|
||||
"version": "7.1.0",
|
||||
"hurlBinaryVersion": "7.1.0",
|
||||
"description": "Run and Test HTTP Requests with plain text and curl",
|
||||
"author": "Jean-Christophe Amiel <jeanchristophe.amiel@orange.com>",
|
||||
"contributors": [
|
||||
|
|
@ -23,10 +23,8 @@
|
|||
"postinstall": "node ./install.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "1.7.4",
|
||||
"extract-zip": "2.0.1",
|
||||
"rimraf": "5.0.5",
|
||||
"tar": "7.4.3"
|
||||
"tar": "7.5.2"
|
||||
},
|
||||
"devDependencies": {},
|
||||
"keywords": [
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
"rust_target": "x86_64-pc-windows-msvc",
|
||||
"binary_name": "hurl.exe",
|
||||
"archive_extension": ".zip",
|
||||
"checksum": "1abd2f4d9a107cf1ed21392caf40455035741bb08f44307487e2e57ae91ec059"
|
||||
"checksum": "ce0fcbd889513faafe2c5d52e1051abfd9c78b927089e7a59c364d70d0ae26a7"
|
||||
},
|
||||
{
|
||||
"type": "Linux",
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
"rust_target": "x86_64-unknown-linux-gnu",
|
||||
"binary_name": "hurl",
|
||||
"archive_extension": ".tar.gz",
|
||||
"checksum": "77992838d748483924e235d3d04a1d9b33cc32f49a7c6700917e0a20b4451dcb"
|
||||
"checksum": "bed802fea307d330d899935e76614ae1d9bdd1b3139e5cf77cb717033260880c"
|
||||
},
|
||||
{
|
||||
"type": "Linux",
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
"rust_target": "aarch64-unknown-linux-gnu",
|
||||
"binary_name": "hurl",
|
||||
"archive_extension": ".tar.gz",
|
||||
"checksum": "d2eede6dfe633cc5a50617de8247efd38bd4d4b8c7a0bf9252d95441f686bda3"
|
||||
"checksum": "4c15c4fbef2aaee94d62e022623415d8148f7455c36adfa1402c645c610529b6"
|
||||
},
|
||||
{
|
||||
"type": "Darwin",
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
"rust_target": "x86_64-apple-darwin",
|
||||
"binary_name": "hurl",
|
||||
"archive_extension": ".tar.gz",
|
||||
"checksum": "d2f3a7b751b8906f85203841069239f5a68afe3b6926d1349fc847759a081983"
|
||||
"checksum": "1b3f2b3893f26d186b7ec2726cbe644c3309c9abda73451b2a2e0bc07539eee8"
|
||||
},
|
||||
{
|
||||
"type": "Darwin",
|
||||
|
|
@ -37,6 +37,6 @@
|
|||
"rust_target": "aarch64-apple-darwin",
|
||||
"binary_name": "hurl",
|
||||
"archive_extension": ".tar.gz",
|
||||
"checksum": "8e0dacf7ba8c9c0e58feb0f0cff729da24893f782905f5a7a33a8418c5796dbb"
|
||||
"checksum": "bb4103efdffeed83e96e368b7deab8bfcaff5ba7c12a8e02090e968ca9800508"
|
||||
}
|
||||
]
|
||||
|
|
@ -1,4 +1,6 @@
|
|||
## Create the PPA
|
||||
# Build and push to PPA
|
||||
|
||||
## Create the PPA for Ubuntu focal and newer
|
||||
|
||||
- Go to https://launchpad.net
|
||||
- Create an account
|
||||
|
|
@ -25,152 +27,283 @@ gpg --armor --export-secret-keys "${gpg_keyid}" > /tmp/myprivatekey.asc
|
|||
# import public and private key
|
||||
gpg --import /tmp/mypublickey.asc
|
||||
gpg --import /tmp/myprivatekey.asc
|
||||
|
||||
```
|
||||
|
||||
## Choose Hurl version and Ubuntu codename
|
||||
|
||||
```
|
||||
echo -n "hurl_version=" && read -r hurl_version
|
||||
echo -n "Ubuntu codename=" && read -r codename
|
||||
echo -n "Gpg passphrase=" && read -r passphrase
|
||||
|
||||
```
|
||||
|
||||
## Export gpg key
|
||||
|
||||
```
|
||||
mkdir -p /tmp/gpg
|
||||
chmod 777 /tmp/gpg
|
||||
gpg_keyid=$(gpg --list-keys | grep -E "^ " | tr -d ' ')
|
||||
gpg --armor --export "${gpg_keyid}" > /tmp/mypublickey.asc
|
||||
gpg --armor --export-secret-keys "${gpg_keyid}" > /tmp/myprivatekey.asc
|
||||
```
|
||||
## Choose Hurl version
|
||||
gpg --batch --passphrase "${passphrase}" --pinentry-mode loopback --armor --export "${gpg_keyid}" > /tmp/gpg/mypublickey.asc
|
||||
gpg --batch --passphrase "${passphrase}" --pinentry-mode loopback --armor --export-secret-keys "${gpg_keyid}" > /tmp/gpg/myprivatekey.asc
|
||||
|
||||
```
|
||||
hurl_version=<hurl tag>
|
||||
```
|
||||
## Run ubuntu focal container
|
||||
|
||||
## Run ubuntu container
|
||||
|
||||
```
|
||||
docker run -it --rm --env GPG_KEYID=${gpg_keyid} --env HURL_VERSION=${hurl_version} --volume /tmp:/tmp ubuntu:20.04 bash
|
||||
docker run -it --rm --env gpg_keyid="${gpg_keyid}" --env hurl_version="${hurl_version}" --env codename="${codename}" --env passphrase="${passphrase}" --env date="$(date -u "+%a, %d %b %Y %H:%M:%S")" --volume "/tmp/gpg:/tmp/gpg" ubuntu:"${codename}" bash
|
||||
|
||||
```
|
||||
|
||||
## Install user prerequisites
|
||||
## Install user prerequisites and build dependencies
|
||||
|
||||
```
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt update
|
||||
apt install -y \
|
||||
gpg \
|
||||
git \
|
||||
curl \
|
||||
wget \
|
||||
vim \
|
||||
xz-utils
|
||||
```
|
||||
apt install -y gpg git curl wget vim xz-utils gettext moreutils pv && \
|
||||
apt install -y pkg-config gcc libclang-dev curl libxml2-dev libssl-dev devscripts debhelper
|
||||
|
||||
## Install build dependencies
|
||||
|
||||
```
|
||||
apt install -y \
|
||||
pkg-config gcc curl libxml2-dev libssl-dev \
|
||||
devscripts debhelper
|
||||
```
|
||||
|
||||
## Import GPG key into container
|
||||
|
||||
```
|
||||
gpg --import /tmp/mypublickey.asc
|
||||
gpg --import /tmp/myprivatekey.asc
|
||||
export GPG_TTY=$(tty)
|
||||
gpg --batch --passphrase "${passphrase}" --pinentry-mode loopback --import /tmp/gpg/mypublickey.asc
|
||||
gpg --batch --passphrase "${passphrase}" --pinentry-mode loopback --import /tmp/gpg/myprivatekey.asc
|
||||
|
||||
```
|
||||
|
||||
## Clone hurl
|
||||
## Clone Hurl
|
||||
|
||||
```
|
||||
rm -fr /tmp/ppa || true
|
||||
git clone --depth 1 https://github.com/Orange-OpenSource/hurl.git --branch "${HURL_VERSION}" /tmp/ppa/hurl-"${HURL_VERSION}"
|
||||
cd /tmp/ppa/hurl-"${HURL_VERSION}"
|
||||
cp -r contrib/ppa/debian .
|
||||
git clone --depth 1 https://github.com/Orange-OpenSource/hurl.git --branch "${hurl_version}" /tmp/ppa/hurl-"${hurl_version}"
|
||||
cd /tmp/ppa/hurl-"${hurl_version}"
|
||||
|
||||
```
|
||||
|
||||
## Get debian conf from master
|
||||
|
||||
```
|
||||
git clone --depth 1 https://github.com/Orange-OpenSource/hurl.git /tmp/ppa/hurl-ppa
|
||||
cp -r ../hurl-ppa/contrib/ppa/debian .
|
||||
|
||||
```
|
||||
|
||||
## Minimize repo
|
||||
|
||||
```
|
||||
rm -fr .circleci \
|
||||
.github \
|
||||
.git \
|
||||
rustfmt.toml \
|
||||
ruff.toml \
|
||||
art \
|
||||
contrib \
|
||||
integration \
|
||||
RELEASING.md \
|
||||
README.md \
|
||||
CONTRIBUTING.md
|
||||
while read -r dir ; do
|
||||
rm -fr $dir
|
||||
done < <(find bin -mindepth 1 -type d | grep -v "bin/release")
|
||||
while read -r file ; do
|
||||
rm -fr $file
|
||||
done < <(find bin -type f | grep -Ev "man\.sh|release\.sh|gen_manpage\.py")
|
||||
while read -r dir ; do
|
||||
rm -fr $dir
|
||||
done < <(find docs -mindepth 1 -type d | grep -v "docs/manual")
|
||||
while read -r file ; do
|
||||
rm -fr $file
|
||||
done < <(find docs -type f | grep -Ev "manual/")
|
||||
|
||||
```
|
||||
|
||||
## Create minimized offline rust and cargo installer (because ppa workers do not have internet)
|
||||
|
||||
```
|
||||
rust_version=$(grep '^rust-version' packages/hurl/Cargo.toml | cut -f2 -d'"')
|
||||
for arch in x86_64 aarch64 ; do
|
||||
package="rust-${rust_version}-${arch}-unknown-linux-gnu"
|
||||
packagelight="${package}-light"
|
||||
wget "https://static.rust-lang.org/dist/${package}.tar.xz"
|
||||
xz -T0 -vd "${package}.tar.xz"
|
||||
tar -x -f "${package}.tar"
|
||||
dirs_to_delete=$(find "${package}" -type d | cut --delimiter "/" --field 1,2 | grep "/" | grep -Ev "/cargo$|/rust-std-${arch}-unknown-linux-gnu$|/rustc$" | sort -u | tr '\n' ' ')
|
||||
rm -fr $dirs_to_delete
|
||||
grep -E "^cargo$|^rust-std-${arch}-unknown-linux-gnu$|^rustc$" "${package}/components" | sponge "${package}/components"
|
||||
mv "${package}" "${packagelight}"
|
||||
tar -c -f - "${packagelight}" | pv > "${packagelight}.tar"
|
||||
xz -T0 -9 -v "${packagelight}.tar"
|
||||
rm -fr "${package}.tar" "${packagelight}"
|
||||
done
|
||||
|
||||
```
|
||||
|
||||
## Install rust and cargo
|
||||
|
||||
```
|
||||
rust_version=$(grep '^rust-version' packages/hurl/Cargo.toml | cut -f2 -d'"')
|
||||
for arch in x86_64 aarch64 ; do
|
||||
wget "https://static.rust-lang.org/dist/rust-${rust_version}-${arch}-unknown-linux-gnu.tar.gz"
|
||||
done
|
||||
rust_architecture=$(uname -m)
|
||||
package="rust-${rust_version}-${rust_architecture}-unknown-linux-gnu"
|
||||
tar xfv "${package}.tar.gz"
|
||||
./"${package}"/install.sh --destdir=/tmp/rust --disable-ldconfig
|
||||
arch=$(uname -m)
|
||||
package="rust-${rust_version}-${arch}-unknown-linux-gnu"
|
||||
packagelight="${package}-light"
|
||||
tar -x -f "${packagelight}".tar.xz
|
||||
./"${packagelight}"/install.sh --destdir=/tmp/rust --disable-ldconfig
|
||||
export PATH="/tmp/rust/usr/local/bin:$PATH"
|
||||
rustc --version
|
||||
cargo --version
|
||||
rm -fr rust-"${rust_version}"-x86_64-unknown-linux-gnu
|
||||
rm -fr "${packagelight}"
|
||||
|
||||
```
|
||||
|
||||
## Create vendor.tar.xz (offline cargo deps)
|
||||
|
||||
```
|
||||
cargo vendor
|
||||
tar pcfJv vendor.tar.xz vendor
|
||||
tar -p -c -J -f - vendor | pv > vendor.tar.xz
|
||||
rm -rf vendor
|
||||
|
||||
```
|
||||
|
||||
## Create debian/cargo-checksum.json
|
||||
|
||||
```
|
||||
cargo package --package hurl
|
||||
sum=$(sha256sum target/package/hurl-"${HURL_VERSION}".crate | cut -d' ' -f1 | tr -d ' ')
|
||||
sum=$(sha256sum target/package/hurl-"${hurl_version}".crate | cut -d' ' -f1 | tr -d ' ')
|
||||
echo "{\"package\": \"${sum}\",\"files\": {}}" > debian/cargo-checksum.json
|
||||
cat debian/cargo-checksum.json
|
||||
rm -fr target
|
||||
|
||||
```
|
||||
|
||||
## Create debian/cargo_home/config
|
||||
## Create debian/cargo_home/config and update .cargo/config
|
||||
|
||||
```
|
||||
mkdir -p debian/cargo_home
|
||||
cp Cargo.toml debian/cargo_home/config
|
||||
```
|
||||
|
||||
## Create .cargo/config
|
||||
|
||||
```
|
||||
{
|
||||
cat .cargo/config.toml
|
||||
echo
|
||||
cat debian/cargo.config
|
||||
} > .cargo/config
|
||||
|
||||
```
|
||||
|
||||
## Create debian/changelog
|
||||
|
||||
```
|
||||
envsubst < debian/changelog.template > debian/changelog
|
||||
cat debian/changelog
|
||||
|
||||
```
|
||||
|
||||
## Fix debian/control for Ubuntu <24
|
||||
|
||||
```
|
||||
ubuntu_major_version=$(cat /etc/lsb-release | grep DISTRIB_RELEASE | cut -d'=' -f2 | cut -d'.' -f1)
|
||||
if [[ $ubuntu_major_version -lt 24 ]] ; then
|
||||
sed -i "s/pkgconf/pkg-config/g" debian/control
|
||||
fi
|
||||
```
|
||||
|
||||
## Create deb package source
|
||||
|
||||
```
|
||||
debuild -S -sa -k"${GPG_KEYID}"
|
||||
hurl_long_version=$(head -1 debian/changelog | cut -d'(' -f2 | cut -d')' -f1)
|
||||
cd ..
|
||||
tar --exclude="hurl-${hurl_version}/debian" -c -z -f - "hurl-${hurl_version}" | pv > "hurl_${hurl_long_version}.orig.tar.gz"
|
||||
cd "hurl-${hurl_version}"
|
||||
lintian -i -E --profile debian --display-info --display-experimental --suppress-tags source-is-missing
|
||||
yes | debuild -S -sa -k"${gpg_keyid}" -p"gpg --batch --passphrase ${passphrase} --pinentry-mode loopback"
|
||||
|
||||
```
|
||||
|
||||
## Verify deb package source
|
||||
|
||||
```
|
||||
cd ..
|
||||
ls -l hurl_*
|
||||
|
||||
```
|
||||
|
||||
## Push to PPA
|
||||
|
||||
```
|
||||
dput ppa:lepapareil/hurl hurl_*_source.changes
|
||||
|
||||
```
|
||||
|
||||
## Copy published PPA (focal) to newers ubuntu codenames
|
||||
## Clean debuild packages
|
||||
|
||||

|
||||
```
|
||||
rm -fr hurl_"${hurl_version}"*
|
||||
|
||||

|
||||
```
|
||||
|
||||
## Install and test Hurl from PPA
|
||||
# Test Hurl from published PPA
|
||||
|
||||
## Choose Hurl version and Ubuntu codename
|
||||
|
||||
```shell
|
||||
codename=<ubuntu codename from focal to latest>
|
||||
hurl_version=<hurl tag>
|
||||
docker run -it --rm --env GPG_KEYID=${gpg_keyid} --env HURL_VERSION=${hurl_version} --env CODENAME=${codename} --volume /tmp:/tmp ubuntu:${codename} bash
|
||||
echo -n "hurl_version=" && read -r hurl_version
|
||||
echo -n "Ubuntu codename=" && read -r codename
|
||||
docker run -it --rm --env hurl_version="${hurl_version}" --env codename="${codename}" --volume "/tmp:/tmp" "ubuntu:${codename}" bash
|
||||
|
||||
```
|
||||
|
||||
## Install Hurl
|
||||
```
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt update
|
||||
apt install -y git sudo curl software-properties-common
|
||||
yes | unminimize
|
||||
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1550DC447B95F03B
|
||||
apt-add-repository -y ppa:lepapareil/hurl
|
||||
apt install -y hurl
|
||||
apt install -y git sudo man-db curl software-properties-common && \
|
||||
apt-add-repository -y ppa:lepapareil/hurl && \
|
||||
apt list --all-versions hurl && \
|
||||
apt install -y hurl="${hurl_version}"*
|
||||
```
|
||||
|
||||
|
||||
## Check Hurl installed version
|
||||
|
||||
```
|
||||
hurl --version
|
||||
hurlfmt --version
|
||||
git clone --depth 1 https://github.com/Orange-OpenSource/hurl.git --branch "${HURL_VERSION}" /tmp/hurl-"${HURL_VERSION}"
|
||||
cd /tmp/hurl-"${HURL_VERSION}"
|
||||
./bin/install_prerequisites_ubuntu.sh
|
||||
./bin/install_python3_venv.sh
|
||||
./bin/test/test_prerequisites.sh
|
||||
./bin/test/test_integ.sh
|
||||
man hurl | head -1
|
||||
man hurlfmt | head -1
|
||||
```
|
||||
|
||||
## Run Hurl from STDIN
|
||||
|
||||
```
|
||||
echo -e "GET https://hurl.dev\n\nHTTP 200" | hurl --test --color
|
||||
```
|
||||
|
||||
## Run Hurl from FILE
|
||||
|
||||
```
|
||||
echo -e "GET https://hurl.dev\n\nHTTP 200" > /tmp/test.hurl
|
||||
hurl --test --color /tmp/test.hurl
|
||||
```
|
||||
|
||||
# Build libxml2
|
||||
|
||||
If you want to build another version of libxml2 on ubuntu:
|
||||
|
||||
```
|
||||
minimum_version="2.9.11"
|
||||
libxml2_installed_version=$(apt list --installed 2>/dev/null | grep libxml2 | cut --delimiter ' ' --field 2 | cut --delimiter '+' --field 1)
|
||||
if dpkg --compare-versions "${libxml2_installed_version}" ge "${minimum_version}" ; then
|
||||
echo "ok"
|
||||
else
|
||||
tar xf libxml2-"${minimum_version}".tar.gz
|
||||
cd libxml2-"${minimum_version}"
|
||||
./configure --prefix=/opt/libxml2-"${minimum_version}" --with-zlib
|
||||
make -j$(nproc)
|
||||
make install
|
||||
export PKG_CONFIG_PATH=/opt/libxml2-"${minimum_version}"/lib/pkgconfig:$PKG_CONFIG_PATH
|
||||
export LD_LIBRARY_PATH=/opt/libxml2-"${minimum_version}"/lib:$LD_LIBRARY_PATH
|
||||
export PATH=/opt/libxml2-"${minimum_version}"/bin:$PATH
|
||||
fi
|
||||
```
|
||||
|
|
|
|||
|
|
@ -6,14 +6,15 @@ tar pxf vendor.tar.xz
|
|||
|
||||
echo "## install rustc and cargo"
|
||||
rust_version=$(grep '^rust-version' packages/hurl/Cargo.toml | cut -f2 -d'"')
|
||||
rust_arch=$(uname -m)
|
||||
package="rust-${rust_version}-${rust_arch}-unknown-linux-gnu"
|
||||
arch=$(uname -m)
|
||||
package="rust-${rust_version}-${arch}-unknown-linux-gnu"
|
||||
packagelight="${package}-light"
|
||||
echo "rust_version=${rust_version}"
|
||||
echo "rust_architecture=${rust_arch}"
|
||||
echo "package=${package}"
|
||||
tar xf "${package}.tar.gz"
|
||||
echo "architecture=${arch}"
|
||||
echo "packagelight=${packagelight}"
|
||||
tar xf "${packagelight}.tar.xz"
|
||||
mkdir -p /tmp/rust
|
||||
./"${package}"/install.sh --verbose --destdir=/tmp/rust --disable-ldconfig
|
||||
./"${packagelight}"/install.sh --verbose --destdir=/tmp/rust --disable-ldconfig
|
||||
export PATH="/tmp/rust/usr/local/bin:$PATH"
|
||||
which rustc
|
||||
which cargo
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
hurl (4.3.5-27ubuntu+focal) focal; urgency=medium
|
||||
|
||||
* Initial Release.
|
||||
|
||||
-- lepapareil <filipe.pinto@orange.com> Fri, 17 May 2024 13:30:36 +0200
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
hurl (${hurl_version}+0${codename}) ${codename}; urgency=medium
|
||||
|
||||
* New upstream release.
|
||||
|
||||
-- lepapareil <filipe.pinto@orange.com> ${date} +0200
|
||||
|
|
@ -2,14 +2,14 @@ Source: hurl
|
|||
Section: utils
|
||||
Priority: optional
|
||||
Maintainer: lepapareil <filipe.pinto@orange.com>
|
||||
Build-Depends: debhelper (>= 10), pkg-config, gcc, curl, libxml2-dev, libssl-dev, python3
|
||||
Build-Depends: debhelper (>= 10), pkgconf, gcc, libclang-dev, curl, libxml2-dev, libssl-dev, python3
|
||||
Standards-Version: 4.6.0
|
||||
Homepage: https://hurl.dev
|
||||
Rules-Requires-Root: no
|
||||
|
||||
Package: hurl
|
||||
Architecture: any
|
||||
Depends: libc6 (>= 2.17), libcurl4, zlib1g, libxml2
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||
Description: Hurl is a command line tool that runs HTTP requests defined in a simple plain text format.
|
||||
It can chain requests, capture values and evaluate queries on headers and body response. Hurl is very versatile: it can be used for both fetching data and testing HTTP sessions.
|
||||
Hurl makes it easy to work with HTML content, REST / SOAP / GraphQL APIs, or any other XML / JSON based APIs.
|
||||
|
|
|
|||
|
|
@ -6,205 +6,206 @@ Source: https://github.com/Orange-OpenSource/hurl
|
|||
Files: *
|
||||
Copyright: 2024 Jean Christophe AMIEL, Fabrice REIX, Filipe PINTO
|
||||
License: Apache-2.0
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2017 fd developers
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
.
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
.
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
.
|
||||
1. Definitions.
|
||||
.
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
.
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
.
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
.
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
.
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
.
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
.
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
.
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
.
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
.
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
.
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
.
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
.
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
.
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
.
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
.
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
.
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
.
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
.
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
.
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
.
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
.
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
.
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
.
|
||||
END OF TERMS AND CONDITIONS
|
||||
.
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
.
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
.
|
||||
Copyright 2017 fd developers
|
||||
.
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
.
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
.
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
override_dh_clean:
|
||||
./debian/bin/clean.sh
|
||||
dh_clean
|
||||
|
||||
override_dh_auto_build:
|
||||
./debian/bin/prerequisites.sh
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
3.0 (native)
|
||||
3.0 (quilt)
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue