Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for invalidPort (0.28 sec)

  1. okhttp/src/test/java/okhttp3/CallTest.kt

          requestBuilder.url("ftp://hostname/path")
        }.also { expected ->
          assertThat(expected.message).isEqualTo("Expected URL scheme 'http' or 'https' but was 'ftp'")
        }
      }
    
      @Test
      fun invalidPort() {
        val requestBuilder = Request.Builder()
        assertFailsWith<IllegalArgumentException> {
          requestBuilder.url("http://localhost:65536/")
        }.also { expected ->
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  2. security/pkg/k8s/chiron/utils_test.go

    		k8sCaCertFile     string
    		secretNames       []string
    		dnsNames          []string
    		serviceNamespaces []string
    
    		secretName      string
    		secretNameSpace string
    
    		invalidCert     bool
    		expectFail      bool
    		certificateData []byte
    	}{
    		{
    			name:              "read signed cert should succeed",
    			gracePeriodRatio:  0.6,
    			k8sCaCertFile:     "./test-data/example-ca-cert.pem",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 03:58:11 UTC 2024
    - 13K bytes
    - Viewed (0)
  3. platforms/core-execution/execution/src/integTest/groovy/org/gradle/internal/execution/IncrementalExecutionIntegrationTest.groovy

            result.executionReasons == ["No history is available."]
        }
    
        def "out of date when work fails validation"() {
            given:
            execute(unitOfWork)
    
            def invalidWork = builder
                .withValidator { context ->
                    context
                        .forType(UnitOfWork, false)
                        .visitPropertyProblem {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:36:34 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  4. cmd/erasure-multipart.go

    		partID := parts[i].PartNumber
    		if part.Error != "" || !part.Exists {
    			return oi, InvalidPart{
    				PartNumber: partID,
    			}
    		}
    
    		var pfi FileInfo
    		_, err := pfi.UnmarshalMsg(part.Data)
    		if err != nil {
    			// Maybe crash or similar.
    			bugLogIf(ctx, err)
    			return oi, InvalidPart{
    				PartNumber: partID,
    			}
    		}
    
    		partI := pfi.Parts[0]
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  5. cmd/object-api-errors.go

    	UploadID string
    }
    
    func (e InvalidUploadID) Error() string {
    	return "Invalid upload id " + e.UploadID
    }
    
    // InvalidPart One or more of the specified parts could not be found
    type InvalidPart struct {
    	PartNumber int
    	ExpETag    string
    	GotETag    string
    }
    
    func (e InvalidPart) Error() string {
    	return fmt.Sprintf("Specified part could not be found. PartNumber %d, Expected %s, got %s",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 22:19:00 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  6. cmd/object-api-multipart_test.go

    		{bucketNames[0], objectNames[0], uploadIDs[0], []CompletePart{{ETag: "abcz"}}, "", InvalidPart{}, false},
    		// Part number 0 doesn't exist, expecting InvalidPart error (Test number 12).
    		{bucketNames[0], objectNames[0], uploadIDs[0], []CompletePart{{ETag: "abcd", PartNumber: 0}}, "", InvalidPart{}, false},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 77.1K bytes
    - Viewed (0)
  7. cmd/utils.go

    		err = BucketPolicyNotFound{}
    	case "NoSuchLifecycleConfiguration":
    		err = BucketLifecycleNotFound{}
    	case "InvalidBucketName":
    		err = BucketNameInvalid{Bucket: bucket}
    	case "InvalidPart":
    		err = InvalidPart{}
    	case "NoSuchBucket":
    		err = BucketNotFound{Bucket: bucket}
    	case "NoSuchKey":
    		if object != "" {
    			err = ObjectNotFound{Bucket: bucket, Object: object}
    		} else {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 22:00:34 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  8. cmd/api-errors.go

    		Code:           "MethodNotAllowed",
    		Description:    "The specified method is not allowed against this resource.",
    		HTTPStatusCode: http.StatusMethodNotAllowed,
    	},
    	ErrInvalidPart: {
    		Code:           "InvalidPart",
    		Description:    "One or more of the specified parts could not be found.  The part may not have been uploaded, or the specified entity tag may not match the part's entity tag.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 92.1K bytes
    - Viewed (0)
  9. cmd/object-handlers_test.go

    			parts:     inputParts[0].parts,
    			accessKey: credentials.AccessKey,
    			secretKey: credentials.SecretKey,
    
    			expectedContent: encodeResponse(getAPIErrorResponse(ctx,
    				toAPIError(ctx, InvalidPart{}),
    				getGetObjectURL("", bucketName, objectName), "", "")),
    			expectedRespStatus: http.StatusBadRequest,
    		},
    		// Test case - 2.
    		// No parts specified in CompletePart{}.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 161.9K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

      fun serverShutdownInput() {
        testServerClosesOutput(ShutdownInputAtEnd)
      }
    
      @Test
      fun serverShutdownOutput() {
        testServerClosesOutput(ShutdownOutputAtEnd)
      }
    
      @Test
      fun invalidHost() {
        // Note that 1234.1.1.1 is an invalid host in a URI, but URL isn't as strict.
        client =
          client.newBuilder()
            .dns(FakeDns())
            .build()
        assertFailsWith<UnknownHostException> {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
Back to top