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