Skip to content

Commit 7b4b65d

Browse files
committed
Added test for default server and app name injection.
1 parent f8afcd2 commit 7b4b65d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Contrast.K8s.AgentOperator.FunctionalTests/Scenarios/Injection/StandardInjectionTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ public async Task When_injected_then_pod_should_have_standard_injection_environm
6969
var userName = container.Env.Should().Contain(x => x.Name == "CONTRAST__API__USER_NAME").Subject;
7070
userName.ValueFrom.SecretKeyRef.Name.Should().Be("testing-agent-connection-secret");
7171
userName.ValueFrom.SecretKeyRef.Key.Should().Be("userName");
72+
73+
container.Env.Should().Contain(x => x.Name == "CONTRAST__SERVER__NAME")
74+
.Which.Value.Should().Be("kubernetes-default");
75+
container.Env.Should().Contain(x => x.Name == "CONTRAST__APPLICATION__NAME")
76+
.Which.Value.Should().Be("injection-dummy");
7277
}
7378
}
7479

0 commit comments

Comments
 (0)