public async Task TestDeploymentExistsAsync_PassesKubeconfig() { SetupGetJsonOutput(new GkeList <GkeDeployment> { Items = new List <GkeDeployment>() }); await _objectUnderTest.DeploymentExistsAsync(DefaultDeploymentName); VerifyGetJsonOutputArgsContain <GkeList <GkeDeployment> >($"--kubeconfig=\"{_kubeConfigPath}\""); }
public async Task TestDeploymentExistsAsync_PassesKubeconfig() { _processServiceMock.SetupGetJsonOutput <GkeList <GkeDeployment> >() .ReturnsResult(new GkeList <GkeDeployment> { Items = new List <GkeDeployment>() }); await _objectUnderTest.DeploymentExistsAsync(DefaultDeploymentName); _processServiceMock.VerifyGetJsonOutputAsyncArgs <GkeList <GkeDeployment> >( s => s.Contains($"--kubeconfig=\"{_kubeConfigPath}\"")); }