Skip to content

Commit

Permalink
Edge Agent: Remove unused plan runner and planner (Azure#6444)
Browse files Browse the repository at this point in the history
Removing unused planner and plan runner inside Edge Agent. Passing CI:
https://dev.azure.com/msazure/One/_build/results?buildId=56572707&view=results


## Azure IoT Edge PR checklist:
  • Loading branch information
and-rewsmith authored Jun 16, 2022
1 parent 85084e4 commit 2159dfa
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 685 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ public struct AgentEventIds
public const int Agent = EventIdStart;
public const int FileConfigSource = EventIdStart + 100;
public const int TwinConfigSource = EventIdStart + 200;
public const int RestartPlanner = EventIdStart + 300;
public const int OrderedPlanRunner = EventIdStart + 400;
public const int DeploymentFileBackup = EventIdStart + 500;
public const int HealthRestartPlanner = EventIdStart + 600;
public const int RestartManager = EventIdStart + 700;
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ namespace Microsoft.Azure.Devices.Edge.Agent.Core.Test
[Unit]
public class AgentTests
{
const int CoolOffTimeInSeconds = 10;
const int MaxRunCount = 20;

public static IEnumerable<object[]> GetExceptionsToTest() => new List<object[]>
{
new object[]
Expand Down Expand Up @@ -387,7 +390,7 @@ public async void ReconcileAsyncOnSetPlan()
var mockConfigSource = new Mock<IConfigSource>();
var mockEnvironment = new Mock<IEnvironment>();
var mockPlanner = new Mock<IPlanner>();
var planRunner = new OrderedPlanRunner();
var planRunner = new OrderedRetryPlanRunner(MaxRunCount, CoolOffTimeInSeconds, new SystemTime());
var mockReporter = new Mock<IReporter>();
var mockModuleIdentityLifecycleManager = new Mock<IModuleIdentityLifecycleManager>();
var configStore = Mock.Of<IEntityStore<string, string>>();
Expand Down Expand Up @@ -436,7 +439,7 @@ public async void ReconcileAsyncWithNoDeploymentChange()
var mockConfigSource = new Mock<IConfigSource>();
var mockEnvironment = new Mock<IEnvironment>();
var mockPlanner = new Mock<IPlanner>();
var planRunner = new OrderedPlanRunner();
var planRunner = new OrderedRetryPlanRunner(MaxRunCount, CoolOffTimeInSeconds, new SystemTime());
var mockReporter = new Mock<IReporter>();
var mockModuleIdentityLifecycleManager = new Mock<IModuleIdentityLifecycleManager>();
var configStore = Mock.Of<IEntityStore<string, string>>();
Expand Down
Loading

0 comments on commit 2159dfa

Please sign in to comment.