Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 161 for Desc (0.1 sec)

  1. pkg/bootstrap/option/convert_test.go

    	"istio.io/istio/pkg/model"
    )
    
    // nolint: lll
    func TestTlsContextConvert(t *testing.T) {
    	tests := []struct {
    		desc         string
    		tls          *networkingAPI.ClientTLSSettings
    		sni          string
    		meta         *model.BootstrapNodeMetadata
    		expectTLSCtx string
    	}{
    		{
    			desc:         "no-tls",
    			tls:          &networkingAPI.ClientTLSSettings{},
    			sni:          "",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. pkg/kubelet/metrics/collectors/cri_metrics.go

    		descriptors:             make(map[string]*metrics.Desc, len(descs)),
    	}
    
    	for _, desc := range descs {
    		c.descriptors[desc.Name] = criDescToProm(desc)
    	}
    
    	return c
    }
    
    // Describe implements the metrics.DescribeWithStability interface.
    func (c *criMetricsCollector) DescribeWithStability(ch chan<- *metrics.Desc) {
    	for _, desc := range c.descriptors {
    		ch <- desc
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 23 13:24:29 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. operator/pkg/tpath/struct_test.go

    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/operator/pkg/util"
    )
    
    func TestGetFromStructPath(t *testing.T) {
    	tests := []struct {
    		desc      string
    		nodeYAML  string
    		path      string
    		wantYAML  string
    		wantFound bool
    		wantErr   string
    	}{
    		{
    			desc: "GetStructItem",
    			nodeYAML: `
    a: va
    b: vb
    c:
      d: vd
      e:
        f: vf
    g:
      h:
      - i: vi
        j: vj
        k:
          l:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  4. pkg/controller/nodeipam/ipam/sync/sync_test.go

    	t.Parallel()
    
    	for _, tc := range []struct {
    		desc string
    		mode NodeSyncMode
    		node *v1.Node
    		fake fakeAPIs
    	}{
    		{
    			desc: "delete",
    			mode: SyncFromCluster,
    			node: nodeWithCIDRRange,
    		},
    		{
    			desc: "delete without CIDR range",
    			mode: SyncFromCluster,
    			node: nodeWithoutCIDRRange,
    		},
    		{
    			desc: "delete with invalid CIDR range",
    			mode: SyncFromCluster,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  5. istioctl/pkg/writer/envoy/configdump/route_test.go

    )
    
    func TestDescribeRouteDomains(t *testing.T) {
    	tests := []struct {
    		desc     string
    		domains  []string
    		expected string
    	}{
    		{
    			desc:     "test zero domain",
    			domains:  []string{},
    			expected: "",
    		},
    		{
    			desc:     "test only one domain",
    			domains:  []string{"example.com"},
    			expected: "example.com",
    		},
    		{
    			desc:     "test domains with port",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 29 12:37:14 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. src/internal/fuzz/encoding_test.go

    		{
    			desc: "negative uint",
    			in: `go test fuzz v1
    uint(-32)`,
    			reject: true,
    		},
    		{
    			desc: "int8 too large",
    			in: `go test fuzz v1
    int8(1234456)`,
    			reject: true,
    		},
    		{
    			desc: "multiplication in int value",
    			in: `go test fuzz v1
    int(20*5)`,
    			reject: true,
    		},
    		{
    			desc: "double negation",
    			in: `go test fuzz v1
    int(--5)`,
    			reject: true,
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 00:20:34 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. operator/pkg/controlplane/control_plane_test.go

    	"istio.io/istio/operator/pkg/translate"
    	"istio.io/istio/operator/pkg/util"
    )
    
    func TestOrderedKeys(t *testing.T) {
    	tests := []struct {
    		desc string
    		in   map[string]*v1alpha1.ExternalComponentSpec
    		want []string
    	}{
    		{
    			desc: "not-ordered",
    			in: map[string]*v1alpha1.ExternalComponentSpec{
    				"graphql":   nil,
    				"Abacus":    nil,
    				"Astrology": nil,
    				"gRPC":      nil,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 04 02:36:40 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  8. platforms/core-runtime/build-option/src/test/groovy/org/gradle/internal/buildoption/BuildOptionFixture.groovy

        static void assertDescription(CommandLineOption option, String desc) {
            assert option.description == desc
        }
    
        static void assertIncubatingDescription(CommandLineOption option, boolean incubating) {
            assertIncubatingDescription(option, incubating, DESCRIPTION)
        }
    
        static void assertIncubatingDescription(CommandLineOption option, boolean incubating, String desc) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:02:02 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  9. operator/pkg/version/version_test.go

    func TestVersion(t *testing.T) {
    	tests := []struct {
    		desc    string
    		yamlStr string
    		want    Version
    		wantErr string
    	}{
    		{
    			desc: "nil success",
    		},
    		{
    			desc:    "major success",
    			yamlStr: "1",
    			want:    NewVersion(1, 0, 0, ""),
    		},
    		{
    			desc:    "major fail",
    			yamlStr: "1..",
    			wantErr: `Malformed version: 1..`,
    		},
    		{
    			desc:    "major fail prefix",
    			yamlStr: ".1",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  10. src/testing/panic_test.go

    func TestPanic(t *testing.T) {
    	testenv.MustHaveExec(t)
    
    	testCases := []struct {
    		desc  string
    		flags []string
    		want  string
    	}{{
    		desc:  "root test panics",
    		flags: []string{"-test_panic_test=TestPanicHelper"},
    		want: `
    --- FAIL: TestPanicHelper (N.NNs)
        panic_test.go:NNN: TestPanicHelper
    `,
    	}, {
    		desc:  "subtest panics",
    		flags: []string{"-test_panic_test=TestPanicHelper/1"},
    		want: `
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 16:49:24 UTC 2023
    - 7.4K bytes
    - Viewed (0)
Back to top