#8 Find a way to test FCGI stuff...

Open
opened 4 years ago by yannweb · 0 comments
yannweb commented 4 years ago

Functions using libfcgi stuff are more complicated to test. For example :

The libpyfcgi.IoIn class allows worker to read HTTP data from an RawIo interface. This class is written in C and calls FCGX_* functions to read data from FCGX_Stream* returned by FCGX_Accept….

A way to test all this stuff is to create a valid FCGI context. Maybe with a dummy HTTP server sending FCGI requests to the test programm…. Or by re-defining/mocking all FCGX_* functions…. (the second solution seems the simplest/better one)

Functions using libfcgi stuff are more complicated to test. For example : The libpyfcgi.IoIn class allows worker to read HTTP data from an RawIo interface. This class is written in C and calls FCGX_* functions to read data from FCGX_Stream* returned by FCGX_Accept.... A way to test all this stuff is to create a valid FCGI context. Maybe with a dummy HTTP server sending FCGI requests to the test programm.... Or by re-defining/mocking all FCGX_* functions.... (the second solution seems the simplest/better one)
yannweb added this to the BETA version milestone 4 years ago
yannweb added the
question
label 4 years ago
yannweb added the
Tests
label 4 years ago
yannweb modified the milestone from BETA version to Test coverage 4 years ago
yannweb added the
_libpyfcgi
label 4 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
Cancel
Save
There is no content yet.