Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 328 for newWith (0.12 sec)

  1. pilot/pkg/model/addressmap_test.go

    				return &m
    			},
    			expected: 1,
    		},
    	}
    
    	for _, c := range cases {
    		t.Run(c.name, func(t *testing.T) {
    			g := NewWithT(t)
    			g.Expect(c.newMap().Len()).To(Equal(c.expected))
    		})
    	}
    }
    
    func TestAddressMapGetAddressesFor(t *testing.T) {
    	g := NewWithT(t)
    
    	m := model.AddressMap{
    		Addresses: map[cluster.ID][]string{
    			c1ID: c1Addresses,
    			c2ID: c2Addresses,
    		},
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. pkg/apis/apps/validation/validation.go

    	errs = append(errs, apivalidation.ValidateObjectMeta(&revision.ObjectMeta, true, ValidateControllerRevisionName, field.NewPath("metadata"))...)
    	if revision.Data == nil {
    		errs = append(errs, field.Required(field.NewPath("data"), "data is mandatory"))
    	}
    	errs = append(errs, apivalidation.ValidateNonnegativeField(revision.Revision, field.NewPath("revision"))...)
    	return errs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 06 22:11:20 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  3. pkg/test/util/yml/parts_test.go

    		t.Run(c.name, func(t *testing.T) {
    			parts := yml.SplitString(c.doc)
    			g := NewWithT(t)
    			g.Expect(parts).To(Equal(expected))
    		})
    	}
    }
    
    func TestSplitWithNestedDocument(t *testing.T) {
    	doc := `
    b
        b1
        ---
        b2
    `
    	expected := []string{
    		`b
        b1
        ---
        b2`,
    	}
    
    	g := NewWithT(t)
    	parts := yml.SplitString(doc)
    	g.Expect(parts).To(Equal(expected))
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/context/CIFSContextCredentialWrapper.java

            if ( auth != null ) {
                NtlmPasswordAuthenticator newAuth = NtlmAuthenticator
                        .requestNtlmPasswordAuthentication(auth, locationHint, ( error instanceof SmbAuthException ) ? (SmbAuthException) error : null);
                if ( newAuth != null ) {
                    this.creds = newAuth;
                    return true;
                }
            }
            return false;
        }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu Aug 02 08:32:29 UTC 2018
    - 2.7K bytes
    - Viewed (0)
  5. operator/pkg/validate/validate.go

    		case reflect.Map:
    			newPath := append(path, fieldName)
    			errs = util.AppendErrs(errs, validateLeaf(validations, newPath, fieldValue.Interface(), checkRequired))
    			for _, key := range fieldValue.MapKeys() {
    				nnp := append(newPath, key.String())
    				errs = util.AppendErrs(errs, validateLeaf(validations, nnp, fieldValue.MapIndex(key), checkRequired))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 12 16:04:15 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/route/route_test.go

    		out := node(cg)
    		out.IstioVersion.Minor = 21
    		return out
    	}
    
    	gatewayNames := sets.New("some-gateway")
    
    	t.Run("for virtual service", func(t *testing.T) {
    		g := NewWithT(t)
    		cg := core.NewConfigGenTest(t, core.TestOptions{})
    
    		t.Setenv("ISTIO_DEFAULT_REQUEST_TIMEOUT", "0ms")
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 88.1K bytes
    - Viewed (0)
  7. pkg/apis/resource/structured/namedresources/validation/validation_test.go

    			wantFailures: field.ErrorList{field.Required(field.NewPath("instances").Index(0).Child("attributes").Index(0), "exactly one value must be set")},
    			resources:    testResources([]resourceapi.NamedResourcesInstance{{Name: goodName, Attributes: []resourceapi.NamedResourcesAttribute{{Name: goodName}}}}),
    		},
    		"duplicate-value": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:13 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. pkg/apis/networking/validation/validation.go

    	allErrs := apivalidation.ValidateObjectMeta(&np.ObjectMeta, true, ValidateNetworkPolicyName, field.NewPath("metadata"))
    	allErrs = append(allErrs, ValidateNetworkPolicySpec(&np.Spec, opts, field.NewPath("spec"))...)
    	return allErrs
    }
    
    // ValidationOptionsForNetworking generates NetworkPolicyValidationOptions for Networking
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 07 14:48:01 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  9. pkg/config/schema/resource/schema_test.go

    				ProtoPackage: "github.com/gogo/protobuf/types",
    				Proto:        "boo",
    			},
    			expectError: true,
    		},
    	}
    
    	for _, c := range cases {
    		t.Run(c.name, func(t *testing.T) {
    			g := NewWithT(t)
    
    			err := c.b.BuildNoValidate().Validate()
    			if c.expectError {
    				g.Expect(err).ToNot(BeNil())
    			} else {
    				g.Expect(err).To(BeNil())
    			}
    		})
    	}
    }
    
    func TestBuild(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  10. pkg/config/analysis/analyzers/util/find_errorline_utils_test.go

    	"{.spec.configPatches[0].patch.value}":                          1,
    }
    
    func TestExtractLabelFromSelectorString(t *testing.T) {
    	g := NewWithT(t)
    	s := "label=test"
    	g.Expect(ExtractLabelFromSelectorString(s)).To(Equal("label"))
    }
    
    func TestErrorLine(t *testing.T) {
    	g := NewWithT(t)
    	r := &resource.Instance{Origin: &legacykube.Origin{FieldsMap: fieldMap}}
    	test1, err1 := ErrorLine(r, "{.metadata.name}")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 17:36:47 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top