From 6d8a4176f8acde309bbc95c31beb3567efccf7d8 Mon Sep 17 00:00:00 2001 From: Gifi Siby Date: Thu, 16 Jan 2025 01:05:07 -0800 Subject: [PATCH] test cases adjusted according to azure Signed-off-by: gifi-siby --- .../storage/gcp_native_object_storage_test.go | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/internal/storage/gcp_native_object_storage_test.go b/internal/storage/gcp_native_object_storage_test.go index e9a12cb4e74c1..3f22b9d5e8c8c 100644 --- a/internal/storage/gcp_native_object_storage_test.go +++ b/internal/storage/gcp_native_object_storage_test.go @@ -147,14 +147,11 @@ func TestGcpNativeObjectStorage(t *testing.T) { value []byte }{ {false, "abc/", []byte("123")}, - {true, "abc/d/", []byte("1234")}, - {false, "abc/d/e", []byte("12345")}, + {true, "abc/d", []byte("1234")}, {true, "abc/e/d", []byte("12354")}, {true, "key_/1/1", []byte("111")}, - {true, "key_/1/2/", []byte("222")}, - {false, "key_/1/2/3", []byte("333")}, + {true, "key_/1/2", []byte("222")}, {true, "key_/2/3", []byte("333")}, - {true, "key_/test.txt", []byte("333")}, } for _, test := range prepareTests { @@ -172,10 +169,10 @@ func TestGcpNativeObjectStorage(t *testing.T) { prefix string expectedValue []string }{ - {true, "abc/", []string{"abc/e/d"}}, - {true, "key_/", []string{"key_/1/1", "key_/2/3", "key_/test.txt"}}, - {false, "abc/", []string{"abc/e/"}}, - {false, "key_/", []string{"key_/1/", "key_/2/", "key_/test.txt"}}, + {true, "abc/", []string{"abc/d", "abc/e/d"}}, + {true, "key_/", []string{"key_/1/1", "key_/1/2", "key_/2/3"}}, + {false, "abc/", []string{"abc/d", "abc/e/"}}, + {false, "key_/", []string{"key_/1/", "key_/2/"}}, } for _, test := range insertWithPrefixTests {