From 7551a5f7bf8c4007353804370c75cf852510b0a0 Mon Sep 17 00:00:00 2001 From: Mark Lopez Date: Thu, 1 Dec 2022 15:06:14 -0600 Subject: [PATCH] Corrected tests. --- .../Scenarios/Injection/StandardInjectionTests.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Contrast.K8s.AgentOperator.FunctionalTests/Scenarios/Injection/StandardInjectionTests.cs b/tests/Contrast.K8s.AgentOperator.FunctionalTests/Scenarios/Injection/StandardInjectionTests.cs index 54ac59ab..a56f1896 100644 --- a/tests/Contrast.K8s.AgentOperator.FunctionalTests/Scenarios/Injection/StandardInjectionTests.cs +++ b/tests/Contrast.K8s.AgentOperator.FunctionalTests/Scenarios/Injection/StandardInjectionTests.cs @@ -137,12 +137,12 @@ public async Task When_injected_then_pod_should_have_injection_init_container() var container = result.Spec.InitContainers.Single(x => x.Name == "contrast-init"); container.ImagePullPolicy.Should().Be("Always"); - container.VolumeMounts.Should().Contain(x => x.Name == "contrast-agent").Which.MountPath.Should().Be("/contrast-agent"); - container.VolumeMounts.Should().Contain(x => x.Name == "contrast-writable").Which.MountPath.Should().Be("/contrast-writable"); + container.VolumeMounts.Should().Contain(x => x.Name == "contrast-agent").Which.MountPath.Should().Be("/contrast-init/agent"); + container.VolumeMounts.Should().Contain(x => x.Name == "contrast-writable").Which.MountPath.Should().Be("/contrast-init/data"); - container.Env.Should().Contain(x => x.Name == "CONTRAST_MOUNT_PATH").Which.Value.Should().Be("/contrast-agent"); - container.Env.Should().Contain(x => x.Name == "CONTRAST_MOUNT_AGENT_PATH").Which.Value.Should().Be("/contrast-agent"); - container.Env.Should().Contain(x => x.Name == "CONTRAST_MOUNT_WRITABLE_PATH").Which.Value.Should().Be("/contrast-writable"); + container.Env.Should().Contain(x => x.Name == "CONTRAST_MOUNT_PATH").Which.Value.Should().Be("/contrast-init/agent"); + container.Env.Should().Contain(x => x.Name == "CONTRAST_MOUNT_AGENT_PATH").Which.Value.Should().Be("/contrast-init/agent"); + container.Env.Should().Contain(x => x.Name == "CONTRAST_MOUNT_WRITABLE_PATH").Which.Value.Should().Be("/contrast-init/data"); } }