From 8d54f2758b795a137f87dd54ade5422b8af8d13b Mon Sep 17 00:00:00 2001 From: Kanika Rana Date: Mon, 30 Sep 2024 15:46:05 -0400 Subject: [PATCH] unable to replicate error locally, try getting workspace instead of application --- test/e2e/parallel/proxy_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/parallel/proxy_test.go b/test/e2e/parallel/proxy_test.go index 0fb816e4a..2bbcdb38a 100644 --- a/test/e2e/parallel/proxy_test.go +++ b/test/e2e/parallel/proxy_test.go @@ -447,8 +447,8 @@ func TestProxyFlow(t *testing.T) { hostAwaitWithShorterTimeout := hostAwait.WithRetryOptions(wait.TimeoutOption(time.Second * 3)) // we expect an error so we can use a shorter timeout proxyCl, err := hostAwaitWithShorterTimeout.CreateAPIProxyClient(t, user.token, proxyWorkspaceURL) require.NoError(t, err) - actualApp := &appstudiov1.Application{} - err = proxyCl.Get(context.TODO(), types.NamespacedName{Name: "test", Namespace: "primaryUserNamespace"}, actualApp) + actualWorkspace := &toolchainv1alpha1.Workspace{} + err = proxyCl.Get(context.TODO(), types.NamespacedName{Name: "notexist"}, actualWorkspace) require.ErrorContains(t, err, `an error on the server ("unable to get target cluster: the requested space is not available") has prevented the request from succeeding`) })