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

feat(e2e): Devices E2E tests #12997

Merged
merged 13 commits into from
Jun 26, 2020
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ protected DevicesClient() { }
public virtual Azure.AsyncPageable<Azure.Iot.Hub.Service.Models.TwinData> GetTwinsAsync(int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response<Azure.Iot.Hub.Service.Models.CloudToDeviceMethodResponse> InvokeMethod(string deviceId, Azure.Iot.Hub.Service.Models.CloudToDeviceMethodRequest directMethodRequest, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Iot.Hub.Service.Models.CloudToDeviceMethodResponse>> InvokeMethodAsync(string deviceId, Azure.Iot.Hub.Service.Models.CloudToDeviceMethodRequest directMethodRequest, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response<Azure.Iot.Hub.Service.Models.BulkRegistryOperationResponse> UpdateIdenties(System.Collections.Generic.IEnumerable<Azure.Iot.Hub.Service.Models.DeviceIdentity> deviceIdentities, Azure.Iot.Hub.Service.BulkIfMatchPrecondition precondition = Azure.Iot.Hub.Service.BulkIfMatchPrecondition.IfMatch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Iot.Hub.Service.Models.BulkRegistryOperationResponse>> UpdateIdentiesAsync(System.Collections.Generic.IEnumerable<Azure.Iot.Hub.Service.Models.DeviceIdentity> deviceIdentities, Azure.Iot.Hub.Service.BulkIfMatchPrecondition precondition = Azure.Iot.Hub.Service.BulkIfMatchPrecondition.IfMatch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response<Azure.Iot.Hub.Service.Models.BulkRegistryOperationResponse> UpdateIdentities(System.Collections.Generic.IEnumerable<Azure.Iot.Hub.Service.Models.DeviceIdentity> deviceIdentities, Azure.Iot.Hub.Service.BulkIfMatchPrecondition precondition = Azure.Iot.Hub.Service.BulkIfMatchPrecondition.IfMatch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Iot.Hub.Service.Models.BulkRegistryOperationResponse>> UpdateIdentitiesAsync(System.Collections.Generic.IEnumerable<Azure.Iot.Hub.Service.Models.DeviceIdentity> deviceIdentities, Azure.Iot.Hub.Service.BulkIfMatchPrecondition precondition = Azure.Iot.Hub.Service.BulkIfMatchPrecondition.IfMatch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response<Azure.Iot.Hub.Service.Models.TwinData> UpdateTwin(Azure.Iot.Hub.Service.Models.TwinData twinUpdate, Azure.Iot.Hub.Service.IfMatchPrecondition precondition = Azure.Iot.Hub.Service.IfMatchPrecondition.IfMatch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Iot.Hub.Service.Models.TwinData>> UpdateTwinAsync(Azure.Iot.Hub.Service.Models.TwinData twinUpdate, Azure.Iot.Hub.Service.IfMatchPrecondition precondition = Azure.Iot.Hub.Service.IfMatchPrecondition.IfMatch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response<Azure.Iot.Hub.Service.Models.BulkRegistryOperationResponse> UpdateTwins(System.Collections.Generic.IEnumerable<Azure.Iot.Hub.Service.Models.TwinData> twinUpdates, Azure.Iot.Hub.Service.BulkIfMatchPrecondition precondition = Azure.Iot.Hub.Service.BulkIfMatchPrecondition.IfMatch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
Expand Down

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions sdk/iot/Azure.Iot.Hub.Service/src/DevicesClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public virtual Response<BulkRegistryOperationResponse> CreateIdentities(IEnumera
/// <param name="precondition">The condition on which to update each device identity.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>The result of the bulk operation and the http response <see cref="Response{T}"/>.</returns>
public virtual Task<Response<BulkRegistryOperationResponse>> UpdateIdentiesAsync(
public virtual Task<Response<BulkRegistryOperationResponse>> UpdateIdentitiesAsync(
IEnumerable<DeviceIdentity> deviceIdentities,
BulkIfMatchPrecondition precondition = BulkIfMatchPrecondition.IfMatch,
CancellationToken cancellationToken = default)
Expand Down Expand Up @@ -278,7 +278,7 @@ public virtual Task<Response<BulkRegistryOperationResponse>> UpdateIdentiesAsync
/// <param name="precondition">The condition on which to update each device identity.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>The result of the bulk operation and the http response <see cref="Response{T}"/>.</returns>
public virtual Response<BulkRegistryOperationResponse> UpdateIdenties(
public virtual Response<BulkRegistryOperationResponse> UpdateIdentities(
IEnumerable<DeviceIdentity> deviceIdentities,
BulkIfMatchPrecondition precondition = BulkIfMatchPrecondition.IfMatch,
CancellationToken cancellationToken = default)
Expand Down
14 changes: 7 additions & 7 deletions sdk/iot/Azure.Iot.Hub.Service/src/IoTHubServiceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,27 @@ public class IoTHubServiceClient
private readonly DeviceMethodRestClient _deviceMethodRestClient;

/// <summary>
/// place holder for Devices
/// place holder for Devices.
/// </summary>
public virtual DevicesClient Devices { get; private set; }

/// <summary>
/// place holder for Modules
/// place holder for Modules.
/// </summary>
public virtual ModulesClient Modules { get; private set; }

/// <summary>
/// place holder for Statistics
/// place holder for Statistics.
/// </summary>
public virtual StatisticsClient Statistics { get; private set; }

/// <summary>
/// place holder for Messages
/// place holder for Messages.
/// </summary>
public virtual CloudToDeviceMessagesClient Messages { get; private set; }

/// <summary>
/// place holder for Files
/// place holder for Files.
/// </summary>
public virtual FilesClient Files { get; private set; }

Expand Down Expand Up @@ -95,7 +95,7 @@ public IoTHubServiceClient(string connectionString, IoTHubServiceClientOptions o
_httpPipeline = HttpPipelineBuilder.Build(options);

_registryManagerRestClient = new RegistryManagerRestClient(_clientDiagnostics, _httpPipeline, _endpoint, options.GetVersionString());
_twinRestClient = new TwinRestClient(_clientDiagnostics, _httpPipeline, null, options.GetVersionString());
_twinRestClient = new TwinRestClient(_clientDiagnostics, _httpPipeline, _endpoint, options.GetVersionString());
_deviceMethodRestClient = new DeviceMethodRestClient(_clientDiagnostics, _httpPipeline, _endpoint, options.GetVersionString());

Devices = new DevicesClient(_registryManagerRestClient, _twinRestClient, _deviceMethodRestClient);
Expand Down Expand Up @@ -144,7 +144,7 @@ public IoTHubServiceClient(Uri endpoint, TokenCredential credential, IoTHubServi
_httpPipeline = HttpPipelineBuilder.Build(options);

_registryManagerRestClient = new RegistryManagerRestClient(_clientDiagnostics, _httpPipeline, _endpoint, options.GetVersionString());
_twinRestClient = new TwinRestClient(_clientDiagnostics, _httpPipeline, null, options.GetVersionString());
_twinRestClient = new TwinRestClient(_clientDiagnostics, _httpPipeline, _endpoint, options.GetVersionString());
_deviceMethodRestClient = new DeviceMethodRestClient(_clientDiagnostics, _httpPipeline, _endpoint, options.GetVersionString());

Devices = new DevicesClient(_registryManagerRestClient, _twinRestClient, _deviceMethodRestClient);
Expand Down
Loading