public async Task TestExposeServiceAsync_RunsKubctlExposeDeployment() { await _objectUnderTest.ExposeServiceAsync( DefaultDeploymentName, false, _mockedOutputAction); VerifyKubectlArgsContain("expose deployment"); VerifyKubectlArgsContain("--target-port=8080"); VerifyKubectlArgsContain("--port=80"); }
public async Task TestExposeServiceAsync_RunsKubectlExposeDeployment() { await _objectUnderTest.ExposeServiceAsync( DefaultDeploymentName, false, _mockedOutputAction); _processServiceMock.VerifyRunCommandAsyncArgs("kubectl", s => s.Contains("expose deployment")); _processServiceMock.VerifyRunCommandAsyncArgs(s => s.Contains("--target-port=8080")); _processServiceMock.VerifyRunCommandAsyncArgs(s => s.Contains("--port=80")); }