is it allowed to add a small server, used for mocking calls?
p
Pat
06/24/2025, 6:38 AM
What do you mean?
r
reda ghouzraf
06/25/2025, 10:17 AM
i want to test an utility of a plugin, that make request to an endpoint, and i have created a small server that act as mocking server, i don't know if it's okay, or i should create runtime tests for mocking calls.
p
Pat
06/25/2025, 10:17 AM
I still don't really follow, is this something you are contributing to OSS? In which case it needs to all be runnable locally by CI and other users.
Pat
06/25/2025, 10:18 AM
You can have a look at some of the other tests for plugins to see
r
reda ghouzraf
06/25/2025, 10:23 AM
I'm working on the oracle plugin and want to mock some calls to the imds server, i created a small server for that purpose but im not sure if it's acceptable according to fb guidelines, or if i should instead use runtime tests like other plugins
p
Pat
06/25/2025, 10:23 AM
Runtime tests, the mocking server may be useful for debugging/dev but ultimately won't be something integrated into the rest of the build & test CI