public async Task ListReleasesTest() { using (Stream chartStream = File.OpenRead("charts/hello-world-0.1.0.tgz")) { var chart = ChartPackage.Open(chartStream); var client = new TillerClient(() => TestConfiguration.GetStream().GetAwaiter().GetResult()); var releases = await client.ListReleases(nameof(ListReleasesTest).ToLower(), limit : 0, @namespace : "default").ConfigureAwait(false); Assert.Empty(releases); var result = await client.InstallRelease(chart.Serialize(), string.Empty, nameof(ListReleasesTest).ToLower(), true).ConfigureAwait(false); releases = await client.ListReleases(nameof(ListReleasesTest).ToLower(), limit : 0, @namespace : "default").ConfigureAwait(false); var release = Assert.Single(releases); await client.UninstallRelease(nameof(ListReleasesTest).ToLower(), purge : true); } }
public async Task ListReleasesAcceptEmptyParameterTest() { var client = new TillerClient(() => TestConfiguration.GetStream().GetAwaiter().GetResult()); var releases = await client.ListReleases().ConfigureAwait(false); }