Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

[Node Manager] Junit test with MockIgniteServer #201

Merged
merged 15 commits into from
May 21, 2020

Conversation

kimeunju108
Copy link
Contributor

This PR show the following changes:

  • Junit configuration change - MockIgniteServer server port
  • Ignite port: 10800 ->10801

@kimeunju108 kimeunju108 requested review from xieus, cathyhongzhang and kevin-zhonghao and removed request for cathyhongzhang May 17, 2020 10:06
@xieus xieus changed the title Node Manager (Meta Data) - Junit test with MockIgniteServer [Node Manager] Junit test with MockIgniteServer May 17, 2020
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;
import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

@RunWith(SpringRunner.class)
@SpringBootTest()
@AutoConfigureMockMvc
public class NodeControllerTest {
public class NodeControllerTest extends MockIgniteServer {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the node manager UTs currently need MockIgniteServer as it doesn't have real e2e test cases. But it is okay to add in advance so that you could add more e2e UTs in the future.

@xieus xieus added the unit test Unit test label May 17, 2020
@xieus xieus added this to the Version 0.5.2020.05.30 milestone May 17, 2020
@xieus xieus linked an issue May 17, 2020 that may be closed by this pull request
@xieus xieus merged commit b12077a into futurewei-cloud:master May 21, 2020
@kimeunju108 kimeunju108 deleted the eunju/nodemanager branch May 22, 2020 19:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
unit test Unit test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Micro-service] Node manager
2 participants