Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Steve-Mcl opened this issue Mar 12, 2022 · 2 comments
Open

Comments

@Steve-Mcl
Copy link
Contributor

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
Copy link

shchu commented Dec 19, 2022

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

@Steve-Mcl
Copy link
Contributor Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants