Skip to content

Commit

Permalink
UPSTREAM: <drop>: e2e: Don't try to remove opentelemetry if not insta…
Browse files Browse the repository at this point in the history
…lled

Signed-off-by: Joel Smith <joelsmith@redhat.com>
  • Loading branch information
joelsmith committed Mar 7, 2024
1 parent 4ba83f5 commit e444507
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/utils/cleanup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ func TestRemoveGcpIdentityComponents(t *testing.T) {
}

func TestRemoveOpentelemetryComponents(t *testing.T) {
if EnableOpentelemetry == "" || EnableOpentelemetry == StringFalse {
t.Skip("skipping installing opentelemetry")
}

_, err := ExecuteCommand("helm uninstall opentelemetry-collector")
require.NoErrorf(t, err, "cannot uninstall opentelemetry-collector - %s", err)
}
Expand Down

0 comments on commit e444507

Please sign in to comment.