Skip to content

Commit

Permalink
Corrected tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvenga committed Dec 1, 2022
1 parent 047548d commit 7551a5f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand Down

0 comments on commit 7551a5f

Please sign in to comment.