node-red / node-red-node-test-helper

A test framework for Node-RED nodes
Apache License 2.0
57 stars 40 forks source link

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

Open Steve-Mcl opened 2 years ago

Steve-Mcl commented 2 years ago

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

shchu commented 1 year ago

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

Steve-Mcl commented 1 year ago

@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