Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 83 for Gail (0.14 sec)

  1. cmd/signature-v4_test.go

    	accessKey := globalActiveCred.AccessKey
    
    	testCases := []struct {
    		form     http.Header
    		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{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 10.4K bytes
    - Viewed (1)
  2. cmd/handler-utils_test.go

    				"X-Minio-Meta-Appid": []string{"minio-meta"},
    			},
    			metadata: map[string]string{
    				"X-Amz-Meta-Appid":   "amz-meta",
    				"X-Minio-Meta-Appid": "minio-meta",
    			},
    			shouldFail: false,
    		},
    		// Fail if header key is not in canonicalized form
    		{
    			header: http.Header{
    				"x-amz-meta-appid": []string{"amz-meta"},
    			},
    			metadata: map[string]string{
    				"x-amz-meta-appid": "amz-meta",
    			},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  3. cmd/signature-v4-utils_test.go

    	// expected to fail with `ErrUnsignedHeaders`.
    	_, errCode = extractSignedHeaders(signedHeaders, r)
    	if errCode != ErrUnsignedHeaders {
    		t.Fatalf("Expected the APIErrorCode to %d, but got %d", ErrUnsignedHeaders, errCode)
    	}
    
    	// case where the list of signed headers doesn't contain the host field.
    	signedHeaders = signedHeaders[2:5]
    	// expected to fail with `ErrUnsignedHeaders`.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/server_test.go

    	fakeClientSet := fake.NewSimpleClientset()
    	m := meshDataplane{
    		kubeClient: fakeClientSet,
    		netServer:  server,
    	}
    
    	// pod is not in fake client, so if this will try to remove annotation, it will fail.
    	err := m.DelPodFromMesh(fakeCtx, pod)
    	assert.NoError(t, err)
    }
    
    func TestMeshDataplaneDelPodErrorDoesntPatchPod(t *testing.T) {
    	pod := podWithAnnotation()
    
    	fakeCtx := context.Background()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  5. cni/pkg/log/uds_test.go

    	log.Debug("debug log")
    	log.Info("info log")
    	log.Warn("warn log")
    	log.Error("error log")
    	// This will error because stdout cannot sync, but the UDS part should sync
    	// Ideally we would fail if the UDS part fails but the error library makes it kind of tricky
    	_ = log.Sync()
    
    	// Restore os stdout.
    	os.Stdout = stdout
    	assert.NoError(t, log.Configure(loggingOptions))
    
    	assert.NoError(t, w.Close())
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Mar 16 00:20:01 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  6. cmd/format-erasure_test.go

    	if err = os.WriteFile(pathJoin(rootPath, minioMetaBucket, formatConfigFile), b, os.FileMode(0o644)); err != nil {
    		t.Fatal(err)
    	}
    
    	if _, _, err = formatErasureMigrate(rootPath); err == nil {
    		t.Fatal("Expected to fail with unexpected backend format")
    	}
    
    	m = &formatErasureV1{}
    	m.Format = formatBackendErasure
    	m.Version = formatMetaVersionV1
    	m.Erasure.Version = "30"
    	m.Erasure.Disk = mustGetUUID()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  7. istioctl/pkg/workload/workload_test.go

    				if !strings.Contains(output, noClusterID) {
    					t.Fatal(err)
    				}
    			}
    
    			checkFiles := map[string]bool{
    				// inputs that we allow to exist, if other files seep in unexpectedly we fail the test
    				".gitignore": false, "meshconfig.yaml": false, "workloadgroup.yaml": false,
    			}
    			for k, v := range generated {
    				checkFiles[k] = v
    			}
    
    			checkOutputFiles(t, testdir, checkFiles)
    		})
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  8. cmd/erasure-decode_test.go

    		closeBitrotReaders(bitrotReaders)
    		if err != nil && !test.shouldFail {
    			t.Errorf("Test %d: should pass but failed with: %v", i, err)
    		}
    		if err == nil && test.shouldFail {
    			t.Errorf("Test %d: should fail but it passed", i)
    		}
    		if err == nil {
    			if content := writer.Bytes(); !bytes.Equal(content, data[test.offset:test.offset+test.length]) {
    				t.Errorf("Test %d: read returns wrong file content.", i)
    			}
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 21.1K bytes
    - Viewed (1)
  9. cni/pkg/nodeagent/net.go

    		// so it should be annotated, so if it is removed from the mesh, the rules will be removed.
    		// alternatively, we may not return an error at all, but we want this to fail on tests.
    		return NewErrPartialAdd(err)
    	}
    	return nil
    }
    
    func (s *NetServer) sendPodToZtunnelAndWaitForAck(ctx context.Context, pod *corev1.Pod, netns Netns) error {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.2K bytes
    - Viewed (1)
  10. cmd/test-utils_test.go

    	// simple function which returns a message which gives the context of the test
    	// and then followed by the actual error message.
    	failTestStr := func(testType, failMsg string) string {
    		return fmt.Sprintf("MinIO %s: %s fail for \"%s\": \n<Error> %s", instanceType, testType, testName, failMsg)
    	}
    
    	// httptest Recorder to capture all the response by the http handler.
    	rec := httptest.NewRecorder()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
Back to top