Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 547 for desc1 (0.31 sec)

  1. pkg/util/flag/flags_test.go

    	testCases := []struct {
    		desc      string
    		argc      string
    		expectErr bool
    		expectVal string
    	}{
    
    		{
    			desc:      "valid ipv4 1",
    			argc:      "blah --ipport=0.0.0.0",
    			expectVal: "0.0.0.0",
    		},
    		{
    			desc:      "valid ipv4 2",
    			argc:      "blah --ipport=127.0.0.1",
    			expectVal: "127.0.0.1",
    		},
    
    		{
    			desc:      "invalid IP",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 14 10:45:23 UTC 2021
    - 8.8K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/security_context_others_test.go

    	runAsNonRootTrue := true
    	runAsNonRootFalse := false
    	for _, test := range []struct {
    		desc     string
    		sc       *v1.SecurityContext
    		uid      *int64
    		username string
    		fail     bool
    	}{
    		{
    			desc: "Pass if SecurityContext is not set",
    			sc:   nil,
    			uid:  &rootUser,
    			fail: false,
    		},
    		{
    			desc: "Pass if RunAsUser is non-root and RunAsNonRoot is true",
    			sc: &v1.SecurityContext{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 10:06:54 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. pkg/proxy/util/utils_test.go

    	testCases := []struct {
    		desc            string
    		ipString        []string
    		wantIPv6        bool
    		expectCorrect   []string
    		expectIncorrect []string
    	}{
    		{
    			desc:            "empty input IPv4",
    			ipString:        []string{},
    			wantIPv6:        false,
    			expectCorrect:   nil,
    			expectIncorrect: nil,
    		},
    		{
    			desc:            "empty input IPv6",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. operator/pkg/patch/patch_test.go

    a:
      b:
      - name: n1
        value: v1
      - name: n2
        list: 
        - v1
        - v2
        - v3_regex
      c:
    `
    	tests := []struct {
    		desc    string
    		path    string
    		value   string
    		want    string
    		wantErr string
    	}{
    		{
    			desc:  "ModifyListEntryValue",
    			path:  `a.b.[name:n1].value`,
    			value: `v2`,
    			want: `
    apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: istio-citadel
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Nov 29 08:32:11 UTC 2022
    - 10.3K bytes
    - Viewed (0)
  5. pkg/kubelet/kubeletconfig/util/files/files_test.go

    	cases := []test{
    		{
    			desc:    "regular file",
    			writes:  []file{{name: "foo", data: "bar"}},
    			expects: []file{{name: "foo", data: "bar"}},
    		},
    		{
    			desc:    "directory",
    			writes:  []file{{name: "foo", mode: os.ModeDir}},
    			expects: []file{{name: "foo", mode: os.ModeDir}},
    		},
    		{
    			desc:    "deep regular file",
    			writes:  []file{{name: "foo/bar", data: "baz"}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 07 11:36:13 UTC 2022
    - 11.7K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/envoy/configdump/listener_test.go

    	tests := []struct {
    		desc       string
    		inFilter   *ListenerFilter
    		inListener *listener.Listener
    		expect     bool
    	}{
    		{
    			desc: "filter-fields-empty",
    			inFilter: &ListenerFilter{
    				Address: "",
    				Port:    0,
    				Type:    "",
    			},
    			inListener: &listener.Listener{},
    			expect:     true,
    		},
    		{
    			desc: "addrs-dont-match",
    			inFilter: &ListenerFilter{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 11 15:29:30 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  7. pkg/kubelet/kuberuntime/security_context_windows_test.go

    	runAsNonRootFalse := false
    	uid := int64(0)
    	for _, test := range []struct {
    		desc     string
    		sc       *v1.SecurityContext
    		uid      *int64
    		username string
    		fail     bool
    	}{
    		{
    			desc:     "Pass if SecurityContext is not set",
    			sc:       nil,
    			username: rootUser,
    			fail:     false,
    		},
    		{
    			desc: "Pass if RunAsNonRoot is not set",
    			sc: &v1.SecurityContext{
    				RunAsNonRoot: nil,
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 30 02:29:11 UTC 2022
    - 4.6K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/bytecode/AsmExtensions.kt

        visitMethodInsn_(Opcodes.INVOKEINTERFACE, owner, name, desc, itf)
    }
    
    
    internal
    fun MethodVisitor.INVOKESTATIC(owner: InternalName, name: String, desc: String) {
        visitMethodInsn_(Opcodes.INVOKESTATIC, owner, name, desc, false)
    }
    
    
    private
    fun MethodVisitor.visitMethodInsn_(opcode: Int, owner: InternalName, name: String, desc: String, itf: Boolean) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  9. operator/pkg/object/objects_test.go

    			"key": "value2",
    		}},
    	}
    	cases := []struct {
    		desc string
    		o1   *K8sObject
    		o2   *K8sObject
    		want bool
    	}{
    		{
    			desc: "Equals",
    			o1:   &obj1,
    			o2:   &obj1,
    			want: true,
    		},
    		{
    			desc: "NotEquals",
    			o1:   &obj1,
    			o2:   &obj2,
    			want: false,
    		},
    		{
    			desc: "NilSource",
    			o1:   nil,
    			o2:   &obj2,
    			want: false,
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 21 07:16:46 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  10. operator/pkg/validate/validate_values_test.go

    }
    
    func TestValidateValues(t *testing.T) {
    	tests := []struct {
    		desc     string
    		yamlStr  string
    		wantErrs util.Errors
    	}{
    		{
    			desc: "nil success",
    		},
    		{
    			desc: "StarIPRange",
    			yamlStr: `
    global:
      proxy:
        includeIPRanges: "*"
        excludeIPRanges: "*"
    `,
    		},
    		{
    			desc: "ProxyConfig",
    			yamlStr: `
    global:
      podDNSSearchNamespaces:
      - "my-namespace"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 13:43:12 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top