Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 311 - 320 of 755 for socket (0.04 seconds)

  1. tests/test_response_model_as_return_annotation.py

        return {"name": "John", "surname": "Doe", "password_hash": "secret"}
    
    
    @app.get(
        "/response_model-no_annotation-return_submodel_with_extra_data", response_model=User
    )
    def response_model_no_annotation_return_submodel_with_extra_data():
        return DBUser(name="John", surname="Doe", password_hash="secret")
    
    
    @app.get("/no_response_model-annotation-return_same_model")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 47.7K bytes
    - Click Count (0)
  2. cmd/utils_test.go

    			bucket: "",
    			object: "",
    		},
    		// Test case 3 only bucket is present.
    		{
    			path:   "/bucket",
    			bucket: "bucket",
    			object: "",
    		},
    		// Test case 4 many separators and object is a directory.
    		{
    			path:   "/bucket/object/1/",
    			bucket: "bucket",
    			object: "object/1/",
    		},
    		// Test case 5 object has many trailing separators.
    		{
    			path:   "/bucket/object/1///",
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  3. cmd/ftp-server-driver.go

    	defer cancel()
    
    	bucket, prefix := path2BucketObject(objPath)
    	if bucket == "" {
    		buckets, err := clnt.ListBuckets(cctx)
    		if err != nil {
    			return err
    		}
    
    		for _, bucket := range buckets {
    			info := minioFileInfo{
    				p:     pathClean(bucket.Name),
    				info:  minio.ObjectInfo{Key: retainSlash(bucket.Name), LastModified: bucket.CreationDate},
    				isDir: true,
    			}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 14.3K bytes
    - Click Count (0)
  4. cmd/peer-s3-client.go

    func (l localPeerS3Client) HealBucket(ctx context.Context, bucket string, opts madmin.HealOpts) (madmin.HealResultItem, error) {
    	return healBucketLocal(ctx, bucket, opts)
    }
    
    func (l localPeerS3Client) GetBucketInfo(ctx context.Context, bucket string, opts BucketOptions) (BucketInfo, error) {
    	return getBucketInfoLocal(ctx, bucket, opts)
    }
    
    func (l localPeerS3Client) MakeBucket(ctx context.Context, bucket string, opts MakeBucketOptions) error {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  5. tests/test_tutorial/test_request_form_models/test_tutorial002.py

        response = client.post("/login/", data={"username": "Foo", "password": "secret"})
        assert response.status_code == 200
        assert response.json() == {"username": "Foo", "password": "secret"}
    
    
    def test_post_body_extra_form(client: TestClient):
        response = client.post(
            "/login/", data={"username": "Foo", "password": "secret", "extra": "extra"}
        )
        assert response.status_code == 422
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  6. internal/bucket/lifecycle/lifecycle_test.go

    		                          </Rule>
    		                          </LifecycleConfiguration>`,
    			expectedParsingErr:    nil,
    			expectedValidationErr: nil,
    		},
    		{ // Using ExpiredObjectAllVersions element with an object locked bucket
    			inputConfig: `<LifecycleConfiguration>
                                            <Rule>
                                              <ID>ExpiredObjectAllVersions with object locking</ID>
    		                          <Filter>
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 55.5K bytes
    - Click Count (0)
  7. cmd/object-api-putobject_test.go

    		// Case with invalid object names.
    		4: {bucketName: bucket, inputData: []byte(""), expectedError: ObjectNameInvalid{Bucket: bucket, Object: ""}},
    
    		// Valid object and bucket names but non-existent bucket.
    		5: {bucketName: "abc", objName: "def", inputData: []byte(""), expectedError: BucketNotFound{Bucket: "abc"}},
    
    		// Input to replicate Md5 mismatch.
    		6: {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 25.8K bytes
    - Click Count (0)
  8. cmd/object_api_suite_test.go

    		t.Fatalf("%s: Expected IsTruncated to be `false`, but instead found it to be `%v`", instanceType, result.IsTruncated)
    	}
    	if err.Error() != "Bucket not found: bucket" {
    		t.Errorf("%s: Expected the error msg to be `%s`, but instead found `%s`", instanceType, "Bucket not found: bucket", err.Error())
    	}
    }
    
    // Wrapper for calling testNonExistentObjectInBucket for both Erasure and FS.
    func TestNonExistentObjectInBucket(t *testing.T) {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 34.5K bytes
    - Click Count (0)
  9. docs/resiliency/resiliency-verify-healing-script.sh

    FILE=$(echo $1 | jq -r '.args.file')
    DIR=$(echo $1 | jq -r '.args.dir')
    DEEP=$(echo $1 | jq -r '.args.deep')
    WANT=$(echo $1 | jq 'del(.args)') # ... and remove args from wanted result
    
    ALIAS_NAME=myminio
    BUCKET="test-bucket"
    JQUERY='select(.name=="'"${BUCKET}"'/'"${DIR}"'/'"${FILE}"'") | {"before":{"color": .before.color, "missing": .before.missing, "corrupted": .before.corrupted},"after":{"color": .after.color, "missing": .after.missing, "corrupted": .after.corrupted}}'
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sat Dec 21 04:24:45 GMT 2024
    - 996 bytes
    - Click Count (0)
  10. tests/test_security_oauth2.py

        response = client.post(
            "/login",
            data={"username": "johndoe", "password": "secret", "grant_type": "password"},
        )
        assert response.status_code == 200
        assert response.json() == {
            "grant_type": "password",
            "username": "johndoe",
            "password": "secret",
            "scopes": [],
            "client_id": None,
            "client_secret": None,
        }
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 9K bytes
    - Click Count (0)
Back to Top