From 4af4f67e72453bd29100164fef7d9973ce7ab19a Mon Sep 17 00:00:00 2001 From: Jaeyeon Park Date: Wed, 9 Oct 2024 16:54:27 +0900 Subject: [PATCH] test: graphql server path injection with error Signed-off-by: Jaeyeon Park --- chaoscenter/graphql/server/pkg/chaoshub/handler/handler_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chaoscenter/graphql/server/pkg/chaoshub/handler/handler_test.go b/chaoscenter/graphql/server/pkg/chaoshub/handler/handler_test.go index af686001bd..bb94c06531 100644 --- a/chaoscenter/graphql/server/pkg/chaoshub/handler/handler_test.go +++ b/chaoscenter/graphql/server/pkg/chaoshub/handler/handler_test.go @@ -164,6 +164,7 @@ func TestDownloadRemoteHub(t *testing.T) { Name: uuid.New().String() + "../path/injection", RepoURL: "https://github.com/litmuschaos/chaos-charts/archive/refs/heads/master.zip", }, + isError: true, }, } for _, tc := range testcases { @@ -224,6 +225,7 @@ func TestSyncRemoteRepo(t *testing.T) { Name: uuid.New().String() + "../path/injection", RepoURL: "https://github.com/litmuschaos/chaos-charts/archive/refs/heads/master.zip", }, + isError: true, }, } for _, tc := range testcases {