public async void KubernetesPlannerShutdownTest() { IModule m1 = new DockerModule("module1", "v1", ModuleStatus.Running, global::Microsoft.Azure.Devices.Edge.Agent.Core.RestartPolicy.Always, Config1, ImagePullPolicy.OnCreate, DefaultConfigurationInfo, EnvVars); ModuleSet current = ModuleSet.Create(m1); var planner = new KubernetesPlanner(Namespace, ResourceName, DefaultClient, DefaultCommandFactory, ConfigProvider, EdgeletModuleOwner); var plan = await planner.CreateShutdownPlanAsync(current); Assert.Equal(Plan.Empty, plan); }
public async void KubernetesPlannerShutdownTest() { IModule m1 = new DockerModule("module1", "v1", ModuleStatus.Running, RestartPolicy.Always, Config1, ImagePullPolicy.OnCreate, DefaultConfigurationInfo, EnvVars); ModuleSet current = ModuleSet.Create(m1); var planner = new KubernetesPlanner <CombinedDockerConfig>(Ns, Hostname, DeviceId, DefaultClient, DefaultCommandFactory, DefaultConfigProvider); var plan = await planner.CreateShutdownPlanAsync(current); Assert.Equal(Plan.Empty, plan); }