]> git.basschouten.com Git - openhab-addons.git/commitdiff
[ahawastecollection] Disable AhaCollectionScheduleTest (#12974)
authorWouter Born <github@maindrain.net>
Mon, 20 Jun 2022 18:07:58 +0000 (20:07 +0200)
committerGitHub <noreply@github.com>
Mon, 20 Jun 2022 18:07:58 +0000 (20:07 +0200)
These tests use the real website which causes unwanted load, network connections and test failures.

See: https://github.com/openhab/openhab-addons/actions/runs/2529936944

```
[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 4.109 s <<< FAILURE! - in org.openhab.binding.ahawastecollection.internal.AhaCollectionScheduleTest
[ERROR] org.openhab.binding.ahawastecollection.internal.AhaCollectionScheduleTest.testGetValuesForRegion  Time elapsed: 3.294 s  <<< ERROR!
org.jsoup.UnsupportedMimeTypeException: Unhandled content type. Must be text/*, application/xml, or application/*+xml
at org.openhab.binding.ahawastecollection.internal.AhaCollectionScheduleTest.testGetValuesForRegion(AhaCollectionScheduleTest.java:42)

[ERROR] org.openhab.binding.ahawastecollection.internal.AhaCollectionScheduleTest.testGetValuesForHannoverCity  Time elapsed: 0.726 s  <<< ERROR!
org.jsoup.UnsupportedMimeTypeException: Unhandled content type. Must be text/*, application/xml, or application/*+xml
at org.openhab.binding.ahawastecollection.internal.AhaCollectionScheduleTest.testGetValuesForHannoverCity(AhaCollectionScheduleTest.java:33)
```

Signed-off-by: Wouter Born <github@maindrain.net>
bundles/org.openhab.binding.ahawastecollection/src/test/java/org/openhab/binding/ahawastecollection/internal/AhaCollectionScheduleTest.java

index d3fed9bdab202d1aaac65cee3e7c7349e6c65f7b..1d18f08eb248dbc4cf42568ee7de84217496e9c0 100644 (file)
@@ -17,6 +17,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 import java.util.Map;
 
 import org.eclipse.jdt.annotation.NonNullByDefault;
+import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Test;
 import org.openhab.binding.ahawastecollection.internal.CollectionDate.WasteType;
 
@@ -24,6 +25,7 @@ import org.openhab.binding.ahawastecollection.internal.CollectionDate.WasteType;
  * @author Sönke Küper - Initial contribution
  */
 @NonNullByDefault
+@Disabled("These tests use the real website which may not always be available")
 public class AhaCollectionScheduleTest {
 
     @Test