Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 193 for expectGet (0.17 sec)

  1. cmd/bucket-policy-handlers_test.go

    		if recV2.Code != testPolicy.expectedRespStatus {
    			t.Fatalf("Case %d: Expected the response status to be `%d`, but instead found `%d`", i+1, testPolicy.expectedRespStatus, recV2.Code)
    		}
    	}
    
    	// test cases with inputs and expected result for GetBucketPolicyHandler.
    	testCases := []struct {
    		bucketName string
    		accessKey  string
    		secretKey  string
    		// expected output.
    		expectedBucketPolicy string
    		expectedRespStatus   int
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/InputTrackingStateTest.kt

        fun `initial restore is an exception`() {
            val state = InputTrackingState()
            try {
                state.restoreForCurrentThread()
                Assert.fail("Exception expected")
            } catch (ignored: IllegalStateException) {
                // Expected exception
            }
        }
    
        @Test
        fun `unmatched restore is an exception`() {
            val state = InputTrackingState()
            state.disableForCurrentThread()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. pkg/controlplane/apiserver/options/options_test.go

    		SystemNamespaces:                    []string{"kube-system", "kube-public", "default"},
    	}
    
    	expected.Authentication.OIDC.UsernameClaim = "sub"
    	expected.Authentication.OIDC.SigningAlgs = []string{"RS256"}
    
    	if !s.Authorization.AreLegacyFlagsSet() {
    		t.Errorf("expected legacy authorization flags to be set")
    	}
    	// setting the method to nil since methods can't be compared with reflect.DeepEqual
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. cmd/bucket-handlers_test.go

    	credentials auth.Credentials, t *testing.T,
    ) {
    	// test cases with sample input and expected output.
    	testCases := []struct {
    		bucketName string
    		accessKey  string
    		secretKey  string
    		// expected Response.
    		expectedRespStatus int
    		locationResponse   []byte
    		errorResponse      APIErrorResponse
    		shouldPass         bool
    	}{
    		// Test case - 1.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  5. src/crypto/tls/bogo_shim_test.go

    			if *expectECHAccepted && !cs.ECHAccepted {
    				log.Fatal("expected ECH to be accepted, but connection state shows it was not")
    			} else if i == 0 && *onInitialExpectECHAccepted && !cs.ECHAccepted {
    				log.Fatal("expected ECH to be accepted, but connection state shows it was not")
    			} else if i > 0 && *onResumeExpectECHAccepted && !cs.ECHAccepted {
    				log.Fatal("expected ECH to be accepted on resumption, but connection state shows it was not")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:25:39 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-utils_test.go

    		if fi.VersionID != versions[i].VersionID {
    			t.Fatalf("getFileInfoVersions: versions don't match at %d, version id expected %s but got %s", i, fi.VersionID, versions[i].VersionID)
    		}
    		if fi.NumVersions != len(fivs.Versions) {
    			t.Fatalf("getFileInfoVersions: version with %s version id expected to have %d as NumVersions but got %d", fi.VersionID, len(fivs.Versions), fi.NumVersions)
    		}
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 22:18:44 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. cmd/object-handlers_test.go

    		// ServeHTTP to execute the logic of the handler.
    		apiRouter.ServeHTTP(rec, req)
    
    		isEnc := false
    		expected := 200
    		if strings.HasPrefix(input.objectName, "enc-") {
    			isEnc = true
    			expected = 400
    		}
    		if rec.Code != expected {
    			t.Errorf("Test %d: expected code %d but got %d for object %s", i+1, expected, rec.Code, input.objectName)
    		}
    
    		contentLength := rec.Header().Get("Content-Length")
    		if isEnc {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 161.9K bytes
    - Viewed (0)
  8. cmd/kube-apiserver/app/options/options_test.go

    			CloudConfigFile: "/cloud-config",
    			CloudProvider:   "azure",
    		},
    	}
    
    	expected.Authentication.OIDC.UsernameClaim = "sub"
    	expected.Authentication.OIDC.SigningAlgs = []string{"RS256"}
    
    	if !s.Authorization.AreLegacyFlagsSet() {
    		t.Errorf("expected legacy authorization flags to be set")
    	}
    
    	// setting the method to nil since methods can't be compared with reflect.DeepEqual
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  9. internal/http/listener_test.go

    			if !expectedListenErr {
    				if listenErrs[i] != nil {
    					t.Fatalf("Test %d:, listenErrs[%d] error: expected = <nil>, got = %v", testIdx+1, i, listenErrs[i])
    				}
    			} else if listenErrs[i] == nil {
    				t.Fatalf("Test %d: listenErrs[%d]: expected = %v, got = <nil>", testIdx+1, i, expectedListenErr)
    			}
    		}
    		if listener != nil {
    			listener.Close()
    		}
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. pilot/pkg/networking/core/listener_builder_test.go

    				if len(tt.tls) > 0 {
    					t.Fatalf("Expected tls inspector, got none")
    				}
    			} else {
    				evaluateListenerFilterPredicates(t, filters[wellknown.TLSInspector].FilterDisabled, tt.tls)
    			}
    		})
    	}
    }
    
    func evaluateListenerFilterPredicates(t testing.TB, predicate *listener.ListenerFilterChainMatchPredicate, expected map[int]bool) {
    	t.Helper()
    	for port, expect := range expected {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 24.7K bytes
    - Viewed (0)
Back to top