Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for tt (0.12 sec)

  1. istioctl/pkg/multicluster/remote_secret_test.go

    			})
    			client, err := ctx.CLIClient()
    			if err != nil {
    				tt.Fatalf("failed to create client: %v", err)
    			}
    			got, _, err := CreateRemoteSecret(client, opts)
    			if c.wantErrStr != "" {
    				if err == nil {
    					tt.Fatalf("wanted error including %q but got none", c.wantErrStr)
    				} else if !strings.Contains(err.Error(), c.wantErrStr) {
    					tt.Fatalf("wanted error including %q but got %v", c.wantErrStr, err)
    				}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 20.6K bytes
    - Viewed (0)
  2. operator/cmd/mesh/manifest-generate_test.go

    			var filenames []string
    			if !tt.noInput {
    				filenames = []string{inPath}
    			}
    
    			csource := snapshotCharts
    			if tt.chartSource != "" {
    				csource = tt.chartSource
    			}
    			got, err := runManifestGenerate(filenames, tt.flags, csource, tt.fileSelect)
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			if tt.outputDir != "" {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
  3. cni/pkg/repair/repair_test.go

    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			mt := monitortest.New(t)
    			tt.config.LabelPods = true
    			c, err := NewRepairController(tt.client, tt.config)
    			assert.NoError(t, err)
    			t.Cleanup(func() {
    				assert.NoError(t, c.queue.WaitForClose(time.Second))
    			})
    			stop := test.NewStop(t)
    			tt.client.RunAndWait(stop)
    			go c.Run(stop)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 24 03:31:28 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  4. internal/bucket/object/lock/lock_test.go

    			expectErr:   false,
    		},
    	}
    	for _, tt := range tests {
    		tt := tt
    		t.Run("", func(t *testing.T) {
    			_, err := ParseObjectLockConfig(strings.NewReader(tt.value))
    			//nolint:gocritic
    			if tt.expectedErr == nil {
    				if err != nil {
    					t.Fatalf("error: expected = <nil>, got = %v", err)
    				}
    			} else if err == nil {
    				t.Fatalf("error: expected = %v, got = <nil>", tt.expectedErr)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  5. cmd/object-api-utils_test.go

    			keys:     []string{"etag", "xyz"},
    			want:     map[string]string{"content-type": "application/octet-stream"},
    		},
    	}
    	for _, tt := range tests {
    		if got := cleanMetadataKeys(tt.metadata, tt.keys...); !reflect.DeepEqual(got, tt.want) {
    			t.Errorf("Test %s failed, expected %v, got %v", tt.name, tt.want, got)
    		}
    	}
    }
    
    // Tests isCompressed method
    func TestIsCompressed(t *testing.T) {
    	testCases := []struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  6. istioctl/pkg/workload/workload_test.go

    		{arg: "", wantKey: "", wantValue: ""},
    	}
    	for _, tt := range tests {
    		t.Run(tt.arg, func(t *testing.T) {
    			gotKey, gotValue := splitEqual(tt.arg)
    			if gotKey != tt.wantKey {
    				t.Errorf("splitEqual(%v) got = %v, want %v", tt.arg, gotKey, tt.wantKey)
    			}
    			if gotValue != tt.wantValue {
    				t.Errorf("splitEqual(%v) got1 = %v, want %v", tt.arg, gotValue, tt.wantValue)
    			}
    		})
    	}
    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)
  7. cmd/erasure-object_test.go

    	}
    	for _, tt := range tests {
    		tt := tt
    		t.(*testing.T).Run("", func(t *testing.T) {
    			globalStorageClass.Update(tt.storageClassCfg)
    			actualReadQuorum, actualWriteQuorum, err := objectQuorumFromMeta(ctx, tt.parts, tt.errs, storageclass.DefaultParityBlocks(len(erasureDisks)))
    			if tt.expectedError != nil && err == nil {
    				t.Errorf("Expected %s, got %s", tt.expectedError, err)
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 36.8K bytes
    - Viewed (0)
  8. cmd/xl-storage-format_test.go

    		{3, -1, 5, false},
    		{4, 5, -1, false},
    		{5, 5, 0, true},
    		{6, 5, 0, true},
    		{7, 5, 4, true},
    	}
    	for _, tt := range tests {
    		if got := isXLMetaErasureInfoValid(tt.data, tt.parity); got != tt.want {
    			t.Errorf("Test %d: Expected %v but received %v -> %#v", tt.name, got, tt.want, tt)
    		}
    	}
    }
    
    // newTestXLMetaV1 - initializes new xlMetaV1Object, adds version, allocates a fresh erasure info and metadata.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  9. cni/pkg/plugin/plugin_test.go

    			args: args{ports: []string{"abcd", "2345", "abcd"}},
    			want: []string{"abcd", "2345"},
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if got := dedupPorts(tt.args.ports); !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("dedupPorts() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  10. cmd/auth-handler_test.go

    		{
    			authT: authType(9),
    			pass:  false,
    		},
    	}
    	// Validate all the test cases.
    	for i, tt := range testCases {
    		ok := isSupportedS3AuthType(tt.authT)
    		if ok != tt.pass {
    			t.Errorf("Test %d:, Expected %t, got %t", i+1, tt.pass, ok)
    		}
    	}
    }
    
    func TestIsRequestPresignedSignatureV2(t *testing.T) {
    	testCases := []struct {
    		inputQueryKey   string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 15.4K bytes
    - Viewed (0)
Back to top