Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
628 views
in Technique[技术] by (71.8m points)

sap-cloud-platform - 如果对Cloud Foundry环境有任何依赖性,则无法在本地和pipleline中运行集成测试用例。(Fail to run integration test cases locally and in pipleline if there is any dependency on Cloud Foundry environment [closed])

It might not be a concrete question but we need to take it into our consideration.

(这可能不是一个具体的问题,但我们需要考虑它。)

I am talking about sdk archetype project.

(我说的是sdk原型项目。)

Supposing we are enabling spring security and have a problem described in stackoverflow Fail to start application locally after ensbling Spring Security .

(假设我们启用了Spring Security,并且在stackoverflow中描述了一个问题,即在启用Spring Security后无法在本地启动应用程序 。)

Or we are using a cloud database on Cloud Foundry environment but actually we can not access it locally due to service binding when deployment(not direct URL).

(或者我们正在Cloud Foundry环境上使用云数据库,但实际上由于部署时的服务绑定(非直接URL),我们无法在本地访问它。)

Definitely we cannot start the application locally due to lack of cloud foundry environment.

(由于缺乏云铸造环境,我们绝对不能在本地启动该应用程序。)

It would result in some problems regarding integration test:

(这将导致有关集成测试的一些问题:)

  1. Cannot run any integration test case locally to test rest api as it would require application startup

    (无法在本地运行任何集成测试用例以测试Rest API,因为这将需要启动应用程序)

  2. Cannot package application to jar file as integration test step would fail A workaround is disabling all integration test cases, which is not so good.

    (由于集成测试步骤将失败,因此无法将应用程序打包到jar文件中。一种解决方法是禁用所有集成测试用例,这不是很好。)

  3. The stage of integration test in the pipleline would fail because the application is running in jenkins environment.

    (由于应用程序在jenkins环境中运行,因此pipleline中的集成测试阶段将失败。)

Do you have suggestions regarding this problem?

(您对这个问题有建议吗?)

  ask by Jerry Zhang translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...