You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Why make this change?
- To include the fix for the issue with merge config issue.
#1493
- Also include the fix for broken schema links/path in test configs
## What is this change?
- cherry-picking fix for bugs found in 0.7
---------
Co-authored-by: Shyam Sundar J <shyamsundarj@microsoft.com>
@@ -234,6 +234,69 @@ public void TestMergeConfig()
234
234
}
235
235
}
236
236
237
+
/// <summary>
238
+
/// Test to verify that merged config file is only used for the below scenario
239
+
/// 1. Environment value is set.
240
+
/// 2. Both Base and envBased config file is present.
241
+
/// In all other cases, the TryMergeConfigsIfAvailable method should return false
242
+
/// and out param for the mergedConfigFile should be null.
243
+
/// </summary>
244
+
[DataTestMethod]
245
+
[DataRow("",false,false,null,false,DisplayName="If environment value is not set, merged config file is not generated.")]
246
+
[DataRow("",false,true,null,false,DisplayName="If environment value is not set, merged config file is not generated.")]
247
+
[DataRow("",true,false,null,false,DisplayName="If environment value is not set, merged config file is not generated.")]
248
+
[DataRow("",true,true,null,false,DisplayName="If environment value is not set, merged config file is not generated.")]
249
+
[DataRow(null,false,false,null,false,DisplayName="If environment variable is removed, merged config file is not generated.")]
250
+
[DataRow(null,false,true,null,false,DisplayName="If environment variable is removed, merged config file is not generated.")]
251
+
[DataRow(null,true,false,null,false,DisplayName="If environment variable is removed, merged config file is not generated.")]
252
+
[DataRow(null,true,true,null,false,DisplayName="If environment variable is removed, merged config file is not generated.")]
253
+
[DataRow("Test",false,false,null,false,DisplayName="Environment value set but base config not available, merged config file is not generated.")]
254
+
[DataRow("Test",false,true,null,false,DisplayName="Environment value set but base config not available, merged config file is not generated.")]
255
+
[DataRow("Test",true,false,null,false,DisplayName="Environment value set but env based config not available, merged config file is not generated.")]
256
+
[DataRow("Test",true,true,"dab-config.Test.merged.json",true,DisplayName="Environment value set and both base and envConfig available, merged config file is generated.")]
0 commit comments