Skip to content
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
1 change: 1 addition & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
- Allow sync trigger to happen in managed environment when `AzureWebJobsStorage` is not set (#10767)
- Fixing default DateTime bug with TimeZones in TimerTrigger (#10906)
- Adjusting the logic to determine the warmup call in placeholder simulation mode to align with the production flow (#10918)
- Fixing invalid DateTimes in status blobs when invoking via portal (#10916)
4 changes: 2 additions & 2 deletions src/WebJobs.Script/WebJobs.Script.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
Expand Down Expand Up @@ -41,7 +41,7 @@
<PackageReference Include="Microsoft.Azure.WebJobs.Host.Storage" Version="5.0.1" />
<PackageReference Include="Microsoft.Extensions.Azure" Version="1.7.1" />
<PackageReference Include="Microsoft.Azure.AppService.Proxy.Client" Version="2.3.20240307.67" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="5.2.0-12282" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="5.2.0-12287" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Http" Version="3.2.0" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Timers.Storage" Version="1.0.0-beta.1" />
<PackageReference Include="Microsoft.Azure.WebJobs.Script.Abstractions" Version="1.0.4-preview" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
using Microsoft.Azure.WebJobs.Script.WebHost.Management.LinuxSpecialization;
using Microsoft.Azure.WebJobs.Script.WebHost.Models;
using Microsoft.Azure.WebJobs.Script.Workers.Rpc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Microsoft.WebJobs.Script.Tests;
Expand Down Expand Up @@ -967,16 +966,19 @@ public async Task Does_Not_Mount_Invalid_BYOS_Accounts()

var meshInitServiceClient = new Mock<IMeshServiceClient>(MockBehavior.Strict);

bool called = false;
meshInitServiceClient.Setup(client =>
client.MountCifs(Utility.BuildStorageConnectionString(account1, accessKey1, CloudConstants.AzureStorageSuffix), share1, targetPath1)).Returns(Task.FromResult(true));
client.MountCifs(Utility.BuildStorageConnectionString(account1, accessKey1, CloudConstants.AzureStorageSuffix), share1, targetPath1))
.Returns(Task.FromResult(true))
.Callback(() => called = true);

var instanceManager = new AtlasInstanceManager(_optionsFactory, _httpClientFactory, _scriptWebEnvironment, _environment,
_loggerFactory.CreateLogger<AtlasInstanceManager>(), new TestMetricsLogger(), meshInitServiceClient.Object,
_runFromPackageHandler, _packageDownloadHandler.Object);

instanceManager.StartAssignment(hostAssignmentContext);

await Task.Delay(TimeSpan.FromSeconds(0.5));
await TestHelpers.Await(() => called);

meshInitServiceClient.Verify(
client => client.MountCifs(Utility.BuildStorageConnectionString(account1, accessKey1, CloudConstants.AzureStorageSuffix), share1,
Expand Down