Skip to content

Commit

Permalink
♻️ [Test] Cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Alberto Codutti <[email protected]>
  • Loading branch information
Coduz committed Jan 21, 2025
1 parent fd667ac commit 4e05b8e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ public void startFullDockerEnvironment() throws Exception {
/**
* Starts Docker container requested.
*
* TODO: Add missing Telemetry mapping
* TODO: Move to start multiple resources and check readiness of components in parallel
*
* @param dockerContainers The Docker containers to start
* @throws Exception
* @since 2.1.0
Expand Down Expand Up @@ -313,7 +316,7 @@ public void startDockerEnvironmentWithResources(List<String> dockerContainers) t
case "events-broker":
case "job-engine":
case "message-broker": {
// Nothing to do. Those containers are delay-based.
// Nothing to do.
// Waiting to refactor them
} break;
case "broker-auth-service": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import java.net.URL;

/**
* Wrapper for {@link HttpURLConnection} that implements {@link AutoCloseable}
* Test readiness for HTTP-based components utility.
*
* @since 2.1.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
import org.eclipse.paho.client.mqttv3.MqttSecurityException;
import org.eclipse.paho.client.mqttv3.persist.MemoryPersistence;

import java.net.HttpURLConnection;

/**
* Wrapper for {@link HttpURLConnection} that implements {@link AutoCloseable}
* Test readiness for Message Broker utility.
*
* @since 2.1.0
*/
Expand All @@ -41,9 +39,9 @@ public TestReadinessMqttBrokerConnection(String testReadinessAddress) {
}

/**
* Checks that the HTTP returns the expected HTTP response code.
* Checks that the MQTT returns an authentication error.
*
* @return {@code true} if expected code is returned, {@code false} otherwise
* @return {@code true} if expected error is returned, {@code false} otherwise
* @throws MqttException
* @since 2.1.0
*/
Expand Down Expand Up @@ -73,7 +71,7 @@ public boolean isReady() throws MqttException {
}

/**
* Invokes {@link HttpURLConnection#disconnect()} to clean up resources.
* Invokes {@link MqttClient#close()} to clean up resources.
*
* @since 2.1.0
*/
Expand Down

0 comments on commit 4e05b8e

Please sign in to comment.