From b8722d5ef3020b53f19c1fa8305b77ac5aa1cfd9 Mon Sep 17 00:00:00 2001 From: Stan Ryzhov <60649800+stasryzhov@users.noreply.github.com> Date: Fri, 19 Apr 2024 17:59:57 +0000 Subject: [PATCH] backport of commit bbbeb495b3646f3e696804033d6e95dd11429816 --- testing/internal/e2e/tests/base/alias_test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/testing/internal/e2e/tests/base/alias_test.go b/testing/internal/e2e/tests/base/alias_test.go index c146eb737c..d4a75758db 100644 --- a/testing/internal/e2e/tests/base/alias_test.go +++ b/testing/internal/e2e/tests/base/alias_test.go @@ -165,7 +165,13 @@ func TestCliAlias(t *testing.T) { ) require.NoError(t, output.Err, string(output.Stderr)) - // Update the alias to include a host id + // Create invalid host and add it to the host set + invalidHostId, err := boundary.CreateHostCli(t, ctx, hostCatalogId, "invalid-address") + require.NoError(t, err) + err = boundary.AddHostToHostSetCli(t, ctx, hostSetId, invalidHostId) + require.NoError(t, err) + + // Update the alias to include the valid host id output = e2e.RunCommand(ctx, "boundary", e2e.WithArgs( "aliases", "update", "target",