node-red-node-test-helper icon indicating copy to clipboard operation
node-red-node-test-helper copied to clipboard

Unable to add unit tests to for http in / http response (404 errors)

Open Steve-Mcl opened this issue 3 years ago • 2 comments

Originally raised in node-red/3489

Current Behaviour

I am looking at adding unit tests for the HTTP-In and HTTP-Response nodes (before I add a new feature). I have the bones of it working but the HTTP-In Node never gets called (the test always errors with a 404)

REF: https://node-red.slack.com/archives/C9RSU6S56/p1646839765269019

Expected Behavior

To be able to call Endpoint so that HTTP In Node Unit Tests can be added to node-red

Steps To Reproduce

Add test flow with http in node Call endpoint with got or fetch or browser - instant 404

Environment

Node-RED version: 2.2.2 Node.js version: 14 npm version: na Platform/OS: na Browser: na

Steve-Mcl avatar Mar 12 '22 15:03 Steve-Mcl

Hi @Steve-Mcl, did you find any solution for this issue?

shchu avatar Dec 19 '22 16:12 shchu

@shchu

Unfortunately not I'm afraid.

If you make any progress on this please raise a pr or let me know what you did to achieve it.

That is the best I can offer at this point

Steve-Mcl avatar Dec 19 '22 19:12 Steve-Mcl