Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 214 for incorrect_ (0.06 sec)

  1. docs_src/security/tutorial004_an_py310.py

    ) -> Token:
        user = authenticate_user(fake_users_db, form_data.username, form_data.password)
        if not user:
            raise HTTPException(
                status_code=status.HTTP_401_UNAUTHORIZED,
                detail="Incorrect username or password",
                headers={"WWW-Authenticate": "Bearer"},
            )
        access_token_expires = timedelta(minutes=ACCESS_TOKEN_EXPIRE_MINUTES)
        access_token = create_access_token(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Sep 29 02:57:38 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t04/ProjectInheritanceTest.java

                        + " Optional=" + (artifact.isOptional() ? "true" : "false"));
                assertTrue(
                        artifact.getVersion().equals("1.0"), "Incorrect version for " + artifact.getDependencyConflictId());
            }
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  3. docs_src/security/tutorial005_py39.py

        form_data: OAuth2PasswordRequestForm = Depends(),
    ) -> Token:
        user = authenticate_user(fake_users_db, form_data.username, form_data.password)
        if not user:
            raise HTTPException(status_code=400, detail="Incorrect username or password")
        access_token_expires = timedelta(minutes=ACCESS_TOKEN_EXPIRE_MINUTES)
        access_token = create_access_token(
            data={"sub": user.username, "scope": " ".join(form_data.scopes)},
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Sep 29 02:57:38 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  4. internal/hash/reader_test.go

    		{
    			desc:       "Nested hash reader NewReader() should merge.",
    			src:        mustReader(t, bytes.NewReader([]byte("abcd")), 4, "", "", 4),
    			size:       4,
    			actualSize: 4,
    		},
    		{
    			desc:       "Incorrect sha256, nested",
    			src:        mustReader(t, bytes.NewReader([]byte("abcd")), 4, "", "", 4),
    			size:       4,
    			actualSize: 4,
    			sha256hex:  "50d858e0985ecc7f60418aaf0cc5ab587f42c2570a884095a9e8ccacd0f6545c",
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/pac/PacUnicodeStringTest.java

            assertEquals("Non-empty string", exception.getMessage(), "The exception message is not correct.");
        }
    
        /**
         * Tests the {@link PacUnicodeString#check(String)} method with a string of incorrect length.
         */
        @Test
        void testCheck_withInvalidLength_throwsException() {
            // Length is 10 bytes, so expected string length is 5 characters
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  6. cmd/api-response_test.go

    	}
    	body, err := io.ReadAll(resp.Body)
    	if err != nil {
    		t.Fatalf("reading response body failed: %v", err)
    	}
    	if string(body) != "hello" {
    		t.Fatalf("response body incorrect: %v", string(body))
    	}
    
    	// Check that Unwrap works
    	if trw.Unwrap() != rw {
    		t.Fatalf("Unwrap returned wrong result: %v", trw.Unwrap())
    	}
    }
    
    func TestHeadersAlreadyWritten(t *testing.T) {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 24 04:05:19 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  7. internal/mountinfo/mountinfo_linux.go

    	for {
    		line, err := scanner.ReadString('\n')
    		if err == io.EOF {
    			break
    		}
    
    		fields := strings.Fields(line)
    		if len(fields) != expectedNumFieldsPerLine {
    			// ignore incorrect lines.
    			continue
    		}
    
    		// Freq should be an integer.
    		if _, err := strconv.Atoi(fields[4]); err != nil {
    			return nil, err
    		}
    
    		// Pass should be an integer.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  8. cmd/erasure-utils.go

    	if err != nil {
    		return "", fmt.Errorf("error parsing uploadID %s (%w)", uploadID, err)
    	}
    	slc := strings.SplitN(string(uploadBytes), ".", 2)
    	if len(slc) != 2 {
    		return "", fmt.Errorf("uploadID %s has incorrect format", uploadID)
    	}
    	return slc[0], nil
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

        // Wait for the first task to be started in the background. It will block until we explicitly
        // stop it.
        blockingCallable.waitForStart();
    
        // Give the second task a chance to (incorrectly) start up while the first task is running.
        assertThat(future2.isDone()).isFalse();
    
        // Stop the first task. The second task should then run.
        blockingCallable.stop();
        executor.shutdown();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 01:35:55 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  10. cmd/signature-v4_test.go

    		expected APIErrorCode
    	}{
    		// (0) It should fail if 'X-Amz-Credential' is missing.
    		{
    			form:     http.Header{},
    			expected: ErrCredMalformed,
    		},
    		// (1) It should fail if the access key is incorrect.
    		{
    			form: http.Header{
    				"X-Amz-Credential": []string{fmt.Sprintf(credentialTemplate, "EXAMPLEINVALIDEXAMPL", now.Format(yyyymmdd), globalMinioDefaultRegion)},
    			},
    			expected: ErrInvalidAccessKeyID,
    		},
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 10.5K bytes
    - Viewed (0)
Back to top