Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ExecObjectLayerAPITest (0.57 sec)

  1. cmd/bucket-handlers_test.go

    	"testing"
    
    	"github.com/minio/minio/internal/auth"
    )
    
    // Wrapper for calling RemoveBucket HTTP handler tests for both Erasure multiple disks and single node setup.
    func TestRemoveBucketHandler(t *testing.T) {
    	ExecObjectLayerAPITest(ExecObjectLayerAPITestArgs{t: t, objAPITest: testRemoveBucketHandler, endpoints: []string{"RemoveBucket"}})
    }
    
    func testRemoveBucketHandler(obj ObjectLayer, instanceType, bucketName string, apiRouter http.Handler,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 39.8K bytes
    - Viewed (0)
  2. cmd/bucket-lifecycle-handlers_test.go

    	"net/http"
    	"net/http/httptest"
    	"testing"
    
    	"github.com/minio/minio/internal/auth"
    )
    
    // Test S3 Bucket lifecycle APIs with wrong credentials
    func TestBucketLifecycleWrongCredentials(t *testing.T) {
    	ExecObjectLayerAPITest(ExecObjectLayerAPITestArgs{t: t, objAPITest: testBucketLifecycleHandlersWrongCredentials, endpoints: []string{"GetBucketLifecycle", "PutBucketLifecycle", "DeleteBucketLifecycle"}})
    }
    
    // Test for authentication
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. cmd/bucket-policy-handlers_test.go

    				condition.NewFunctions(),
    			),
    		},
    	}
    }
    
    // Wrapper for calling Create Bucket and ensure we get one and only one success.
    func TestCreateBucket(t *testing.T) {
    	ExecObjectLayerAPITest(ExecObjectLayerAPITestArgs{t: t, objAPITest: testCreateBucket, endpoints: []string{"MakeBucket"}})
    }
    
    // testCreateBucket - Test for calling Create Bucket and ensure we get one and only one success.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 32.9K bytes
    - Viewed (0)
  4. cmd/object-lambda-handlers_test.go

    			runObjectLambdaTest(t, tc.statusCode, tc.body, tc.contentType, tc.expectStatus)
    		})
    	}
    }
    
    func runObjectLambdaTest(t *testing.T, lambdaStatus int, lambdaBody, contentType string, expectStatus int) {
    	ExecObjectLayerAPITest(ExecObjectLayerAPITestArgs{
    		t: t,
    		objAPITest: func(obj ObjectLayer, instanceType, bucketName string, apiRouter http.Handler, credentials auth.Credentials, t *testing.T) {
    			objectName := "dummy-object"
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Jul 18 21:56:31 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. cmd/test-utils_test.go

    	endpoints         []string
    	init              func()
    	makeBucketOptions MakeBucketOptions
    }
    
    // ExecObjectLayerAPITest - executes object layer API tests.
    // Creates single node and Erasure ObjectLayer instance, registers the specified API end points and runs test for both the layers.
    func ExecObjectLayerAPITest(args ExecObjectLayerAPITestArgs) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 77K bytes
    - Viewed (0)
  6. cmd/object-handlers_test.go

    	BadSignature
    	BadMD5
    	MissingUploadID
    )
    
    // Wrapper for calling HeadObject API handler tests for both Erasure multiple disks and FS single drive setup.
    func TestAPIHeadObjectHandler(t *testing.T) {
    	ExecObjectLayerAPITest(ExecObjectLayerAPITestArgs{t: t, objAPITest: testAPIHeadObjectHandler, endpoints: []string{"HeadObject"}})
    }
    
    func testAPIHeadObjectHandler(obj ObjectLayer, instanceType, bucketName string, apiRouter http.Handler,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 163.1K bytes
    - Viewed (0)
Back to top