|
11 | 11 | import com.microsoft.azure.functions.HttpStatus;
|
12 | 12 | import com.microsoft.azure.functions.rpc.messages.RpcHttp;
|
13 | 13 | import com.microsoft.azure.functions.rpc.messages.TypedData;
|
| 14 | +import com.microsoft.azure.functions.worker.Constants; |
14 | 15 | import com.microsoft.azure.functions.worker.binding.*;
|
15 | 16 | import com.microsoft.azure.functions.worker.broker.JavaFunctionBroker;
|
16 | 17 | import com.microsoft.azure.functions.worker.handler.FunctionEnvironmentReloadRequestHandler;
|
@@ -63,7 +64,7 @@ public void rpcHttpDataSourceToHttpRequestMessageEnvSettingEnabled() throws Exce
|
63 | 64 | Map<String, String> existingVariables = System.getenv();
|
64 | 65 | Map<String, String> newEnvVariables = new HashMap<>();
|
65 | 66 | newEnvVariables.putAll(existingVariables);
|
66 |
| - newEnvVariables.put("FUNCTIONS_WORKER_NULLABLE_VALUES_ENABLED", "true"); |
| 67 | + newEnvVariables.put(Constants.NULLABLE_VALUES_ENABLED_APP_SETTING, "true"); |
67 | 68 | envHandler.setEnv(newEnvVariables);
|
68 | 69 | Method httpRequestMessageStringBodyMethod = getFunctionMethod("HttpRequestStringBody");
|
69 | 70 | Map<String, String> queryMap = new HashMap<String, String>() {{
|
@@ -97,7 +98,7 @@ public void rpcHttpDataSourceToHttpRequestMessageEnvSettingDisabled() throws Exc
|
97 | 98 | Map<String, String> existingVariables = System.getenv();
|
98 | 99 | Map<String, String> newEnvVariables = new HashMap<>();
|
99 | 100 | newEnvVariables.putAll(existingVariables);
|
100 |
| - newEnvVariables.put("FUNCTIONS_WORKER_NULLABLE_VALUES_ENABLED", "false"); |
| 101 | + newEnvVariables.put(Constants.NULLABLE_VALUES_ENABLED_APP_SETTING, "false"); |
101 | 102 | envHandler.setEnv(newEnvVariables);
|
102 | 103 | Method httpRequestMessageStringBodyMethod = getFunctionMethod("HttpRequestStringBody");
|
103 | 104 | Map<String, String> queryMap = new HashMap<String, String>() {{
|
|
0 commit comments