@@ -857,17 +857,17 @@ public void GetFunctionAppContentEditingState_Returns_Expected(bool isFileSystem
857
857
}
858
858
859
859
[ Theory ]
860
- [ InlineData ( true , true , false ) ]
861
- [ InlineData ( true , false , false ) ]
860
+ [ InlineData ( false , true , false ) ]
862
861
[ InlineData ( false , false , false ) ]
863
- [ InlineData ( false , true , true ) ]
864
- public void VerifyWorkerIndexingDecisionLogic ( bool disableWorkerIndexingFeatureFlag , bool workerIndexingConfigProperty , bool expected )
862
+ [ InlineData ( true , false , false ) ]
863
+ [ InlineData ( true , true , true ) ]
864
+ public void VerifyWorkerIndexingDecisionLogic ( bool workerIndexingFeatureFlag , bool workerIndexingConfigProperty , bool expected )
865
865
{
866
866
var testEnv = new TestEnvironment ( ) ;
867
867
testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . FunctionWorkerRuntime , RpcWorkerConstants . PythonLanguageWorkerName ) ;
868
- if ( disableWorkerIndexingFeatureFlag )
868
+ if ( workerIndexingFeatureFlag )
869
869
{
870
- testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . AzureWebJobsFeatureFlags , ScriptConstants . FeatureFlagDisableWorkerIndexing ) ;
870
+ testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . AzureWebJobsFeatureFlags , ScriptConstants . FeatureFlagEnableWorkerIndexing ) ;
871
871
}
872
872
RpcWorkerConfig workerConfig = new RpcWorkerConfig ( ) { Description = TestHelpers . GetTestWorkerDescription ( "python" , "none" , workerIndexingConfigProperty ) } ;
873
873
bool workerShouldIndex = Utility . CanWorkerIndex ( new List < RpcWorkerConfig > ( ) { workerConfig } , testEnv ) ;
@@ -881,9 +881,9 @@ public void WorkerIndexingDecisionLogic_NullConfig(bool workerIndexingFeatureFla
881
881
{
882
882
var testEnv = new TestEnvironment ( ) ;
883
883
testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . FunctionWorkerRuntime , RpcWorkerConstants . PythonLanguageWorkerName ) ;
884
- if ( ! workerIndexingFeatureFlag )
884
+ if ( workerIndexingFeatureFlag )
885
885
{
886
- testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . AzureWebJobsFeatureFlags , ScriptConstants . FeatureFlagDisableWorkerIndexing ) ;
886
+ testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . AzureWebJobsFeatureFlags , ScriptConstants . FeatureFlagEnableWorkerIndexing ) ;
887
887
}
888
888
bool workerShouldIndex = Utility . CanWorkerIndex ( null , testEnv ) ;
889
889
Assert . Equal ( expected , workerShouldIndex ) ;
@@ -896,9 +896,9 @@ public void WorkerIndexingDecisionLogic_NullConfigDescription(bool workerIndexin
896
896
{
897
897
var testEnv = new TestEnvironment ( ) ;
898
898
testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . FunctionWorkerRuntime , RpcWorkerConstants . PythonLanguageWorkerName ) ;
899
- if ( ! workerIndexingFeatureFlag )
899
+ if ( workerIndexingFeatureFlag )
900
900
{
901
- testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . AzureWebJobsFeatureFlags , ScriptConstants . FeatureFlagDisableWorkerIndexing ) ;
901
+ testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . AzureWebJobsFeatureFlags , ScriptConstants . FeatureFlagEnableWorkerIndexing ) ;
902
902
}
903
903
RpcWorkerConfig workerConfig = new RpcWorkerConfig ( ) ;
904
904
bool workerShouldIndex = Utility . CanWorkerIndex ( new List < RpcWorkerConfig > ( ) { workerConfig } , testEnv ) ;
@@ -912,9 +912,9 @@ public void WorkerIndexingDecisionLogic_NullWorkerIndexingProperty(bool workerIn
912
912
{
913
913
var testEnv = new TestEnvironment ( ) ;
914
914
testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . FunctionWorkerRuntime , RpcWorkerConstants . PythonLanguageWorkerName ) ;
915
- if ( ! workerIndexingFeatureFlag )
915
+ if ( workerIndexingFeatureFlag )
916
916
{
917
- testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . AzureWebJobsFeatureFlags , ScriptConstants . FeatureFlagDisableWorkerIndexing ) ;
917
+ testEnv . SetEnvironmentVariable ( EnvironmentSettingNames . AzureWebJobsFeatureFlags , ScriptConstants . FeatureFlagEnableWorkerIndexing ) ;
918
918
}
919
919
RpcWorkerConfig workerConfig = new RpcWorkerConfig ( )
920
920
{
0 commit comments