X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pm-file-converter%2Fcomponents%2Fminiocollector%2Fminiocollector_test.go;h=121799dcd8bbc283caa65b97bee67d7cbff55373;hb=refs%2Fchanges%2F57%2F11857%2F2;hp=17327a80222b00e158564f335b8799a38e84b673;hpb=4dd29883b619182fb43ebc4565266831d2a3b79e;p=nonrtric%2Fplt%2Franpm.git diff --git a/pm-file-converter/components/miniocollector/miniocollector_test.go b/pm-file-converter/components/miniocollector/miniocollector_test.go index 17327a8..121799d 100644 --- a/pm-file-converter/components/miniocollector/miniocollector_test.go +++ b/pm-file-converter/components/miniocollector/miniocollector_test.go @@ -33,7 +33,7 @@ func TestMake_minio_bucket(t *testing.T) { // Create a test bucket. bucketName := "my-test-bucket" - err = create_minio_bucket(minioClient, bucketName) + err = createMinioBucket(minioClient, bucketName) if err != nil { log.Fatalf("Error creating bucket: %v", err) } else { @@ -61,7 +61,7 @@ func Test_bucket_cannot_empty(t *testing.T) { // Create a test bucket. bucketName := "" - err = create_minio_bucket(minioClient, bucketName) + err = createMinioBucket(minioClient, bucketName) if err != nil { assert.Error(t, err) } else { @@ -91,7 +91,7 @@ func Test_check_minio_bucket(t *testing.T) { // Create a test bucket. bucketName := "my-test-bucket" - found = check_minio_bucket(minioClient, bucketName) + found = checkMinioBucket(minioClient, bucketName) if found { assert.True(t, found) } else { @@ -121,7 +121,7 @@ func Test_bucket_not_exists(t *testing.T) { // Create a test bucket. bucketName := "my-test-bucket-not-exists" - found = check_minio_bucket(minioClient, bucketName) + found = checkMinioBucket(minioClient, bucketName) if found { assert.True(t, found) } else { @@ -168,7 +168,7 @@ func Test_upload_object(t *testing.T) { // Create a test bucket. bucketName := "my-test-bucket" - upload_object(minioClient, file_bytes, "minio_upload_test.json", bucketName) + uploadObject(minioClient, file_bytes, "minio_upload_test.json", bucketName) assert.NoError(t, err)