public async Task TestGetServicesAsync_PassesKubeconfig()
        {
            SetupGetJsonOutput(new GkeList <GkeService>());

            await _objectUnderTest.GetServicesAsync();

            VerifyGetJsonOutputArgsContain <GkeList <GkeService> >($"--kubeconfig=\"{_kubeConfigPath}\"");
        }
Exemplo n.º 2
0
        public async Task TestGetServicesAsync_PassesKubeconfig()
        {
            _processServiceMock.SetupGetJsonOutput <GkeList <GkeService> >()
            .ReturnsResult(new GkeList <GkeService>());

            await _objectUnderTest.GetServicesAsync();

            _processServiceMock.VerifyGetJsonOutputAsyncArgs <GkeList <GkeService> >(
                s => s.Contains($"--kubeconfig=\"{_kubeConfigPath}\""));
        }