Skip to content

Commit 51ef6ee

Browse files
committed
Merge branch 'ajusupovic/add-fmschema-compatibility-envvar' of https://github.com/Azure/AppConfiguration-DotnetProvider into ajusupovic/add-fmschema-compatibility-envvar
2 parents 89f769b + 6f98669 commit 51ef6ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Tests.AzureAppConfiguration/Unit/FeatureManagementTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2320,13 +2320,13 @@ public void EnvironmentVariableForcesMicrosoftSchemaForAllFlags()
23202320
.Build();
23212321

23222322
// Assert - Both flags should be in Microsoft schema format
2323-
// First flag (originally .NET schema) should now be in Microsoft schema
2323+
// First flag (would be in .NET schema without environment variable) should now be in Microsoft schema
23242324
Assert.Equal("Beta", config["feature_management:feature_flags:0:id"]);
23252325
Assert.Equal("True", config["feature_management:feature_flags:0:enabled"]);
23262326
Assert.Equal("Browser", config["feature_management:feature_flags:0:conditions:client_filters:0:name"]);
23272327
Assert.Equal("Firefox", config["feature_management:feature_flags:0:conditions:client_filters:0:parameters:AllowedBrowsers:0"]);
23282328

2329-
// Second flag (already Microsoft schema) should still be in Microsoft schema
2329+
// Second flag (always Microsoft schema) should still be in Microsoft schema
23302330
Assert.Equal("VariantsFeature1", config["feature_management:feature_flags:1:id"]);
23312331
Assert.Equal("True", config["feature_management:feature_flags:1:enabled"]);
23322332
Assert.Equal("Big", config["feature_management:feature_flags:1:variants:0:name"]);

0 commit comments

Comments
 (0)