@@ -10,18 +10,20 @@ namespace Microsoft.Azure.WebJobs.Script.Tests.Integration.Management
1010 public class AzureStorageInfoValueTests
1111 {
1212 [ Theory ]
13- [ InlineData ( null , null , null , null , null , null , false ) ]
14- [ InlineData ( "" , null , "" , "" , "" , "" , false ) ]
15- [ InlineData ( "AZUREFILESSTORAGE_storageid" , AzureStorageType . AzureFiles , "" , "" , "" , "" , false ) ]
16- [ InlineData ( "AZUREBLOBSTORAGE_storageid" , AzureStorageType . AzureBlob , "" , "" , "" , "" , false ) ]
17- [ InlineData ( "AZUREFILESSTORAGE_storageid" , AzureStorageType . AzureFiles , "" , "sharename" , "accesskey" , "mountpath" , false ) ]
18- [ InlineData ( "AZUREFILESSTORAGE_storageid" , AzureStorageType . AzureFiles , "accountname" , "sharename" , "accesskey" , "mountpath" , true ) ]
19- [ InlineData ( "AZUREBLOBSTORAGE_storageid" , AzureStorageType . AzureBlob , "accountname" , "" , "accesskey" , "mountpath" , false ) ]
20- [ InlineData ( "AZUREBLOBSTORAGE_storageid" , AzureStorageType . AzureBlob , "accountname" , "sharename" , "accesskey" , "mountpath" , true ) ]
21- public void Builds_AzureStorageInfoValue ( string id , AzureStorageType ? type , string accountName , string shareName , string accessKey , string mountPath , bool isValid )
13+ [ InlineData ( null , null , null , null , null , null , null , false ) ]
14+ [ InlineData ( "" , null , "" , "" , "" , "" , "" , false ) ]
15+ [ InlineData ( "AZUREFILESSTORAGE_storageid" , AzureStorageType . AzureFiles , "" , "" , "" , "" , "" , false ) ]
16+ [ InlineData ( "AZUREBLOBSTORAGE_storageid" , AzureStorageType . AzureBlob , "" , "" , "" , "" , "" , false ) ]
17+ [ InlineData ( "AZUREFILESSTORAGE_storageid" , AzureStorageType . AzureFiles , "" , "sharename" , "accesskey" , "mountpath" , "" , false ) ]
18+ [ InlineData ( "AZUREFILESSTORAGE_storageid" , AzureStorageType . AzureFiles , "accountname" , "sharename" , "accesskey" , "mountpath" , "" , true ) ]
19+ [ InlineData ( "AZUREFILESSTORAGE_storageid" , AzureStorageType . AzureFiles , "accountname" , "sharename" , "accesskey" , "mountpath" , "smb" , true ) ]
20+ [ InlineData ( "AZUREBLOBSTORAGE_storageid" , AzureStorageType . AzureBlob , "accountname" , "" , "accesskey" , "mountpath" , "" , false ) ]
21+ [ InlineData ( "AZUREBLOBSTORAGE_storageid" , AzureStorageType . AzureBlob , "accountname" , "sharename" , "accesskey" , "mountpath" , "" , true ) ]
22+ [ InlineData ( "AZUREFILESSTORAGE_storageid" , AzureStorageType . AzureFiles , "accountname" , "sharename" , "accesskey" , "mountpath" , "http" , true ) ]
23+ public void Builds_AzureStorageInfoValue ( string id , AzureStorageType ? type , string accountName , string shareName , string accessKey , string mountPath , string protocol , bool isValid )
2224 {
2325 var key = id ;
24- var value = $ "{ accountName } |{ shareName } |{ accessKey } |{ mountPath } ";
26+ var value = $ "{ accountName } |{ shareName } |{ accessKey } |{ mountPath } | { protocol } ";
2527 var environmentVariable = new KeyValuePair < string , string > ( key , value ) ;
2628 var azureStorageInfoValue = AzureStorageInfoValue . FromEnvironmentVariable ( environmentVariable ) ;
2729 if ( isValid )
0 commit comments