Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 133 for lake (0.05 sec)

  1. tests/test_tutorial/test_dependencies/test_tutorial006_an.py

            "/items/", headers={"X-Token": "fake-super-secret-token", "X-Key": "invalid"}
        )
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Key header invalid"}
    
    
    def test_get_valid_headers():
        response = client.get(
            "/items/",
            headers={
                "X-Token": "fake-super-secret-token",
                "X-Key": "fake-super-secret-key",
            },
        )
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_dependencies/test_tutorial006_an_py39.py

            "/items/", headers={"X-Token": "fake-super-secret-token", "X-Key": "invalid"}
        )
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Key header invalid"}
    
    
    @needs_py39
    def test_get_valid_headers(client: TestClient):
        response = client.get(
            "/items/",
            headers={
                "X-Token": "fake-super-secret-token",
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtOriginalPsiProvider.kt

         * for [this]. Otherwise, returns `null`.
         */
        @KaAnalysisApiInternals
        public fun KtDeclaration.getOriginalDeclaration(): KtDeclaration? =
            withValidityAssertion { analysisSession.originalPsiProvider.getOriginalDeclaration(this) }
    
        /**
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/legalize_jax_random.mlir

    // CHECK:           return %[[VAL_2]] : tuple<tensor<3x4xf32>>
    // CHECK:         }
    func.func @tfl_wrapped_jax_random_normal(%arg0: tensor<2xui32>) -> tuple<tensor<3x4xf32>> {
      // This is a fake jax random normal body.
      %0 = stablehlo.constant dense<0.0> : tensor<12xf32>
      %1 = "stablehlo.reshape"(%0) : (tensor<12xf32>) -> tensor<3x4xf32>
      %2 = "stablehlo.tuple"(%1) : (tensor<3x4xf32>) -> tuple<tensor<3x4xf32>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/kube/controller/endpoint_builder_test.go

    			pod.Spec.ServiceAccountName = "testsan"
    			pod.Labels = c.podLabels
    			pod.Spec.NodeName = "fake"
    			// All should get this
    			c.expected[labelutil.LabelHostname] = "fake"
    
    			loc := pkgmodel.ConvertLocality(c.ctl.locality)
    			fc := kube.NewFakeClient(&v1.Node{
    				ObjectMeta: metav1.ObjectMeta{Name: "fake", Labels: map[string]string{
    					NodeRegionLabelGA:          loc.Region,
    					NodeZoneLabel:              loc.Zone,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. pkg/probe/exec/exec_test.go

    	for i, test := range tests {
    		featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.ExecProbeTimeout, test.execProbeTimeout)
    		fake := FakeCmd{
    			out: []byte(test.output),
    			err: test.err,
    		}
    		status, output, err := prober.Probe(&fake)
    		if status != test.expectedStatus {
    			t.Errorf("[%d] expected %v, got %v", i, test.expectedStatus, status)
    		}
    		if err != nil && !test.expectError {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. pkg/kubelet/runonce_test.go

    		clock:            clock.RealClock{},
    		kubeClient:       &fake.Clientset{},
    		hostname:         testKubeletHostname,
    		nodeName:         testKubeletHostname,
    		runtimeState:     newRuntimeState(time.Second),
    		hostutil:         hostutil.NewFakeHostUtil(nil),
    	}
    	kb.containerManager = cm.NewStubContainerManager()
    
    	plug := &volumetest.FakeVolumePlugin{PluginName: "fake", Host: nil}
    	kb.volumePluginMgr, err =
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 06:59:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. pilot/pkg/server/instance_test.go

    	"istio.io/istio/pilot/pkg/server"
    	"istio.io/istio/pkg/test"
    )
    
    func TestStartWithError(t *testing.T) {
    	g := NewWithT(t)
    
    	inst := server.New()
    	expected := errors.New("fake")
    	inst.RunComponent("fake", func(stop <-chan struct{}) error {
    		return expected
    	})
    
    	stop := newReclosableChannel()
    	t.Cleanup(stop.Close)
    	g.Expect(inst.Start(stop.c)).To(Equal(expected))
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 23:02:39 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. security/pkg/server/ca/authenticate/kubeauth/kube_jwt_test.go

    			}
    
    			client := fake.NewSimpleClientset()
    			if !tc.remoteCluster {
    				client.PrependReactor("create", "tokenreviews", func(action ktesting.Action) (bool, runtime.Object, error) {
    					return true, tokenReview, nil
    				})
    			}
    
    			remoteKubeClientGetter := func(clusterID cluster.ID) kubernetes.Interface {
    				if clusterID == remoteCluster {
    					client := fake.NewSimpleClientset()
    					if tc.remoteCluster {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. pkg/kube/inject/testdata/inject/proxy-override-runas.yaml

    metadata:
      name: hello
    spec:
      selector:
        matchLabels:
          app: hello
      template:
        metadata:
          labels:
            app: hello
        spec:
          containers:
          - name: hello
            image: "fake.docker.io/google-samples/hello-go-gke:1.0"
          - name: istio-proxy
            image: auto
            securityContext:
              # iptables rules must honor this value, and must not use 1337
              runAsUser: 1234
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:59:39 UTC 2024
    - 480 bytes
    - Viewed (0)
Back to top