@@ -852,17 +852,17 @@ public void GetFunctionAppContentEditingState_Returns_Expected(bool isFileSystem
852
852
}
853
853
854
854
[ Theory ]
855
- [ InlineData ( true , true , false ) ]
856
- [ InlineData ( true , false , false ) ]
855
+ [ InlineData ( false , true , false ) ]
857
856
[ InlineData ( false , false , false ) ]
858
- [ InlineData ( false , true , true ) ]
859
- public void VerifyWorkerIndexingDecisionLogic ( bool disableWorkerIndexingFeatureFlag , bool workerIndexingConfigProperty , bool expected )
857
+ [ InlineData ( true , false , false ) ]
858
+ [ InlineData ( true , true , true ) ]
859
+ public void VerifyWorkerIndexingDecisionLogic ( bool workerIndexingFeatureFlag , bool workerIndexingConfigProperty , bool expected )
860
860
{
861
861
var testEnv = new TestEnvironment ( ) ;
862
862
testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . FunctionWorkerRuntime , RpcWorkerConstants . PythonLanguageWorkerName ) ;
863
- if ( disableWorkerIndexingFeatureFlag )
863
+ if ( workerIndexingFeatureFlag )
864
864
{
865
- testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . AzureWebJobsFeatureFlags , ScriptConstants . FeatureFlagDisableWorkerIndexing ) ;
865
+ testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . AzureWebJobsFeatureFlags , ScriptConstants . FeatureFlagEnableWorkerIndexing ) ;
866
866
}
867
867
RpcWorkerConfig workerConfig = new RpcWorkerConfig ( ) { Description = TestHelpers . GetTestWorkerDescription ( "python" , "none" , workerIndexingConfigProperty ) } ;
868
868
bool workerShouldIndex = Utility . CanWorkerIndex ( new List < RpcWorkerConfig > ( ) { workerConfig } , testEnv ) ;
@@ -876,9 +876,9 @@ public void WorkerIndexingDecisionLogic_NullConfig(bool workerIndexingFeatureFla
876
876
{
877
877
var testEnv = new TestEnvironment ( ) ;
878
878
testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . FunctionWorkerRuntime , RpcWorkerConstants . PythonLanguageWorkerName ) ;
879
- if ( ! workerIndexingFeatureFlag )
879
+ if ( workerIndexingFeatureFlag )
880
880
{
881
- testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . AzureWebJobsFeatureFlags , ScriptConstants . FeatureFlagDisableWorkerIndexing ) ;
881
+ testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . AzureWebJobsFeatureFlags , ScriptConstants . FeatureFlagEnableWorkerIndexing ) ;
882
882
}
883
883
bool workerShouldIndex = Utility . CanWorkerIndex ( null , testEnv ) ;
884
884
Assert . Equal ( expected , workerShouldIndex ) ;
@@ -891,9 +891,9 @@ public void WorkerIndexingDecisionLogic_NullConfigDescription(bool workerIndexin
891
891
{
892
892
var testEnv = new TestEnvironment ( ) ;
893
893
testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . FunctionWorkerRuntime , RpcWorkerConstants . PythonLanguageWorkerName ) ;
894
- if ( ! workerIndexingFeatureFlag )
894
+ if ( workerIndexingFeatureFlag )
895
895
{
896
- testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . AzureWebJobsFeatureFlags , ScriptConstants . FeatureFlagDisableWorkerIndexing ) ;
896
+ testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . AzureWebJobsFeatureFlags , ScriptConstants . FeatureFlagEnableWorkerIndexing ) ;
897
897
}
898
898
RpcWorkerConfig workerConfig = new RpcWorkerConfig ( ) ;
899
899
bool workerShouldIndex = Utility . CanWorkerIndex ( new List < RpcWorkerConfig > ( ) { workerConfig } , testEnv ) ;
@@ -907,9 +907,9 @@ public void WorkerIndexingDecisionLogic_NullWorkerIndexingProperty(bool workerIn
907
907
{
908
908
var testEnv = new TestEnvironment ( ) ;
909
909
testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . FunctionWorkerRuntime , RpcWorkerConstants . PythonLanguageWorkerName ) ;
910
- if ( ! workerIndexingFeatureFlag )
910
+ if ( workerIndexingFeatureFlag )
911
911
{
912
- testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . AzureWebJobsFeatureFlags , ScriptConstants . FeatureFlagDisableWorkerIndexing ) ;
912
+ testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . AzureWebJobsFeatureFlags , ScriptConstants . FeatureFlagEnableWorkerIndexing ) ;
913
913
}
914
914
RpcWorkerConfig workerConfig = new RpcWorkerConfig ( )
915
915
{
0 commit comments