@@ -36,7 +36,7 @@ public void IsUnsafeToTrace(string value, bool expected)
36
36
[ InlineData ( "test1+test2" , "test1" ) ]
37
37
public void SubscriptionId ( string value , string expected )
38
38
{
39
- var source = CreateConfigurationSource ( ( ConfigurationKeys . AzureAppService . WebsiteOwnerNameKey , value ) ) ;
39
+ var source = CreateConfigurationSource ( ( PlatformKeys . AzureAppService . WebsiteOwnerNameKey , value ) ) ;
40
40
var settings = new ImmutableAzureAppServiceSettings ( source , NullConfigurationTelemetry . Instance ) ;
41
41
42
42
settings . SubscriptionId . Should ( ) . Be ( expected ) ;
@@ -46,7 +46,7 @@ public void SubscriptionId(string value, string expected)
46
46
[ MemberData ( nameof ( StringTestCases ) ) ]
47
47
public void ResourceGroup ( string value , string expected )
48
48
{
49
- var source = CreateConfigurationSource ( ( ConfigurationKeys . AzureAppService . ResourceGroupKey , value ) ) ;
49
+ var source = CreateConfigurationSource ( ( PlatformKeys . AzureAppService . ResourceGroupKey , value ) ) ;
50
50
var settings = new ImmutableAzureAppServiceSettings ( source , NullConfigurationTelemetry . Instance ) ;
51
51
52
52
settings . ResourceGroup . Should ( ) . Be ( expected ) ;
@@ -56,7 +56,7 @@ public void ResourceGroup(string value, string expected)
56
56
[ MemberData ( nameof ( StringTestCases ) ) ]
57
57
public void SiteName ( string value , string expected )
58
58
{
59
- var source = CreateConfigurationSource ( ( ConfigurationKeys . AzureAppService . SiteNameKey , value ) ) ;
59
+ var source = CreateConfigurationSource ( ( PlatformKeys . AzureAppService . SiteNameKey , value ) ) ;
60
60
var settings = new ImmutableAzureAppServiceSettings ( source , NullConfigurationTelemetry . Instance ) ;
61
61
62
62
settings . SiteName . Should ( ) . Be ( expected ) ;
@@ -72,9 +72,9 @@ public void SiteName(string value, string expected)
72
72
public void ResourceId ( string subscriptionId , string siteName , string resourceGroup , string expected )
73
73
{
74
74
var source = CreateConfigurationSource (
75
- ( ConfigurationKeys . AzureAppService . SiteNameKey , siteName ) ,
76
- ( ConfigurationKeys . AzureAppService . ResourceGroupKey , resourceGroup ) ,
77
- ( ConfigurationKeys . AzureAppService . WebsiteOwnerNameKey , subscriptionId ) ) ;
75
+ ( PlatformKeys . AzureAppService . SiteNameKey , siteName ) ,
76
+ ( PlatformKeys . AzureAppService . ResourceGroupKey , resourceGroup ) ,
77
+ ( PlatformKeys . AzureAppService . WebsiteOwnerNameKey , subscriptionId ) ) ;
78
78
79
79
var settings = new ImmutableAzureAppServiceSettings ( source , NullConfigurationTelemetry . Instance ) ;
80
80
@@ -85,7 +85,7 @@ public void ResourceId(string subscriptionId, string siteName, string resourceGr
85
85
[ MemberData ( nameof ( StringTestCases ) , "unknown" , Strings . AllowEmpty ) ]
86
86
public void InstanceId ( string value , string expected )
87
87
{
88
- var source = CreateConfigurationSource ( ( ConfigurationKeys . AzureAppService . InstanceIdKey , value ) ) ;
88
+ var source = CreateConfigurationSource ( ( PlatformKeys . AzureAppService . InstanceIdKey , value ) ) ;
89
89
var settings = new ImmutableAzureAppServiceSettings ( source , NullConfigurationTelemetry . Instance ) ;
90
90
91
91
settings . InstanceId . Should ( ) . Be ( expected ) ;
@@ -95,7 +95,7 @@ public void InstanceId(string value, string expected)
95
95
[ MemberData ( nameof ( StringTestCases ) , "unknown" , Strings . AllowEmpty ) ]
96
96
public void InstanceName ( string value , string expected )
97
97
{
98
- var source = CreateConfigurationSource ( ( ConfigurationKeys . AzureAppService . InstanceNameKey , value ) ) ;
98
+ var source = CreateConfigurationSource ( ( PlatformKeys . AzureAppService . InstanceNameKey , value ) ) ;
99
99
var settings = new ImmutableAzureAppServiceSettings ( source , NullConfigurationTelemetry . Instance ) ;
100
100
101
101
settings . InstanceName . Should ( ) . Be ( expected ) ;
@@ -105,7 +105,7 @@ public void InstanceName(string value, string expected)
105
105
[ MemberData ( nameof ( StringTestCases ) , "unknown" , Strings . AllowEmpty ) ]
106
106
public void OperatingSystem ( string value , string expected )
107
107
{
108
- var source = CreateConfigurationSource ( ( ConfigurationKeys . AzureAppService . OperatingSystemKey , value ) ) ;
108
+ var source = CreateConfigurationSource ( ( PlatformKeys . AzureAppService . OperatingSystemKey , value ) ) ;
109
109
var settings = new ImmutableAzureAppServiceSettings ( source , NullConfigurationTelemetry . Instance ) ;
110
110
111
111
settings . OperatingSystem . Should ( ) . Be ( expected ) ;
@@ -125,7 +125,7 @@ public void SiteExtensionVersion(string value, string expected)
125
125
[ MemberData ( nameof ( StringTestCases ) ) ]
126
126
public void FunctionsWorkerRuntime ( string value , string expected )
127
127
{
128
- var source = CreateConfigurationSource ( ( ConfigurationKeys . AzureFunctions . FunctionsWorkerRuntime , value ) ) ;
128
+ var source = CreateConfigurationSource ( ( PlatformKeys . AzureFunctions . FunctionsWorkerRuntime , value ) ) ;
129
129
var settings = new ImmutableAzureAppServiceSettings ( source , NullConfigurationTelemetry . Instance ) ;
130
130
131
131
settings . FunctionsWorkerRuntime . Should ( ) . Be ( expected ) ;
@@ -135,7 +135,7 @@ public void FunctionsWorkerRuntime(string value, string expected)
135
135
[ MemberData ( nameof ( StringTestCases ) ) ]
136
136
public void FunctionsExtensionVersion ( string value , string expected )
137
137
{
138
- var source = CreateConfigurationSource ( ( ConfigurationKeys . AzureFunctions . FunctionsExtensionVersion , value ) ) ;
138
+ var source = CreateConfigurationSource ( ( PlatformKeys . AzureFunctions . FunctionsExtensionVersion , value ) ) ;
139
139
var settings = new ImmutableAzureAppServiceSettings ( source , NullConfigurationTelemetry . Instance ) ;
140
140
141
141
settings . FunctionsExtensionVersion . Should ( ) . Be ( expected ) ;
@@ -150,8 +150,8 @@ public void FunctionsExtensionVersion(string value, string expected)
150
150
public void IsFunctionsApp ( string functionsWorkerRuntime , string functionsExtensionVersion , bool expected )
151
151
{
152
152
var source = CreateConfigurationSource (
153
- ( ConfigurationKeys . AzureFunctions . FunctionsWorkerRuntime , functionsWorkerRuntime ) ,
154
- ( ConfigurationKeys . AzureFunctions . FunctionsExtensionVersion , functionsExtensionVersion ) ) ;
153
+ ( PlatformKeys . AzureFunctions . FunctionsWorkerRuntime , functionsWorkerRuntime ) ,
154
+ ( PlatformKeys . AzureFunctions . FunctionsExtensionVersion , functionsExtensionVersion ) ) ;
155
155
var settings = new ImmutableAzureAppServiceSettings ( source , NullConfigurationTelemetry . Instance ) ;
156
156
157
157
settings . IsFunctionsApp . Should ( ) . Be ( expected ) ;
0 commit comments