Skip to content

Commit

Permalink
Adjust for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidreneuw committed Feb 13, 2025
1 parent 46fd4af commit 4c51f14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public void BeforeScenarioWorkspaceCosts(IObjectContainer objectContainer,
.AddUserSecrets<Hooks>()
.AddJsonFile("appsettings.test.json", optional: true)
.Build();
configuration["EnableRollover"] = "true";

var datahubPortalConfiguration = new DatahubPortalConfiguration();
configuration.Bind(datahubPortalConfiguration);
Expand Down
2 changes: 1 addition & 1 deletion ServerlessOperations/src/Datahub.Functions/AzureConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public AzureConfig(IConfiguration config)

public string? NotificationPercents => _config["ProjectUsageNotificationPercents"];

public bool EnableRollover => false;
public bool EnableRollover => _config.GetValue<bool>("EnableRollover", false);

#region Inactivity

Expand Down

0 comments on commit 4c51f14

Please sign in to comment.