Skip to content

Commit

Permalink
Smoketest runtimes (Azure#7287)
Browse files Browse the repository at this point in the history
* try bumping the .net core sdk version

* use the most recent working sdk

* update KV

* and use the latest runtime...

* use a matrix to tighten the inner loop

* update azure sdk packages

* remove matrix, always use the latest
  • Loading branch information
danieljurek authored and JonathanCrd committed Aug 14, 2019
1 parent ffe3f8a commit 918ec2a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 19 deletions.
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

0 comments on commit 918ec2a

Please sign in to comment.