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