fix(playground-preview-worker,edge-preview-authenticated-proxy): allow overriding raw request method with the X-CF-Http-Method header #6239
Annotations
8 errors and 2 warnings
Run tests:
packages/edge-preview-authenticated-proxy/tests/index.test.ts#L488
Error: Snapshot `Raw HTTP preview > should use the method specified on the X-CF-Http-Method header 1` mismatched
Expected: ""PUT""
Received: ""{"url":"http://127.0.0.1:49283/","headers":[["accept","*/*"],["accept-encoding","br, gzip"],["accept-language","*"],["cf-workers-preview-token","0ef3e6180920154c01d4d11ee60ca99a33b7aeae0bb263552f2395e908c409f771e794db4ac287914111ce8f41936dffb9d10d517ac8055e1601d0a688a109094785c89dad6e2c2ac495172ffac2e6c114a1364fe98072d1324e893194b14e55f4d559dbffe85d96a2a38fd9e3686c093e7387c292b59d8ee96e675c05358f26688eb512f4052057bbd4e8823c6eb6ef50be37d47ffbc1e80dd1e48a0ca8dc9df242a03e51a6afa34eadae83ef21916396997d206bba5531a375812c67dbbf41da43f459eac7251b4001bffbc22a15adcabfeabdb53e3b94d5f4531a8ae6866e99b8dc339567388f6f113dc3b34374331a750e55706db0d63b265513eb51cf6ca701ce36fe933a9be0ce2b4dad57e1ce0b015607fcba8b97bad83ae2906ab8a6c230db83019b6c488b23f5bc70171f883f35de39c7e56da7ad76ac0fee4ffd2ebcb221a7bdf46d1fe07380dbdfbd9b67564da9f7e6b17ece047d7e1d01c1b2423a45c812b0603b6100e082735a5ee701cd1219e57feb852794f0e31db24ac25f49a5aa4149394625b900c2e422c3920f18834e39d5db5163c224b8d347fd41f44ebfea38c9a59c83a0ce5e0a942addb8b45a2e35787cef691b0bd3c1edc95100be254e3de459270cb2e70faa933097ff079a2e4c54129ab9ddfa1c98aadeec5187ae24c961d3cc2f4eb19f6c1b9179949dc4a09984189b4001ff0e4813f059a4906a18d7502a45ff7adfaa25cfa2edc8b712f9c06a5605b6f8417a1231dad7b9a5fa8c8f57f3b29d25cc0ea14ec927da76595c78e781c2d005814ebc358657db5d336178bd27e39d3eb477bfe033e3394f421205933fb46bbd02930e4bc1cb42936eedc26dc7fc77276fcef49b934d8f7e4ab547857ba1e3bafed0c0f826b6dfe74df4065edf113476b105a97139b7968054284575c4f46eedd73a5cb131da0dddc5623623dd29de8470d5527a2381523d153779be317478d6feffe6386f9a4e23719778b3d66ab358d285e6e0c6af4fd2ae49660f6134aac174dc2ff2fb73b140b4c159148a06743f18dadfd6cc79330e216f3dfb581c4ba35bf7db45fd8874db2039f0be2fd5e5e4a1e4260aeca7323c53e603e7e84678aca0fe131bb9ff809419c9fd2dca8a0dd52a1a9c54b4147c6472e51291c2a3e60705d361903818b205b3175ad81c2ba076c7dd52bcadd00ac6103707472a9eca5f36877d5f2ef0e66adde61218bfa4845e2dcb5b917d8129d8f4daf4f96364a8a43339b1612689c898ab519cb196253f940ed9276e600e11481fb3936e764c1f5e934921e8cd2382960813b21df9efe3db41be7a6a67fefc91da7b6e1875a168918a9d07da0b776d3f54d54cc9e4be05e7f590ad974f94ff12ea7483e50a602b6f5e485e3b96079ea18daf6953e54b153c5fc2623d6df10632d2e84c9024142f08eefcfa7b05c74fd033ccb3f209ebbf43dec29f7706c785a5d0052d8986854fca447c4c4840628b2f44745afe48eb0f3b34e85d750974283663e058cd40fdda0377c0917f142b6f0958f2d2670b0fdeba3c0a36d61a9c565c78ee6f9554789ee6a7ddb81b6c8eb2f146026f1694bcff6500ba3e7f6f4ce292e0c98922d5994d37aa3205a2442c76688b75bf1ec2971de09a1c852d8536d49393290405ff4f5ef12344cc10e09024e3ac2a0b04463abcee461fa8efdc6c37473f432a4ccc0a376c15cf4d1f3ea8998e7c6b32fc7b79bc4b71219ca177f9249182cac7c7e1335a5cf9e0d300496e39482ffb3d6dda1e911033cd4cc8e26fabfa0d0a05fc83e340f30b4fcd6a3fc14f8a95eff52699fb6598478753f39395891cc06bea1b2e86ec7a0cae675a8114beafb957961a4028a5df103799c2324b87911bfaac91487e1d9ac502a7dae5f352c98d1b811167401eaed4a10b0e94a8f2799b37075f071a74399c9d74feb026d6d79d9fc542dfd009cec06b06ffa444be8680f4561bdbbcb4159eb2c9305ac0f14b2210ac97fdecbca1703d14ddbaeba230eb3de57ac8a99a46ea90e39fa31d23d00105ae6d5550e35e93e4b35efe65e1b19defd98321d9db38dcfe3f7b6c55d61b00954854d29c2e724d4208f9aa9dcfb9bd1066809099b956c14ad70722f037d511f66786aa92d128bbc55c3ed25defeda83211827514b5986fce1d1e810989178d8284d71d19fad15e199e8b5935de3dc4b2f678d69ca992b1b3b28f802cd6bb93f9b69a5e67e26630eaba063c72d9d4bc7f28e81b91b227d74ef9e85727700fd514385fae54634182a1ed434db0864b8e35af7dcb332d0b9181eb9111be98da123a70b0ce16dd2dd266b8ed3fc3a02d184c3d1cf91e3738a2b60e32faf2d6cd13dc97a1636476e08c050ae2301d71b0e6f0acbdfc31eb20edcb269b1f24eaa4be90b64a4c3902939b5fcb8d75cb03a817ad28237b16113e6ffe0edef3bdd0d9ad760eabcec58ec686e16e006dd106f1bc1399fddbad949745dcd849ec9672ab2da17273ca5a648dcba744bd49f6468ae734ca10e3b4224337c13dea406db05c2406f909b7e42fe57a137dbeaf876024fb010f6e4f804d45cc0f4a93e55131ac06b09af9e0d1f03623780f30c30e7f49c7407bfd31a667a90d6da311a9d94b3f60a213fccc9d13bed240d3167ced037304bc5a9c29361d1a89d57c9ad31b00be9d708911ace862129a6529061b180
|
Run tests:
packages/edge-preview-authenticated-proxy/tests/index.test.ts#L488
Error: toMatchInlineSnapshot cannot be called multiple times at the same location.
❯ tests/index.test.ts:488:29
|
Run tests:
packages/edge-preview-authenticated-proxy/tests/index.test.ts#L488
Error: toMatchInlineSnapshot cannot be called multiple times at the same location.
❯ tests/index.test.ts:488:29
|
Run tests:
packages/edge-preview-authenticated-proxy/tests/index.test.ts#L506
Error: Snapshot `Raw HTTP preview > should fallback to the request method if the X-CF-Http-Method header is missing 1` mismatched
Expected: ""PUT""
Received: ""{"url":"http://127.0.0.1:49283/","headers":[["accept","*/*"],["accept-encoding","br, gzip"],["accept-language","*"],["cf-workers-preview-token","6acb42abbbc0f50705b62b2063bb327d4b7f34e602ff9ea840e6f5f0add3657e2a054ead3c58414badee277f787be77fb0f1cd5b959edc53b06a35344620b0c54db3a6725885765ca4f14977eba637e378acdc255561cb681ac58ca2ce95edd09dc8830102a33b5a88619ac19a3eb959c929da45e7bd434e8a7ce9c666345b1de4d0562c0b5578fcf40c23e2e4b56f3b9d0d0aebdaf86eb7203693e9474ba583b7f94e7d21c6f0f4d81ed0f97caca7f664b72fbcd9ae1e4d8ed4cd08218bedd041f6dd6aab2b5e3b27b6218007e169dfaa9f90b7bf0cc8fd644c26b4dbff16fd514bc354947fe0f70df8014f24b7f1a85c098b66a3ba5fdeee0c5fc0f9bcdaea3402f4f3680d118baceb5c8d48a918a8f768998c1c47d2901f9b4d998bd384ec075828c88ca158079289fe3264c473c43f1ff99a7c97155e715eb4cb59fb39b0078388fae6187d90bc99c0ff4802eae6a156eaf7573bf28d148c2ba4b77bfe455c82691ea9e38992b728a5f5ca50a1eab9bb6509b8deb8789f23f56f2ad1bf12f7dc578ec0b2d3791731e04d3104e27d59693c61ee39b49fad1fe1e41603100661c18ef8e82874de9fb76a9680125bd1eb3e5d40dc43dee3dd4556ebd3c4ad867fac2ee754925f20a29bdad622217853b3ec37ae7b76a8e0a3defbfd80fb38d391a4acdf02b51e3b4121082865e08aead479e2f7143d5f294a8ae26240a7376c2f3e84d7c4ad60e926568672763b52e1fd589ae815f85fee56981c3484de1a6106b55851cc03efb3041e7e4448d15230a282ba8491f587239fdfd8c364025dfac9ece78879251765132cd7777b1a1294cac51abfb2593317a87693cb80c97f755eb20c7a87149986c88ec7942f4b28d825eeb9367b7fccce03185041fbc6795d3f016805dd4e30b7ea4314bc480d98aa99a939578100d135a1ef7f7027aac5295eb845ee880d6c45997a94bcaaebab743ebab23527f82d2b64b7ec2f1c8858d5af06f08d7067dd26a37ebac6dd9d501c8897b650494bc0089068156fab6054fedf492c7feb1e9b38620d614cda0d6714fe098c4d109aeed3e6243a5bc2147957b47cc8f7bee70fa3323400aa64e45353267e4027d35d5965ac20f9edeaee1f577eb1de28faed66e63c5e66550369724fcbdb68200b414e5ebf836d194ba53e5c9ace52c2ae6d5567b6eb2cd3935b7c2d91f629c3ecf8959b32c8eb43d57482a0454664f07fb1d4331cd9b0b7e9ee1aa533d570ffda5548d30f55f20291391939c112deaa1334357d95f4704607f8a0296faefc041db6bf124ab167d2a3ed9cf98241836f8121b218dc1376617dd500562d9137eeaacc66c2071aac87db9002585753bbee68a56344caaa8ed2819dbc4e5a0546c729a7448d0ef614b2b0c99e9fd4d79267c5d4a9be2d2e6ad6e3f621490b650ef6b035dfbeb0fcb6c06a751eb2b1f0c5ebf040dc62a0b267071a919b7356db3e72155f8fd65b0677bcef7258c5ce926982d748649d5b7685f47c84666680968d087d0f61f6f3efe54775e5e512c5f05a66f80de74e4127dffcb8ad1df45bfa9d2d9b0df3a9a36ba9833e555b550ac37e4ff995c1eff05559bebb70d23dd6ec7b8285051684b787bdf7e709bf4b3ce8f218d1a518450ffb4ef45a11abe14a37c46adf920e745c170890fd1b3ff19865add42d49948a71ac2f0f5adc9a2ee6ba1f7d0722e7c193be32c3b2dcd4af1510eaa90aa0f61c4e7c68f05b35595c30fb13a7dc394d4e861beea2c57cacfd403a9faee825323b4d9c2d547ff0cf81893e282c4c33b0da4ec6edd936c5e174d39716cbc2cbdff1af503295d17c81f3ec2ad421d523f8e76d795d081bb80057c3c9d446a141eb3c47551e6c918d120ba3995025955da82cf415307d9223d5bc4bcdb295931f5c2967b32e1ae4628d1c9b2fe4bd6101f53095aa63168c84ff258402b9ce7f09d51137c6ad8da341d95c31b6229f5a5e2eac185fed5583093b4d700b9a801fadf903d609947e2a4af29b38474a01d146c6f6a7132e65550e0ecf2fa5f9ef40222a9cd70f3c93b3e9a010dad9269be1d2c593fb26a059c17b9dee498605609fb144811e9e86be830157d882ce94376d252ecaad4c13359c78bae4db73f40e9c14b2da1ee59de79d39949486f1e23daeea22efcfcccab15bde581ef9d4cfc67a4b9aa41148e4e03747f5009437369b69b642033c31c5080ae5e356de2a2714e2d3f599ac514897a5f79aeb80df79846b07255ee949caf20ddb034a9057d971a085c136197b7e25aa4ff199e56214c51dc3778e9a28075d573a730946db14a7d40f40e5762137fd9bd727acc1b1161e40208fcaebbdf891bddac42897e01f70d430331c6ecaa1801f6aa82b69e08ae40e75b51062e9601d0135f5aba1e108a39deda8d15c281d72887d97eb5744250d261ebd81f2a329a4e4d20b61e23e8e57dad6ff8d8a8c3ed7bad6599555a9e3430b2db2c7f4d0e718225cfcff0752073c73125e39b593e4fa63a33232d19cdcacd06ee0244ff3f200596b5a155d5f227b50ab34b4ab590bc0ba7a446775eb9a4c262cf36178fb703d7c2ef72befd16a2d4d136661513b28c86c9fe8b46676440455adbae2971bd007fb678ecb3dec5dda5c370f5dcbb2f97ce4144be0e0556f5fd71386550936ce9b57f4e30fb7368bb986b12d
|
Run tests:
packages/edge-preview-authenticated-proxy/tests/index.test.ts#L506
Error: toMatchInlineSnapshot cannot be called multiple times at the same location.
❯ tests/index.test.ts:506:29
|
Run tests:
packages/edge-preview-authenticated-proxy/tests/index.test.ts#L506
Error: toMatchInlineSnapshot cannot be called multiple times at the same location.
❯ tests/index.test.ts:506:29
|
Run tests
edge-preview-authenticated-proxy#test:ci: command (/Users/runner/work/workers-sdk/workers-sdk/packages/edge-preview-authenticated-proxy) /Users/runner/setup-pnpm/node_modules/.bin/pnpm run test:ci exited (1)
|
Run tests
Process completed with exit code 1.
|
Upload test report
No files were found with the provided path: /Users/runner/work/_temp/test-report/. No artifacts will be uploaded.
|
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "e2e-test-debug-logs-macos-13-", "e2e-test-debug-logs-ubuntu-latest-", "e2e-test-debug-logs-windows-latest-".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
Loading