@@ -504,12 +504,16 @@ public async Task GetExtensionsStartupTypes_BundlesNotConfiguredBindingsConfigur
504
504
[ Fact ]
505
505
public async Task GetExtensionsStartupTypes_NoBindings_In_ExtensionJson ( )
506
506
{
507
- ExtensionInstall blobs = new ( "AzureStorageBlobs" , typeof ( AzureStorageWebJobsStartup ) ) ;
508
- string binPath = InstallExtensions ( ExtensionInstall . Storage ( true ) , blobs ) ;
507
+ ExtensionInstall storage1 = new ( "AzureStorageBlobs" , typeof ( AzureStorageWebJobsStartup ) ) ;
508
+ ExtensionInstall storage2 = new ( "Storage" , typeof ( AzureStorageWebJobsStartup ) )
509
+ {
510
+ HintPath = "Microsoft.Azure.WebJobs.Extensions.Storage.dll"
511
+ } ;
509
512
513
+ string binPath = InstallExtensions ( storage1 , storage2 ) ;
510
514
_bundleManager . Setup ( e => e . IsExtensionBundleConfigured ( ) ) . Returns ( true ) ;
511
- _bundleManager . Setup ( e => e . GetExtensionBundleDetails ( ) ) . Returns ( Task . FromResult ( new ExtensionBundleDetails ( ) { Id = "bundleID" , Version = "1.0.0" } ) ) ;
512
- _bundleManager . Setup ( e => e . GetExtensionBundleBinPathAsync ( ) ) . Returns ( Task . FromResult ( binPath ) ) ;
515
+ _bundleManager . Setup ( e => e . GetExtensionBundleDetails ( ) ) . ReturnsAsync ( new ExtensionBundleDetails ( ) { Id = "bundleID" , Version = "1.0.0" } ) ;
516
+ _bundleManager . Setup ( e => e . GetExtensionBundleBinPathAsync ( ) ) . ReturnsAsync ( binPath ) ;
513
517
514
518
// Act
515
519
ScriptStartupTypeLocator discoverer = CreateSystemUnderTest ( ) ;
@@ -697,6 +701,8 @@ private bool AreExpectedMetricsGenerated()
697
701
698
702
private class ExtensionInstall ( string name , Type startupType , params string [ ] bindings )
699
703
{
704
+ public string HintPath { get ; init ; }
705
+
700
706
public static ExtensionInstall Storage ( bool includeBinding = false )
701
707
{
702
708
string [ ] bindings = includeBinding ? [ "blob" ] : [ ] ;
@@ -721,7 +727,12 @@ public static ExtensionInstall Http()
721
727
722
728
public ExtensionReference GetReference ( )
723
729
{
724
- ExtensionReference reference = new ( ) { Name = name , TypeName = startupType . AssemblyQualifiedName } ;
730
+ ExtensionReference reference = new ( )
731
+ {
732
+ Name = name ,
733
+ TypeName = startupType . AssemblyQualifiedName ,
734
+ HintPath = HintPath ,
735
+ } ;
725
736
foreach ( string binding in bindings ?? Enumerable . Empty < string > ( ) )
726
737
{
727
738
reference . Bindings . Add ( binding ) ;
0 commit comments