-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Remove connection-oriented parameter cases for non-connection focused tests - For instance, a test about sending messages does not need to be run for both x509 authentication and SAS authentication. Nor does it need to be run for websocket vs TCP - Device/Module cases are still worth testing here because they use different service endpoints when publishing telemetry/methods - Add connection test class for connection-oriented tests - Open/Close connection using all supported permutations of authentication, proxy/no proxy, transport protocol, device/module, TCP vs websocket - Reorganize/cleanup some test code - Some "common" functions were only being used by one test method so they were moved there - Rewrite some tests to use synchronous functions to simplify test code, remove helpers previously used to wait for async calls to finish
- Loading branch information
1 parent
84253a9
commit 23bebfe
Showing
28 changed files
with
830 additions
and
1,875 deletions.
There are no files selected for viewing
22 changes: 0 additions & 22 deletions
22
...dTest/java/com/microsoft/azure/sdk/iot/android/iothub/HubTierConnectionAndroidRunner.java
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
...a/com/microsoft/azure/sdk/iot/android/iothub/connection/ConnectionTestsAndroidRunner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.microsoft.azure.sdk.iot.android.iothub.connection; | ||
|
||
import com.microsoft.azure.sdk.iot.android.helper.TestGroup11; | ||
import com.microsoft.azure.sdk.iot.device.IotHubClientProtocol; | ||
import com.microsoft.azure.sdk.iot.service.auth.AuthenticationType; | ||
import org.junit.runner.RunWith; | ||
import org.junit.runners.Parameterized; | ||
import tests.integration.com.microsoft.azure.sdk.iot.helpers.ClientType; | ||
import tests.integration.com.microsoft.azure.sdk.iot.iothub.connection.ConnectionTests; | ||
|
||
@TestGroup11 | ||
@RunWith(Parameterized.class) | ||
public class ConnectionTestsAndroidRunner extends ConnectionTests | ||
{ | ||
public ConnectionTestsAndroidRunner(IotHubClientProtocol protocol, AuthenticationType authenticationType, ClientType clientType, boolean withProxy) throws Exception | ||
{ | ||
super(protocol, authenticationType, clientType, withProxy); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...re/sdk/iot/iothub/setup/CustomObject.java → ...t/azure/sdk/iot/helpers/CustomObject.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../iot/iothub/setup/NestedCustomObject.java → ...e/sdk/iot/helpers/NestedCustomObject.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.