public async Task TestGetDeploymentsAsync_PassesKubeconfig()
        {
            SetupGetJsonOutput(new GkeList <GkeDeployment>());

            await _objectUnderTest.GetDeploymentsAsync();

            VerifyGetJsonOutputArgsContain <GkeList <GkeDeployment> >($"--kubeconfig=\"{_kubeConfigPath}\"");
        }
Exemplo n.º 2
0
        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}\""));
        }