-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
apollo-mockserver #55
Comments
可以参考下测试实例 |
多谢回复,但是好像没效果,效果是:测试方法testInterfaceA跑起来后,发现注入的值是value1,而不是value2,期望是value2。 大佬帮忙看看 @nobodyiam ,大致使用方式伪代码如下:
配置文件
|
上面贴的测试示例能正常跑吗? |
伪代码,我整一个能跑的demo出来,晚点上传,请帮忙看看,多谢。 https://github.com/cheese8/apollo-mockserver-demo @nobodyiam 大佬,请帮忙看看,感谢。 好像是版本错配的原因,我调整版本再测试下,稍晚反馈,感谢。 |
我觉得可以这么玩:添加一个方法 |
感谢大佬提供新玩法。
反馈验证结论:
3、apollo-client 2.2.0和apollo-mockserver 1.2.0报错,代码略有问题,ImmutableMap再put肯定会挂
4、必须把系统启动依赖apollo配置,全部整理成mockdata-namespace.properties放在src/test/resources/下面,namespace一多,管理维护起来还是挺烦的,不知道是否有啥好建议? |
咨询使用方式
微服务X通过app.id, env, namespaces等接入Apollo,现在想对微服务X进行接口e2e的集成测试,apollo-mockserver是否支持在应用启动后(拉取全量apollo配置)不同的集成测试case中,mock注入和覆盖apollo key & value?
The text was updated successfully, but these errors were encountered: