apollographql / router

A configurable, high-performance routing runtime for Apollo Federation 🚀
https://www.apollographql.com/docs/router/
Other
807 stars 272 forks source link

rhai script testing story #1068

Open abernix opened 2 years ago

abernix commented 2 years ago

This is just meant to track the need to try to define that story. Part of the work here will be to fill out this issue with a design plan. 😉

a-pedini commented 1 year ago

is there any news on this one? 😅 sorry to butt my head in.. we're just about to migrate to the router and our plan is to simply deploy our config and rhai script as configmaps mounted in the right paths for the official image, but we're looking for a way to test our script in the ci/cd pipeline so that we don't mistakenly deploy a broken one :P locally I'm just sending graphql queries to it, but it needs to be connected to a subgraph for that... any ideas of how we could achieve that?

joemccall86 commented 1 year ago

We could use this too!

samjcombs commented 1 year ago

+1 this would be a great feature.

tvsofa commented 1 year ago

+1 We're moving towards @a-pedini 's approach and would like to able to test Rhai scripts too.

smyrick commented 2 weeks ago

To follow up, this should still be a feature of the Router. In the meantime the Solutions team has created an external tool to help test Rhai scripts: https://github.com/apollosolutions/rhai-test