Skip to content

Commit

Permalink
enhanced helm client test assertions to test release object for respo…
Browse files Browse the repository at this point in the history
…nse from install

Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
  • Loading branch information
jeromy-cannon committed Jun 12, 2023
1 parent 0633d1f commit 1994fc6
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ void testInstallChartCommand() {
suppressExceptions(() -> defaultClient.uninstallChart(HAPROXY_RELEASE_NAME));
Release release = defaultClient.installChart(HAPROXY_RELEASE_NAME, HAPROXY_CHART);
assertThat(release).isNotNull();
System.out.println(release); // TODO assertions
assertThat(release.name()).isEqualTo(HAPROXY_RELEASE_NAME);
assertThat(release.info().description()).isEqualTo("Install complete");
assertThat(release.info().status()).isEqualTo("deployed");
} finally {
suppressExceptions(() -> defaultClient.uninstallChart(HAPROXY_RELEASE_NAME));
suppressExceptions(() -> defaultClient.removeRepository(HAPROXYTECH_REPOSITORY));
Expand All @@ -145,7 +147,9 @@ private static void testChartInstallWithCleanup(InstallChartOptions options) {
suppressExceptions(() -> defaultClient.uninstallChart(HAPROXY_RELEASE_NAME));
Release release = defaultClient.installChart(HAPROXY_RELEASE_NAME, HAPROXY_CHART, options);
assertThat(release).isNotNull();
System.out.println(release); // TODO assertions
assertThat(release.name()).isEqualTo(HAPROXY_RELEASE_NAME);
assertThat(release.info().description()).isEqualTo("Install complete");
assertThat(release.info().status()).isEqualTo("deployed");
} finally {
suppressExceptions(() -> defaultClient.uninstallChart(HAPROXY_RELEASE_NAME));
suppressExceptions(() -> defaultClient.removeRepository(HAPROXYTECH_REPOSITORY));
Expand Down

0 comments on commit 1994fc6

Please sign in to comment.