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

Smoketest runtimes #7287

Merged
merged 7 commits into from
Aug 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions eng/pipelines/smoke-tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
variables:
- template: ./templates/variables/globals.yml

jobs:
- job: SmokeTest

variables:
- template: ./templates/variables/globals.yml

steps:
- task: DotNetCoreInstaller@2
displayName: "Use .NET Core sdk $(DotNetCoreSDKVersion)"
Expand Down
3 changes: 1 addition & 2 deletions samples/SmokeTest/SmokeTest/BlobStorageTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
// Licensed under the MIT License.
// ------------------------------------
using Azure.Storage.Blobs;
using Azure.Storage.Blobs.Specialized;
using System;
using System.IO;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices.ComTypes;
using System.Text;
using System.Threading.Tasks;

Expand Down
14 changes: 5 additions & 9 deletions samples/SmokeTest/SmokeTest/EventHubsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ namespace SmokeTest
class EventHubsTest
{
private static EventHubClient client;
private static EventSender sender;
private static EventReceiver receiver;
private static EventHubProducer sender;
private static EventHubConsumer receiver;

/// <summary>
/// Test the Event Hubs SDK by sending and receiving events
Expand All @@ -47,16 +47,12 @@ private static async Task CreateSenderAndReceiver()
{
Console.Write("Creating the Sender and Receivers... ");
var partition = (await client.GetPartitionIdsAsync()).First();
var senderOptions = new EventSenderOptions
var producerOptions = new EventHubProducerOptions
{
PartitionId = partition
};
var receiverOptions = new EventReceiverOptions
{
BeginReceivingAt = EventPosition.NewEventsOnly
};
sender = client.CreateSender(senderOptions);
receiver = client.CreateReceiver(partition, receiverOptions);
sender = client.CreateProducer(producerOptions);
receiver = client.CreateConsumer(EventHubConsumer.DefaultConsumerGroupName, partition, EventPosition.Latest);
Console.WriteLine("\tdone");
}

Expand Down
10 changes: 5 additions & 5 deletions samples/SmokeTest/SmokeTest/SmokeTest.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Identity" Version="1.0.0-dev.20190621.1" />
<PackageReference Include="Azure.Messaging.EventHubs" Version="4.0.0-dev.20190618.1" />
<PackageReference Include="Azure.Security.Keyvault.Secrets" Version="1.0.0-dev.20190621.1" />
<PackageReference Include="Azure.Storage.Blobs" Version="1.0.0-dev.20190621.1" />
<PackageReference Include="Azure.Identity" Version="1.0.0-preview.3" />
<PackageReference Include="Azure.Messaging.EventHubs" Version="5.0.0-preview.2" />
<PackageReference Include="Azure.Security.Keyvault.Secrets" Version="4.0.0-preview.3" />
<PackageReference Include="Azure.Storage.Blobs" Version="12.0.0-preview.2" />
<PackageReference Include="Microsoft.Azure.DocumentDB" Version="2.4.1" />
<PackageReference Include="Microsoft.Azure.DocumentDB.Core" Version="2.4.1" />
</ItemGroup>
Expand Down