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

Added Tests For Endpoint Service #2808

Merged
merged 1 commit into from
Mar 11, 2020

Conversation

zanpizmoht
Copy link
Contributor

Added tests for creating, deleting and editing Endpoints.

Signed-off-by: zanpizmoht zan.pizmoht@comtrade.com

In this PR new test scenarios for Endpoint service are created.

Related Issue
None

Description of the solution adopted
Test scenarios that are added in this PR are checking functionalities regarding Endpoints. All scenarios are added to EndpointServiceI9n.feature. Scenarios are testing if Endpoints are correctly created, edited or deleted. There are also two scenarios added for testing Endpoint in different accounts.

Screenshots
/

@codecov
Copy link

codecov bot commented Jan 8, 2020

Codecov Report

Merging #2808 into develop will increase coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #2808      +/-   ##
=============================================
+ Coverage      55.02%   55.08%   +0.05%     
+ Complexity      2364     2361       -3     
=============================================
  Files           1021     1021              
  Lines          21871    21871              
  Branches        1977     1977              
=============================================
+ Hits           12035    12048      +13     
+ Misses          8924     8910      -14     
- Partials         912      913       +1     
Impacted Files Coverage Δ Complexity Δ
.../engine/jbatch/exception/JobStartingException.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-1.00%)
...ob/engine/jbatch/exception/JobEngineException.java 33.33% <0.00%> (-33.34%) 1.00% <0.00%> (-1.00%)
...rtz/persistence/KapuaQuartzConnectionProvider.java 87.50% <0.00%> (-12.50%) 4.00% <0.00%> (-1.00%)
.../DeviceManagementNotificationMessageProcessor.java 64.28% <0.00%> (-7.15%) 0.00% <0.00%> (ø%)
...e/jbatch/listener/QueuedJobExecutionCheckTask.java 87.09% <0.00%> (-6.46%) 7.00% <0.00%> (ø%)
...apua/job/engine/jbatch/JobEngineServiceJbatch.java 48.14% <0.00%> (-3.71%) 7.00% <0.00%> (-1.00%)
...a/org/eclipse/kapua/transport/mqtt/MqttClient.java 62.19% <0.00%> (+6.09%) 14.00% <0.00%> (ø%)
...ransport/mqtt/pooling/PooledMqttClientFactory.java 71.42% <0.00%> (+9.52%) 7.00% <0.00%> (ø%)
.../transport/mqtt/exception/MqttClientException.java 33.33% <0.00%> (+33.33%) 0.00% <0.00%> (ø%)
...ort/mqtt/exception/MqttClientConnectException.java 50.00% <0.00%> (+50.00%) 0.00% <0.00%> (ø%)
... and 1 more

@Coduz Coduz self-requested a review January 9, 2020 08:58
@Coduz Coduz added the Test Test related stuff. It's a dirty job, but someone needs to do that! label Jan 9, 2020
@Coduz
Copy link
Contributor

Coduz commented Jan 10, 2020

CQ submitted: CQ 21396

@Coduz Coduz added the CQ pending This PR needs a CQ to be approved from Eclipse before merging. label Jan 10, 2020
Copy link
Contributor

@LeoNerdoG LeoNerdoG left a comment

Choose a reason for hiding this comment

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

Hi @zanpizmoht,
I have reviewed the PR and there are some changes that need to be made.
Please take a look at the comments and fix the selected lines.

Copy link
Contributor

@LeoNerdoG LeoNerdoG left a comment

Choose a reason for hiding this comment

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

Hi @zanpizmoht,
I have reviewed the PR and there are some changes that need to be made.
Please take a look at the comments and fix the selected lines.

@zanpizmoht zanpizmoht force-pushed the endpointIntegrationTests branch from 1bb6efc to 33ea738 Compare January 23, 2020 14:11
Copy link
Contributor

@LeoNerdoG LeoNerdoG left a comment

Choose a reason for hiding this comment

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

Hey @zanpizmoht,
I have checked this PR again and there are still some comments that need to be addessed. Please review them and fix them accordingly.

@zanpizmoht zanpizmoht force-pushed the endpointIntegrationTests branch from 33ea738 to 1301825 Compare January 31, 2020 08:58
Copy link
Contributor

@LeoNerdoG LeoNerdoG left a comment

Choose a reason for hiding this comment

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

Everything is OK now from QA side.
@Coduz can you please check the status of CQ and rerun failing tests so we will have accurate codeCov?

thanks!

@Coduz
Copy link
Contributor

Coduz commented Mar 10, 2020

CQ approved 🎉

@Coduz Coduz added CQ approved The PR has passed CQ approvation and removed CQ pending This PR needs a CQ to be approved from Eclipse before merging. labels Mar 10, 2020
Added tests for creating, deleting and editing Endpoints.

Signed-off-by: zanpizmoht <zan.pizmoht@comtrade.com>
@zanpizmoht zanpizmoht force-pushed the endpointIntegrationTests branch from e3882c3 to 5e7fba1 Compare March 10, 2020 12:56
@Coduz Coduz merged commit 593b9fc into eclipse-kapua:develop Mar 11, 2020
@zanpizmoht zanpizmoht deleted the endpointIntegrationTests branch March 26, 2020 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CQ approved The PR has passed CQ approvation Test Test related stuff. It's a dirty job, but someone needs to do that!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants