Skip to content
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

Automated REST API tests #1935

Closed
muros-ct opened this issue Aug 9, 2018 · 1 comment
Closed

Automated REST API tests #1935

muros-ct opened this issue Aug 9, 2018 · 1 comment
Assignees
Labels
Projects

Comments

@muros-ct
Copy link
Contributor

@muros-ct muros-ct commented Aug 9, 2018

Kapua REST API needs automated tests
Kapua REST API exposes functionality that is not regression tested. For that reason
automated tests are necessary.

Solution
Use existing integration tests infrastructure to provide regression testing of Kapua REST API.
Gherkin scenarios can describe use case for testing.
Implement embedded Jetty server where REST API shall be deployed for testing.

Alternatives
There are two alternatives:

  1. Embedded Jetty server with REST API.
  2. Dockerized deployment of REST API, this solution only works in closed environment as first also works on Travis and similar CI environments.

Additional context
First solution is already in phase of evaluation and I might be a little biased towards that option.

@muros-ct muros-ct self-assigned this Aug 9, 2018
@muros-ct muros-ct added this to In Progress in 1.1.0 Aug 10, 2018
@muros-ct muros-ct added this to To do in 1.0.1 via automation Aug 29, 2018
@muros-ct muros-ct removed this from In Progress in 1.1.0 Aug 29, 2018
@Coduz Coduz moved this from To do to Backport in 1.0.1 Aug 29, 2018
@muros-ct muros-ct added this to To Do in 1.1.0 Sep 3, 2018
@muros-ct muros-ct moved this from To Do to In Progress in 1.1.0 Sep 3, 2018
@Coduz Coduz removed this from Backport in 1.0.1 Sep 11, 2018
@muros-ct muros-ct moved this from In Progress to In Testing in 1.1.0 Sep 13, 2018
@muros-ct

This comment has been minimized.

Copy link
Contributor Author

@muros-ct muros-ct commented Sep 18, 2018

This issue was addressed in PR #1936.
All necessary changes to existing tests and refactoring has been done.
Also simple rest api test was provided as POC, where embedded jetty container is started together with all other services, and rest api WAR is deployed and tested.

@muros-ct muros-ct closed this Sep 18, 2018
1.1.0 automation moved this from In Testing to Done Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
1.1.0
  
Done
1 participant
You can’t perform that action at this time.