@@ -10,18 +10,20 @@ namespace Microsoft.Azure.WebJobs.Script.Tests.Integration.Management
10
10
public class AzureStorageInfoValueTests
11
11
{
12
12
[ 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 )
22
24
{
23
25
var key = id ;
24
- var value = $ "{ accountName } |{ shareName } |{ accessKey } |{ mountPath } ";
26
+ var value = $ "{ accountName } |{ shareName } |{ accessKey } |{ mountPath } | { protocol } ";
25
27
var environmentVariable = new KeyValuePair < string , string > ( key , value ) ;
26
28
var azureStorageInfoValue = AzureStorageInfoValue . FromEnvironmentVariable ( environmentVariable ) ;
27
29
if ( isValid )
0 commit comments