-
Notifications
You must be signed in to change notification settings - Fork 104
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
Split yaml config file #145
Comments
Hi @harrysun2006 , Thank you for the kind words! You are right - there is one main YAML config file. But, there is an option to use the Please let me know if the above helped. Cheers, |
Hi Alex, Thanks for your prompt response. Yes, the
and correspondingly, we have service1, service2 folders and response1.json, response2.json in service1 folder etc. etc. Our application talks with many downstream services, and the
and then we can define stub endpoints for each service in their own I'm keen to know your thoughts on it. Cheers, |
Hi Harry, I see. Another idea that I am thinking about perhaps I can look into making the But, looking deeper into the code, I think I want to explore your idea first. Too much in stubby4j works on the premise that there was one main YAML file loaded |
Thanks Alex. That would be great! |
Hello @harrysun2006 Would you be able to sanity check the new behavior for me? I have tested it manually and through automated functional tests and it seems that app behaves as expected. Could you fork the repo and run:
Pls create a main YAML file which you pass under
Please note: make sure that the included files are in the same directory as the main YAML file |
Hi Alex, I did some test on build and the new structure, all good except a minor test error under java 11 (no errors when building under java 8):
The project is running well and now the config files are much cleaner. Great job! Thanks, |
Harry, thank you! I will release the new JAR then soon. Also, thanks for picking up java 11 issue. Will address it separately |
Thank you, Alex. Much appreciated! |
@harrysun2006 pls wait for |
Also, @harrysun2006 I am not sure if running in Docker is relevant to your eco system, but just as FYI - there are stubby Docker images in DockerHub: https://hub.docker.com/r/azagniotov/stubby4j |
Thanks Alex. We build the stubby4j docker image based on openjdk:11-jre-slim. |
Got it. I just published another stubby4j image to DockerHub, which is based on |
Hey Alexander,
My team starts to use stubby4j. It's a lightweight mocking tool and we love its simplicity. Thank you for bringing up this wonderful tool.
However, while we keep adding stub endpoints into the yaml config file, it becomes bigger and bigger. I've done some research around, but couldn't find a feature like "import" or "include" to allow us to split the all-in-one yaml config file into a few smaller yaml files.
I'm wondering is there a plan for such features in the future development?
Thanks,
Harry
The text was updated successfully, but these errors were encountered: