Skip to content

test: Improved CloudConnectionEndpointsTest [backport release-5.6.0]#6186

Merged
nicolatimeus merged 2 commits intorelease-5.6.0from
fix_cloud-connection-rest-test-5.6
Feb 23, 2026
Merged

test: Improved CloudConnectionEndpointsTest [backport release-5.6.0]#6186
nicolatimeus merged 2 commits intorelease-5.6.0from
fix_cloud-connection-rest-test-5.6

Conversation

@nicolatimeus
Copy link
Copy Markdown
Member

@nicolatimeus nicolatimeus commented Feb 19, 2026

Note: We are using the Conventional Commits convention for our pull request titles. Please take a look at the PR title format document for the supported types and scopes.

Brief description of the PR. [e.g. Added null check on object to avoid NullPointerException]

  • Use a dedicated cloud stack for each test
  • shouldConnectEndpoint() does not rely anymore on the configuration step performed by shouldUpdateStackComponentConfigurations()
  • Use a dedicated moquette broker instance for connection test
  • Ensure that MqttDataTransport has a client id configured before starting the tests (SystemService may not provide a client id if primary network interface is not configured properly)
  • shouldGetStackComponentPids() no longer fails depending on the order of the component pids returned by the server

Signed-off-by: Nicola Timeus <nicola.timeus@eurotech.com>
@nicolatimeus nicolatimeus changed the title test: Improved CloudConnectionEndpointsTest test: Improved CloudConnectionEndpointsTest [backport release-5.6.0] Feb 19, 2026
@nicolatimeus nicolatimeus marked this pull request as ready for review February 23, 2026 08:21
@@ -25,4 +25,5 @@ Import-Package: com.google.gson;version="2.9.0",
Fragment-Host: org.eclipse.kura.rest.cloudconnection.provider
Require-Bundle: org.eclipse.kura.http.server.manager;bundle-version="1.1.0",
org.eclipse.kura.broker.artemis.core;bundle-version="1.2.0",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would remove the version near the bundles to rely on the ones build in the reactor. Sometime it is source of problems if the packages version are updated


givenUpdateComponentConfigurationRequest(UPDATE_COMPONENT_CONFIGURATION_REQUEST);
givenUpdateComponentConfigurationRequest("{" + //
"\"configs\": [" + //
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

To improve maintainability, I'd move the configuration request to an external file.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I've put them inline to be able to add pass some dynamic parameters in the requests

@nicolatimeus nicolatimeus merged commit fcfc869 into release-5.6.0 Feb 23, 2026
3 checks passed
@nicolatimeus nicolatimeus deleted the fix_cloud-connection-rest-test-5.6 branch February 23, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants