Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,571 for testy (2.84 sec)

  1. cmd/signature-v4-parser_test.go

    		expectedCredentials credentialHeader
    		expectedErrCode     APIErrorCode
    	}{
    		// Test Case - 1.
    		// Test case with no '=' in te inputCredentialStr.
    		{
    			inputCredentialStr:  "Credential",
    			expectedCredentials: credentialHeader{},
    			expectedErrCode:     ErrMissingFields,
    		},
    		// Test Case - 2.
    		// Test case with no "Credential" string in te inputCredentialStr.
    		{
    			inputCredentialStr:  "Cred=",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 27.4K bytes
    - Viewed (0)
  2. cmd/admin-handlers-users_test.go

    	}
    }
    
    // List of all IAM test suites (i.e. test server configuration combinations)
    // common to tests.
    var iamTestSuites = func() []*TestSuiteIAM {
    	baseTestCases := []TestSuiteCommon{
    		// Init and run test on ErasureSD backend with signature v4.
    		{serverType: "ErasureSD", signer: signerV4},
    		// Init and run test on ErasureSD backend, with tls enabled.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 12 16:36:16 GMT 2024
    - 45.7K bytes
    - Viewed (0)
  3. .idea/runConfigurations/Low_Level_API_FIR_Lincheck_Tests.xml

            <list />
          </option>
          <option name="taskNames">
            <list>
              <option value=":analysis:low-level-api-fir:tests-jdk11:test" />
              <option value="--tests" />
              <option value="*" />
            </list>
          </option>
          <option name="vmOptions" />
        </ExternalSystemSettings>
        <ExternalSystemDebugServerProcess>false</ExternalSystemDebugServerProcess>
    XML
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Fri Mar 01 17:29:07 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/helper/IndexingHelperTest.java

        }
    
        public void test_calculateDocumentSize() {
            assertEquals(0, indexingHelper.calculateDocumentSize(Collections.emptyMap()));
            assertEquals(118, indexingHelper.calculateDocumentSize(Map.of("id", "test")));
            assertEquals(249, indexingHelper.calculateDocumentSize(Map.of("id", "test", "url", "http://test.com/")));
        }
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 23.3K bytes
    - Viewed (0)
  5. internal/arn/arn_test.go

    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.want, func(t *testing.T) {
    			if got := tt.arn.String(); got != tt.want {
    				t.Errorf("ARN.String() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestNewIAMRoleARN(t *testing.T) {
    	type args struct {
    		resourceID   string
    		serverRegion string
    	}
    	tests := []struct {
    		name    string
    		args    args
    		want    ARN
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 08:31:34 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  6. docs_src/app_testing/app_b/test_main.py

    from .main import app
    
    client = TestClient(app)
    
    
    def test_read_item():
        response = client.get("/items/foo", headers={"X-Token": "coneofsilence"})
        assert response.status_code == 200
        assert response.json() == {
            "id": "foo",
            "title": "Foo",
            "description": "There goes my hero",
        }
    
    
    def test_read_item_bad_token():
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_security/test_tutorial005.py

    
    def test_verify_password():
        assert verify_password("secret", fake_users_db["johndoe"]["hashed_password"])
    
    
    def test_get_password_hash():
        assert get_password_hash("secretalice")
    
    
    def test_create_access_token():
        access_token = create_access_token(data={"data": "foo"})
        assert access_token
    
    
    def test_token_no_sub():
        response = client.get(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  8. tests/test_path.py

    client = TestClient(app)
    
    
    def test_text_get():
        response = client.get("/text")
        assert response.status_code == 200, response.text
        assert response.json() == "Hello World"
    
    
    def test_nonexistent():
        response = client.get("/nonexistent")
        assert response.status_code == 404, response.text
        assert response.json() == {"detail": "Not Found"}
    
    
    def test_path_foobar():
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 34.4K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_bigger_applications/test_main.py

        client = TestClient(app)
        return client
    
    
    def test_users_token_jessica(client: TestClient):
        response = client.get("/users?token=jessica")
        assert response.status_code == 200
        assert response.json() == [{"username": "Rick"}, {"username": "Morty"}]
    
    
    def test_users_with_no_token(client: TestClient):
        response = client.get("/users")
        assert response.status_code == 422
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 24.6K bytes
    - Viewed (0)
  10. docs_src/app_testing/app_b_an_py39/test_main.py

    from .main import app
    
    client = TestClient(app)
    
    
    def test_read_item():
        response = client.get("/items/foo", headers={"X-Token": "coneofsilence"})
        assert response.status_code == 200
        assert response.json() == {
            "id": "foo",
            "title": "Foo",
            "description": "There goes my hero",
        }
    
    
    def test_read_item_bad_token():
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 1.8K bytes
    - Viewed (0)
Back to top